GNS3 模拟icmp记录路由

路由配置:

icmp记录路由抓取出接口的IP地址,最多可以抓取9个。ip协议头中的options为40个字节

 

R1 :

conf t

int f0/0

no shutdown

ip add 192.168.1.1 255.255.255.0

no ip routing

end

 

R2 f0/0:

conf t

int f0/0

no shutdown

ip add 192.168.1.254 255.255.255.0

end

 

R2 f1/0:

conf t

int f0/0

no shutdown

ip add 192.168.2.254 255.255.255.0

end

 

 

R3 :

conf t

int f0/0

no shutdown

ip add 192.168.2.1 255.255.255.0

no ip routing

end

 

首先R1 ping R3,要保障线路畅通。然后输入 ping + ENTER进入下面界面:

 

再按回车,

 

wireshark抓包显示:

 

posted @ 2016-01-17 11:40  QQ76211822  阅读(335)  评论(0编辑  收藏  举报