<分区>
在我的电脑上,我有 2 个连接 - 3G 和 LAN。
在连接 3G 之前,路由表是这样的:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.0.1 0.0.0.0 UG 100 0 0 eth0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
3G拨号后的路由表是这样的:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 10.64.64.64 0.0.0.0 UG 0 0 0 ppp0
10.64.64.64 * 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
3G断开后,路由表是这样的:
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
由于3G断开后默认路由被禁用,即使局域网处于事件状态,系统也无法连接到服务器。
有没有办法在3G掉线后修改路由表?
提前致谢