|
|
发表于 2007-2-18 00:51:16
|
显示全部楼层
Post by 98118
具体要怎样做?
能在路由器中设置吗?
是本地路由,不是路由器的路由。
如果是临时全局切换,给你一个列子,可以写个script,如果不同网段不同路由的话,擂同,可以参考man route
linux-soc5:/home/wudi # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
linux-soc5:/home/wudi # route del default gw 192.168.0.1
linux-soc5:/home/wudi # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
linux-soc5:/home/wudi # route add default gw 192.168.10.100 |
|