家庭 MAC 访问公司路由器下的设备.
问题:在 LNS 和 LAC 都配置了静态路由,依然无效。
Destination Gateway Genmask Flags Metric Ref Use Iface
default gateway 0.0.0.0 UG 100 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 100 0 0 eth0
192.168.18.100 0.0.0.0 255.255.255.255 UH 0 0 0 ppp1
192.168.18.101 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.123.0 192.168.18.100 255.255.255.0 UG 0 0 0 ppp1
192.168.124.0 192.168.18.101 255.255.255.0 UG 0 0 0 ppp0
route add -net 192.168.2.0/24 dev ppp5
route add -net 192.168.18.0/24 dev ppp5
[root@centos7-test-01 ~]# ping 192.168.123.1
PING 192.168.123.1 (192.168.123.1) 56(84) bytes of data.
64 bytes from 192.168.123.1: icmp_seq=1 ttl=64 time=7.56 ms
64 bytes from 192.168.123.1: icmp_seq=2 ttl=64 time=8.29 ms
64 bytes from 192.168.123.1: icmp_seq=3 ttl=64 time=7.79 ms
[root@centos7-test-01 ~]# ping 192.168.124.1
PING 192.168.124.1 (192.168.124.1) 56(84) bytes of data.