![更改 pptp vpn ip 后创建路由](https://linux22.com/image/10766/%E6%9B%B4%E6%94%B9%20pptp%20vpn%20ip%20%E5%90%8E%E5%88%9B%E5%BB%BA%E8%B7%AF%E7%94%B1.png)
我有一个运行良好的 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
谢谢。