人的一生,有许多事情,是需要放在心里慢慢回味的,过去的就莫要追悔,一切向前看吧 任何打击都不足以成为你堕落的借口,即使你改变不了这个世界,你却依然可以改变自己,选择条正确的路永远走下去。
返回顶部

RIP路由协议配置

RIPV1RIPV2

版本

RIPV1

RIPV2

区别

有类路由协议

无类路由协议

广播更新(255.255.255.255

组播更新(224.0.0.9

不支持VLSM

支持VLSM

自动路由汇总,不可关闭

自动汇总可关闭,可手工汇总

不支持不连续子网

支持不连续子网

1、RIPV1

①跨越主类网络边界:指的是两个不同的主类网络之间的路由网段,跨越主类网络边界的路由器会自动把路由汇总成主类显示

实列1

 

R1配置信息

<Huawei>undo terminal monitor

<Huawei>system-view

[Huawei]user-interface console 0

[Huawei-ui-console0]idle-timeout 0 0

[Huawei-ui-console0]sysname R1

[R1]int g0/0/0

[R1-GigabitEthernet0/0/0]ip add 10.1.1.1 24

[R1-GigabitEthernet0/0/0]undo shutdown

[R1-GigabitEthernet0/0/0]quit

[R1]rip

[R1-rip-1]network 10.0.0.0

R2配置信息

<Huawei>undo terminal monitor

<Huawei>system-view

[Huawei]user-interface console 0

[Huawei-ui-console0]idle-timeout 0 0

[Huawei-ui-console0]sysname R2

[R2]int g0/0/0

[R2-GigabitEthernet0/0/0]ip add 10.1.1.2 24

[R2-GigabitEthernet0/0/0]undo shutdown

[R2-GigabitEthernet0/0/0]int g0/0/1

[R2-GigabitEthernet0/0/1]ip add 172.16.1.2 24

[R2-GigabitEthernet0/0/1]undo shutdown

[R2-GigabitEthernet0/0/1]quit

[R2]rip

[R2-rip-1]network 10.0.0.0

[R2-rip-1]network 172.16.0.0

R3配置信息

<Huawei>undo terminal monitor

<Huawei>system-view

[Huawei]user-interface console 0

[Huawei-ui-console0]idle-timeout 0 0

[Huawei-ui-console0]sysname R3

[R3]int g0/0/0

[R3-GigabitEthernet0/0/0]ip add 172.16.1.3 24

[R3-GigabitEthernet0/0/0]undo shutdown

[R3-GigabitEthernet0/0/0]int g0/0/1

[R3-GigabitEthernet0/0/1]ip add 12.1.1.3 24

[R3-GigabitEthernet0/0/1]undo shutdown

[R3-GigabitEthernet0/0/1]quit

[R3]rip

[R3-rip-1]network 172.16.0.0

[R3-rip-1]network 12.0.0.0

R4配置信息

<Huawei>undo terminal monitor

<Huawei>system-view

[Huawei]user-interface console 0

[Huawei-ui-console0]idle-timeout 0 0

[Huawei-ui-console0]sysname R4

[R4]int g0/0/0

[R4-GigabitEthernet0/0/0]ip add 12.1.1.4 24

[R4-GigabitEthernet0/0/0]undo shutdown

[R4-GigabitEthernet0/0/0]quit

[R4]rip

[R4-rip-1]network 12.0.0.0

 

②无跨越主类网络边界

 

R5配置信息

<Huawei>undo terminal monitor

<Huawei>system-view

[Huawei]user-interface console 0

[Huawei-ui-console0]idle-timeout 0 0

[Huawei-ui-console0]sysname R5

[R5]int g0/0/0

[R5-GigabitEthernet0/0/0]ip add 10.1.1.1 24

[R5-GigabitEthernet0/0/0]undo shutdown

[R5-GigabitEthernet0/0/0]quit

[R5]rip

[R5-rip-1]network 10.0.0.0

R6配置信息

<Huawei>undo terminal monitor

<Huawei>system-view

[Huawei]user-interface console 0

[Huawei-ui-console0]idle-timeout 0 0

[Huawei-ui-console0]sysname R6

[R6]int g0/0/0

[R6-GigabitEthernet0/0/0]ip add 10.1.1.2 24

[R6-GigabitEthernet0/0/0]undo shutdown

[R6-GigabitEthernet0/0/0]int g0/0/1

[R6-GigabitEthernet0/0/1]ip add 10.1.2.2 24

[R6-GigabitEthernet0/0/1]undo shutdown

[R6-GigabitEthernet0/0/1]quit

[R6]rip

[R6-rip-1]network 10.0.0.0

R7配置信息

<Huawei>undo terminal monitor

<Huawei>system-view

[Huawei]user-interface console 0

[Huawei-ui-console0]idle-timeout 0 0

[Huawei-ui-console0]sysname R7

[R7]int g0/0/0

[R7-GigabitEthernet0/0/0]ip add 10.1.2.3 24

[R7-GigabitEthernet0/0/0]undo shutdown

[R7-GigabitEthernet0/0/0]int g0/0/1

[R7-GigabitEthernet0/0/1]ip add 10.1.3.3 24

[R7-GigabitEthernet0/0/1]undo shutdown

[R7-GigabitEthernet0/0/1]quit

[R7]rip

[R7-rip-1]network 10.0.0.0

R8配置信息

<Huawei>undo terminal monitor

<Huawei>system-view

[Huawei]user-interface console 0

[Huawei-ui-console0]idle-timeout 0 0

[Huawei-ui-console0]sysname R8

[R8]int g0/0/0

[R8-GigabitEthernet0/0/0]ip add 10.1.3.4 24

[R8-GigabitEthernet0/0/0]undo shutdown

[R8-GigabitEthernet0/0/0]quit

[R8]rip

[R8-rip-1]network 10.0.0.0

2、RIPV2

 

RIPV1实列1R1R2R3R4末尾加上RIPV2配置命令

version 2

undo summary

 

posted @ 2020-07-22 19:25  yy1299050947  阅读(1008)  评论(0编辑  收藏  举报