- 论坛徽章:
- 0
|
本帖最后由 tianer 于 2011-01-27 18:03 编辑
回复 2# net-pedestrian
现在在192.168.3.79上ping 某个ip
网关机用tcpdump抓包 结果如下
tcpdump -i eth0 dst 67.xx.xx.xx
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
17:53:06.975588 IP 192.168.3.79 > 67.xx.xx.xx: ICMP echo request, id 512, seq 20393, length 40
17:53:12.485963 IP 192.168.3.79 > 67.xx.xx.xx: ICMP echo request, id 512, seq 20649, length 40
tcpdump -i ppp0
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on ppp0, link-type LINUX_SLL (Linux cooked), capture size 96 bytes
17:53:39.995992 IP 192.168.1.13 > 67.xx.xx.xx: ICMP echo request, id 512, seq 21929, length 40
17:53:45.510431 IP 192.168.1.13 > 67.xx.xx.xx: ICMP echo request, id 512, seq 22185, length 40
查看路由
ip route ls
192.168.0.78 dev ppp0 proto kernel scope link src 10.0.0.4
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.x
169.254.0.0/16 dev eth0 scope link
default via 192.168.1.254 dev eth0 |
|