解决方法:
添加静态路由
添加到网络的路由
| # route add –net IP netmask MASK eth0 |
| # route add –net IP netmask MASK gw IP |
| # route add –net IP/24 eth1 |
添加默认网关
| # route add default gw IP |
| [root@dxb network-scripts]# route add -net 192.168.128.0 netmask 255.255.255.0 gw 192.168.128.1 dev eth0 |
| [root@dxb network-scripts]# netstat -r |
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.228.0 192.168.128.1 255.255.255.0 UG 0 0 0 eth0
192.168.228.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
default 192.168.1.254 0.0.0.0 UG 0 0 0 eth1
[root@dxb network-scripts]#
阅读(868) | 评论(0) | 转发(0) |