GNS3 模拟icmp分片不可达

本文详细介绍了路由器之间的路由配置、MTU设置以及如何通过ping命令触发分片过程,并在R2出口处抓包验证分片信息。重点讨论了在特定场景下实现分片不可达的方法。

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

 配置路由MTU:

conf t

int f1/0

ip mtu 100

end

 

R3 :

conf t

int f0/0

no shutdown

ip add 192.168.2.1 255.255.255.0

no ip routing

end

 

在R1里面添加 ip route 0.0.0.0 0.0.0.0 192.168.1.254映射从R1的路由表,然后ping 192.168.2.1 size 200。在R2出口处抓包。

 

出现分片信息。

ping 192.168.2.1 size 200 df-bit 

分片不可达实现了

转载于:https://www.cnblogs.com/qq76211822/p/5128503.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值