RIPV1和RIPV2
版本 |
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实列1中R1、R2、R3、R4末尾加上RIPV2配置命令
version 2
undo summary