- 论坛徽章:
- 0
|
问题描述. A机系统是ubuntu. 网卡设备
eth0 : 192.168.0.37
tap0: 192.168.2.100 (tunctl虚拟的网卡)
我B机上, 192.168.0.50上, 建立 和0.37的GTPU隧道, 然后在C机 192.168.2.2 使用该隧道向192.168.2.100 发送ping命令:
A机抓包显示:
12:50:23.837354 IP 192.168.2.2 > 192.168.2.100: ICMP echo request, id 1024, seq 4617, length 40
0x0000: 0000 0000 0000 0000 0000 0000 0800 4500
0x0010: 003c 45d8 0000 8001 6f32 c0a8 0202 c0a8
0x0020: 0264 0800 3753 0400 1209 6162 6364 6566
0x0030: 6768 696a 6b6c 6d6e 6f70 7172 7374 7576
0x0040: 7761 6263 6465 6667 6869
12:50:23.837379 IP 192.168.2.100 > 192.168.2.100: ICMP echo reply, id 1024, seq 4617, length 40
0x0000: 0000 0000 0000 0000 0000 0000 0800 4500
0x0010: 003c 75bb 0000 4001 7eed c0a8 0264 c0a8
0x0020: 0264 0000 3f53 0400 1209 6162 6364 6566
0x0030: 6768 696a 6b6c 6d6e 6f70 7172 7374 7576
0x0040: 7761 6263 6465 6667 6869
看A机的回应, 怎么dst的IP地址是它自己呢, 应该是192.168.2.2才对啊? 哪位大侠给分析一下,怎么会这样呢?
A机 的route信息为:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 tap0
192.168.1.0 * 255.255.255.0 U 0 0 0 ra0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 1000 0 0 ra0
default bogon 0.0.0.0 UG 100 0 0 eth0
default DD-WRT 0.0.0.0 UG 100 0 0 ra0
|
|