首页 > 代码库 > RIP汇总

RIP汇总

拓扑图


wKioL1ROWAfhgqCVAAHHO-5j_EY074.jpg


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]

wKiom1ROV7KRsBZ5AAGaakHfuRE617.jpg


RT1:

[RT1-rip-1]undo summary 

wKiom1ROV7PhoUZ_AAE2-Cn01VU720.jpg


RT1:

[RT1]int g0/0/2

[RT1-GigabitEthernet0/0/2]ip add 172.17.1.1 25

[RT1-GigabitEthernet0/0/2]

wKioL1ROWAiyMPLWAAD8cPWtNDs565.jpg


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


wKioL1ROWAix6x4HAAEgWKgA2rA450.jpg


 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]


wKiom1ROV7SyiSKJAAF1RHAAw7Q052.jpg




总结  收发规则

发送

 

    当此接口主网地址与发送端主网地址不一样时则汇聚成主网地址发送

           

    当此接口主网地址与发送端相同但掩码长度不同则不发送相同则发送

 

接收

 

    当发送来的主网地址能在接收方的路由器任意接口找到此主网的子网地址则不接收


     当与接收接口同主网地址发送来时与接收接口掩码长度不同则改为接收接口的掩码长度再接收



RIP汇总