我有一个在客户端(UE)和网关路由器(192.168.1.1)之间创建gtp隧道的代码。主机eth0(192.168.1.62)连接到网关路由器,另一台计算机(192.168.1.82)
在gtp隧道之前,两台计算机愉快地通话,如图所示
epc@nano:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 600 0 0 wl1
192.168.1.0 * 255.255.255.0 U 100 0 0 eth0
192.168.1.0 * 255.255.255.0 U 600 0 0 wl1
epc@nano:~$ ping -I eth0 192.168.1.82
PING 192.168.1.82 (192.168.1.82) from 192.168.1.62 eth0: 56(84) bytes of data.
64 bytes from 192.168.1.82: icmp_seq=1 ttl=64 time=1.12 ms
64 bytes from 192.168.1.82: icmp_seq=2 ttl=64 time=0.578 ms
但是当我运行代码并添加dev gtp0时,通过eth0的计算机无法相互ping通。请提出任何建议。
epc@nano:~$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 600 0 0 wl1
192.168.1.0 * 255.255.255.0 U 0 0 0 gtp0
192.168.1.0 * 255.255.255.0 U 100 0 0 eth0
192.168.1.0 * 255.255.255.0 U 600 0 0 wl1
192.168.1.114 * 255.255.255.254 U 0 0 0 gtp0
epc@nano:~$ ping -I eth0 192.168.1.82
PING 192.168.1.82 (192.168.1.82) from 192.168.1.62 eth0: 56(84) bytes of data.
^C
--- 192.168.1.82 ping statistics ---
21 packets transmitted, 0 received, 100% packet loss, time 20500ms