aozima

阿里云 经典网络使用ClassicLink连接到专用网络后,192.168网段需要添加路由

配置后,专用网络中的机器Ping不通经典网络,

查帮助说192.168网段需要手动添加路由表。

抓包能在经典网络中收到专用网络中过来的数据包,但回复的数据包不能正确发出去。

 

先用 route -n 查看当前路由,

10.0.0.0        10.116.207.247  255.0.0.0       UG    0      0        0 eth0
10.116.200.0    0.0.0.0         255.255.248.0   U     0      0        0 eth0
100.64.0.0      10.116.207.247  255.192.0.0     UG    0      0        0 eth0
172.16.0.0      10.116.207.247  255.240.0.0     UG    0      0        0 eth0

根据示例添加一条

route add -net 192.168.0.0/16 gw 10.116.207.247

再用 route -n 查看

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.0.0        10.116.207.247  255.0.0.0       UG    0      0        0 eth0
10.116.200.0    0.0.0.0         255.255.248.0   U     0      0        0 eth0
100.64.0.0      10.116.207.247  255.192.0.0     UG    0      0        0 eth0
172.16.0.0      10.116.207.247  255.240.0.0     UG    0      0        0 eth0
192.168.0.0     10.116.207.247  255.255.0.0     UG    0      0        0 eth0

然后专用网络中的机器就可以Ping通经典网络中的机器了。

分类:

技术点:

相关文章:

  • 2021-09-03
  • 2021-09-13
  • 2022-01-05
  • 2021-09-05
  • 2021-08-13
  • 2021-11-25
  • 2022-12-23
  • 2022-01-07
猜你喜欢
  • 2021-12-31
  • 2022-01-21
  • 2022-01-07
  • 2021-12-13
  • 2021-11-28
  • 2022-01-07
  • 2022-12-23
相关资源
相似解决方案