![无法 ping 通路由器的 IP](https://linux22.com/image/677542/%E6%97%A0%E6%B3%95%20ping%20%E9%80%9A%E8%B7%AF%E7%94%B1%E5%99%A8%E7%9A%84%20IP.png)
我的问题是:
- r1 ping r4(em0)会丢失第一个数据包
- r2 ping r3(em0) 也会丢失第一个数据包
- r3 无法 ping r2(eth0)
- r4 无法 ping r1(eth0)
有 4 个路由器,并通过 openvpn(tun)连接。r1/r2 是 ubuntu,在 AWS EC2 中运行。r3/r4 是 pfSense,在 ESXi VM 中运行。
r1:
eth0: 10.5.1.8/24
tun0: 10.15.0.1 (to r2 tun0)
tun1: 10.15.1.1 (to r3 ovpnc1)
r2:
eth0: 10.5.2.9/24
tun0: 10.15.0.2 (to r1 tun0)
tun1: 10.15.1.13 (to r4 opvnc1)
r3:
em0: 192.168.91.1/24 (CARP IP: 192.168.91.3)
em1: 10.15.11.1 (PFSYNC interface, connect to r4 by dedicate vlan)
ovpnc1: 10.15.1.2 (to r1)
R4:
em0: 192.168.91.2/24 (CARP IP: 192.168.91.3)
em1: 10.15.11.2 (PFSYNC interface, connect to r3 by dedicate vlan)
ovpnc1: 10.15.1.14 (to r2)
r1 -tun - r2
| |
tun tun
| |
r3 -vlan- r4
PS:由于 r1 和 r2 在 AWS 中运行,因此 r1(10.5.1.0/24)到 r2(10.5.2.0/24)使用 AWS VPN 路由器(10.5.1.1)。
所有路由器都运行 OSPF。
细节:
从 r1 ping:
r2(10.5.2.9): success
r2(10.15.0.2): success
r3(192.168.91.1): success
r3(10.15.1.2): success
r4(192.168.91.2): **success, but will lost the first ping packet(always)**
r4(10.15.1.14): success, no packet loss
从 r2 ping:
r1(10.5.1.8): success
r1(10.15.0.1): success
r3(192.168.91.1): **success, the first packet loss too**
r3(10.15.1.2): success, no packet loss
r4(192.168.91.2): success
r4(10.15.1.14): success
来自 r3 ping:
r1(10.5.1.8): success
r1(10.15.1.1): success
r2(10.5.2.9): **FAILED, cannot ping**
r2(10.15.0.2): success
r2(10.15.1.13): success
r4(192.168.91.2): success
r4(10.15.11.2): success
从 r4 ping:
r1(10.5.1.8): **FAILED, cannot ping**
r1(10.15.0.1): success
r1(10.15.1.1): success
r2(10.5.2.9): success
r2(10.15.1.13): success
r3(192.168.91.1): success
r3(10.15.11.1): success