LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1358|回复: 4

问一关于netconfig的问题

[复制链接]
发表于 2004-12-30 17:17:58 | 显示全部楼层 |阅读模式
我的机器上有两张网卡,分别要设置不同的IP
可以通过设置/etc/sysconfig/network-scripts/ifcfg-eth0 和 ifcfg-eth1 来实现
而我试了netconfig 只能设置1张网卡,不知道是不是可以用netconfig 设置第二张网卡的ip?
发表于 2004-12-30 17:33:51 | 显示全部楼层
netconfig --help
Usage: netconfig [OPTION...]
  --bootproto=(dhcp|bootp|none)     Boot protocol to use
  --gateway=STRING                  Network gateway
  --ip=STRING                       IP address
  --nameserver=STRING               Nameserver
  --netmask=STRING                  Netmask
  --hostname=STRING                 Hostname
  --domain=STRING                   Domain name
  -d, --device=STRING               Network device
  --nodns                           No DNS lookups
  --hwaddr=STRING                   Ethernet hardware address
  --description=STRING              Description of the device

Help options:
  -?, --help                        Show this help message
  --usage                           Display brief usage message
___________________________
你认为可以吗?
发表于 2004-12-31 14:46:09 | 显示全部楼层
-d, --device=STRING Network device
--hwaddr=STRING Ethernet hardware address
发表于 2005-1-1 16:28:54 | 显示全部楼层
多看看man吧!
发表于 2005-3-6 14:59:08 | 显示全部楼层
请教 netconfig 参数格式问题,
-d, --device=STRING
是指 -d eth1 和 --device=eth1 这两种写法,
还是 -d=eth1 和 --device=eth1 这两种写法
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表