请问:
7.10server下面,有三块网卡,配置文件如:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
peerdns no
# The second network interface
auto eth1
iface eth1 inet static
address 67.121.129.03
netmask 255.255.255.128
gateway 67.121.129.1
network 67.121.129.0
broadcast 67.121.129.127
# The third network interface
auto eth2
iface eth2 inet static
address 192.168.8.168
netmask 255.255.255.224
gateway 192.168.8.1
network 192.168.8.0
broadcast 192.168.8.255
每次从起网络(/etc/init.d/networking restart)
命令:netstat -r查看路由表
如下:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.8.160 * 255.255.255.224 U 0 0 0 eth2
67.121.129.0 * 255.255.255.128 U 0 0 0 eth1
192.168.3.0 * 255.255.255.0 U 0 0 0 eth0
default 67.121.129.1 0.0.0.0 UG 0 0 0 eth1
default 192.168.3.1 0.0.0.0. UG 0 0 0 eth0
请问:怎么会出现两条default路由呢???
这样就导致外网的ip(如192.168.0.123) 访问不了67.121.129.103了。
怎么解决这个问题阿?谢谢
7.10server默认路由表问题
-
- 帖子: 29
- 注册时间: 2008-05-27 15:44
-
- 帖子: 43
- 注册时间: 2008-10-13 8:52
- 联系: