配置route

1.查看当前路由状态

# route

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.2 192.168.1.1 255.255.255.255 UGH 0 0 0 eth3
192.168.1.3 * 255.255.255.0 U 0 0 0 eth3

2.添加路由

# route add -net 192.168.1.4 netmask 255.255.0.0 gw 192.168.1.5

[@more@]系统reboot后会恢复路由原始状态,如果不想每次重新配置的话,可以将添加路由的命令加到启动脚本里面.
请使用浏览器的分享功能分享到微信等