|
发表于 2008-7-11 15:51:04
|
显示全部楼层
Post by teaandpen;1869569
[root@Runtop ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
[root@Runtop ~]# route add -net 10.0.0.0 netmask 255.255.255.0 dev eth1
[root@Runtop ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 * 255.255.255.0 U 0 0 0 eth1
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
[root@Runtop ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
[root@Runtop ~]#
怎么加不进10.0.0.0/24网络?两张网卡(eth0 连外网 ,eth1连内网,PING不通10.0.0.0里的机子)
[root@Runtop ~]# ifconfig
eth1的路由表应该是默认的,不用另外添加,建议检查一下eth1的配置。 |
|