|

楼主 |
发表于 2007-9-17 05:37:11
|
显示全部楼层
我刚找到一些资料,做好了,但又有问题
etc/sysconfig/network-devices/ 下执行 cp -dpR ifconfig.eth0 ifconfig.eth1,进入ifconfig.eth1后修改文件ipv4,把IP地址修改为192.168.0.2,
执行/etc/rc.d/init.d/network restart 出错哦!!
Removing default gateway... [ OK ]
Removing IPv4 address 192.168.1.2 from the eth1 interface... [ OK ]
Bringing down the eth1 interface... [ OK ]
Removing default gateway...
RTNETLINK answers: No such process [ FAIL ]
Removing IPv4 address 159.226.37.27 from the eth0 interface... [ OK ]
Bringing down the eth0 interface... [ OK ]
Bringing up the eth0 interface...
Adding IPv4 address 159.226.37.27 to the eth0 interface... [ OK ]
Setting up default gateway... [ OK ]
Bringing up the eth1 interface...
Adding IPv4 address 192.168.1.2 to the eth1 interface... [ OK ]
Gateway already setup; skipping. [ WARN ]
给出我eth0 eth1下的IPV4配置文件。大家帮忙看看。
eth0
ONBOOT=yes
SERVICE=ipv4-static
IP=159.226.37.27
GATEWAY=159.226.37.1
PREFIX=24
BROADCAST=159.226.37.255
eth1
ONBOOT=yes
SERVICE=ipv4-static
IP=192.169.1.2
GATEWAY=159.226.37.1
PREFIX=24
BROADCAST=192.168.1.255
各位大家帮忙看看那里有问题。我想实现NAT、让我们宿舍的其他电脑也能上网! |
|