首页 > 代码库 > RIP汇总
RIP汇总
拓扑图
RT1:
<RT1>sys
System View: return to User View with Ctrl+Z.
[RT1]int g0/0/0
[RT1-GigabitEthernet0/0/0]ip add 172.17.2.1 24
[RT1-GigabitEthernet0/0/0]int g0/0/1
[RT1-GigabitEthernet0/0/1]ip add 172.16.1.1 24
[RT1-GigabitEthernet0/0/1]int g0/0/2
[RT1-GigabitEthernet0/0/2]ip add 172.17.1.1 24
[RT1-GigabitEthernet0/0/2]quit
[RT1]rip
[RT1-rip-1]network 172.17.2.0
[RT1-rip-1]network 172.16.1.0
[RT1-rip-1]network 172.17.1.0
Specified network is already configured in this instance
[RT1-rip-1]
RT2:
<RT2>sys
System View: return to User View with Ctrl+Z.
[RT2]int g0/0/0
[RT2-GigabitEthernet0/0/0]ip add 172.17.2.2 24
[RT2-GigabitEthernet0/0/0]quit
[RT2]rip
[RT2-rip-1]network 172.17.2.0
[RT2-rip-1]
RT1:
[RT1-rip-1]undo summary
RT1:
[RT1]int g0/0/2
[RT1-GigabitEthernet0/0/2]ip add 172.17.1.1 25
[RT1-GigabitEthernet0/0/2]
RT1
[RT1-GigabitEthernet0/0/2]ip add 172.17.1.1 24
RT2:
[RT2]
[RT2]int g0/0/0
[RT2-GigabitEthernet0/0/0]ip add 172.17.2.2 28
④ RT2
[RT2]int g0/0/0
[RT2-GigabitEthernet0/0/0]ip add 172.17.2.2 24
[RT2-GigabitEthernet0/0/0]int g0/0/3
[RT2-GigabitEthernet0/0/3]ip add 172.16.2.1 24
[RT2-GigabitEthernet0/0/3]
总结 收发规则
发送
①当此接口主网地址与发送端主网地址不一样时则汇聚成主网地址发送
②当此接口主网地址与发送端相同但掩码长度不同则不发送相同则发送
接收
③当发送来的主网地址能在接收方的路由器任意接口找到此主网的子网地址则不接收
④当与接收接口同主网地址发送来时与接收接口掩码长度不同则改为接收接口的掩码长度再接收
RIP汇总