我有一个运行良好的 PPTP VPN,但我想更改 ppp0 IP,当我这样做时,我失去了路由配置。
这是一切正常的路由表
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default * 0.0.0.0 U 0 0 0 ppp0
default 192.168.0.1 0.0.0.0 UG 303 0 0 wlan0
xxx-xxx-xx-xxx. 192.168.0.1 255.255.255.255 UGH 0 0 0 wlan0
192.168.0.0 * 255.255.255.0 U 303 0 0 wlan0
192.168.1.1 * 255.255.255.255 UH 0 0 0 ppp0
192.168.100.0 * 255.255.255.0 U 0 0 0 eth0
更改 ppp0 IP 后我得到了这个
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.0.1 0.0.0.0 UG 303 0 0 wlan0
xxx-xxx-xx-xxx. 192.168.0.1 255.255.255.255 UGH 0 0 0 wlan0
192.168.0.0 * 255.255.255.0 U 303 0 0 wlan0
192.168.100.0 * 255.255.255.0 U 0 0 0 eth0
我如何取回这两行?
192.168.1.1 * 255.255.255.255 UH 0 0 0 ppp0
default * 0.0.0.0 U 0 0 0 ppp0
谢谢。