Chinaunix

标题: #netconfig默认是配eth0若想用netconfig配eth1,eth2如何配 [打印本页]

作者: cgweb    时间: 2003-02-14 12:27
标题: #netconfig默认是配eth0若想用netconfig配eth1,eth2如何配
#netconfig默认是配eth0若想用netconfig配eth1,eth2如何配
作者: 仁者之人    时间: 2003-02-14 12:39
标题: #netconfig默认是配eth0若想用netconfig配eth1,eth2如何配
用ifconfig
__________________________________________
用法如下:
ifconfig eth0 192.168.0.1 netmask 255.255.255.0 up
ifconfig eth1 192.168.1.1 netmask 255.255.255.0 up
作者: deargentle    时间: 2007-09-28 10:03
标题: 回复 #1 cgweb 的帖子
二楼的朋友答非所问
----------
这样试试
netconfig -d  eth1
netconfig -d  eth2
作者: 富贵猫    时间: 2007-09-28 11:10
不用netconfig, 直接编辑
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth1
/etc/sysconfig/network-scripts/ifcfg-eth2
很简单的,一看就会

default gateway在文件
/etc/sysconfig/network
里设置
作者: 芬达7402    时间: 2007-10-03 15:31
原帖由 deargentle 于 2007-9-28 10:03 发表
二楼的朋友答非所问
----------
这样试试
netconfig -d  eth1
netconfig -d  eth2

多谢共享。。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2