其他分享
首页 > 其他分享> > ICMP协议

ICMP协议

作者:互联网

一、ICMP基本概念

1、ICMP协议

2、ICMP报文格式

类型(Type)

编码(code)

二、ICMP重定向

在某些特定情况下,路由器检测到主机使用非优化路由的时候,会向主机发送一个ICMP重定向的报文,使主机的路由改变

1、ICMP重定向原理实验

R1和R2设置了个loopback作为下一个主机

R1设置

int f0/0
ip add 192.168.1.254 255.255.255.0
no shut
exit
int loopback 0
ip add 192.168.2.1 255.255.255.0
no shut

R2设置

int f0/0
ip add 192.168.1.253 255.255.255.0
no shut
exit
int loopback 0
ip add 192.168.3.1 255.255.255.0
no shut

VM1

ping 192.168.3.1

抓包情况

注:每次第一个报文都会重定向

2、ICMP重定向攻击

在kali上使用工具实施ICMP重定向网关

标签:协议,重定向,主机,报文,192.168,255.255,ICMP
来源: https://www.cnblogs.com/Xian-Yv/p/16459439.html