Netconf使用

983 ワード

Netconfigの使い方は以下の通りです.
参照
[root@localhost]#netconfig--help注:ヘルプ;
  --bootproto=(dhcp|bootp|none) Boot protocol to use(
--gateway=STRING Network gateway(ゲートウェイ指定)
--ip=STRING IP address(IPアドレス指定)
--nameserver=STRING Nameserver(DNSクライアント指定)
--netmask=STRING Netmask(ネットマスク指定)
--hostname=STRING Hostname(ホスト名指定)
--domain=STRING Domain name(ドメイン名指定)
-d,--device=STRING Network device(ネットワークデバイス指定)
--nodns No DNS lookups(DNSクエリなし)
--hwaddr=STRING Ethernet hardware address(NICの物理アドレス指定)
--description=STRING Description of the device(記述文字)
Help options:(ヘルプオプション)
  -?, --help Show this help message
  --usage Display brief usage message
NICのDHCPモードを設定してIPを自動的に取得する
[root@localhost]# netconfig -d eth0 --bootproto=dhcp

ネットワークカードのIPなどを手動で設定する
[root@localhost]# netconfig -d eth0 --ip=192.168.1.33 --netmask=255.255.255.0 --gateway=192.168.1.1