A ping B ping C, 如何配置能让A ping C 成功 ?
A 为我的win10系统,
B为有公网IP的服务器(公网IP=121.4.131.141, 内网IP=172.17.16.13),
C为和B在同一个内网的服务器(内网IP=172.17.16.4)
我在B上安装配置了VPN Server, 虚拟网卡IP为:10.192.122.1
我在A上安装配置了VPN Client, 虚拟网卡IP为:10.192.122.2
VPN连接成功后, 在win10系统上能 ping 通B的虚拟IP=10.192.122.1 和 内网IP=172.17.16.13, 但是ping 不通C的IP=172.17.16.4
要如何配置才能让WIN10 ping 通 C呢 ?
C的路由如下:
[root@VM-16-4-centos ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default _gateway 0.0.0.0 UG 100 0 0 eth0
172.17.16.0 0.0.0.0 255.255.240.0 U 100 0 0 eth0
B的路由如下:
[root@VM-16-13-centos ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default _gateway 0.0.0.0 UG 100 0 0 eth0
10.192.122.0 0.0.0.0 255.255.255.0 U 0 0 0 wg0
172.17.16.0 0.0.0.0 255.255.240.0 U 100 0 0 eth0
WIN10路由如下:
IPv4 路由表
===========================================================================
活动路由:
网络目标 网络掩码 网关 接口 跃点数
0.0.0.0 0.0.0.0 192.168.1.1 192.168.29.18 35
10.192.122.0 255.255.255.0 在链路上 10.192.122.2 291
10.192.122.2 255.255.255.255 在链路上 10.192.122.2 291
10.192.122.255 255.255.255.255 在链路上 10.192.122.2 291
127.0.0.0 255.0.0.0 在链路上 127.0.0.1 331
127.0.0.1 255.255.255.255 在链路上 127.0.0.1 331
127.255.255.255 255.255.255.255 在链路上 127.0.0.1 331
172.17.0.0 255.255.255.0 10.192.122.1 10.192.122.2 135
172.17.16.0 255.255.255.0 10.192.122.1 10.192.122.2 135
192.168.0.0 255.255.224.0 在链路上 192.168.29.18 291
192.168.29.18 255.255.255.255 在链路上 192.168.29.18 291
192.168.31.255 255.255.255.255 在链路上 192.168.29.18 291
192.168.106.0 255.255.255.0 在链路上 192.168.106.1 291
192.168.106.1 255.255.255.255 在链路上 192.168.106.1 291
192.168.106.255 255.255.255.255 在链路上 192.168.106.1 291
192.168.154.0 255.255.255.0 在链路上 192.168.154.1 291
192.168.154.1 255.255.255.255 在链路上 192.168.154.1 291
192.168.154.255 255.255.255.255 在链路上 192.168.154.1 291
255.255.255.255 255.255.255.255 在链路上 127.0.0.1 331
255.255.255.255 255.255.255.255 在链路上 192.168.29.18 291
255.255.255.255 255.255.255.255 在链路上 192.168.106.1 291
255.255.255.255 255.255.255.255 在链路上 192.168.154.1 291
255.255.255.255 255.255.255.255 在链路上 10.192.122.2 291