理论知识:
实践1
R1 \ R2 配置RIP协议,略
观察RIP 收发报文的情况
terminal debugging
The current terminal is enabled to display debugging logs.
terminal monitor
The current terminal is enabled to display logs.
debugging ripng 1 packet
通过分析路由更新信息,发现R1在接口S1/0上收到的路由192.168.2.0,而不会从S1/0发出
[R1-Serial1/0]undo rip split-horizon //在R1上的S1/0上取消水平分割,发现发送的路由更新包括了路由192.168.0.0、192.168.1.0、192.168.2.0,从S1/0又发出去了,这样很容易造成路由环路。
避免环路的方法就是毒性逆转,在R1的S1/0上启用毒性逆转
[R1-Serial1/0]rip poison-reverse
开启毒性逆转后R1发送的路由更新包括了路由192.168.2.0,度量值是16,告诉R2,R1的S1/0不能到达192.168.2.0