首页 > 代码库 > 1-1 RIPv1&v2配置试验

1-1 RIPv1&v2配置试验

1.试验目标

掌握RIPv2的配置方式

2.试验拓扑

技术分享                  

3.配置

一. IP地址及其基本配置

<Huawei>system-view

Enter system view, return user view with Ctrl+Z.    

[Huawei]sysname R1 

[R1]interface LoopBack 0

[R1-LoopBack0]ip add 10.0.1.1 24

[R1-LoopBack0]quit

[R1]int g0/0/0

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

[R1-GigabitEthernet0/0/0]quit

[R1]int s1/0/0

[R1-Serial1/0/0]ip add 10.0.14.1 24

 

<Huawei>system-view

Enter system view, return user view with Ctrl+Z.

[Huawei]sysname R2

[R2]interface LoopBack 0

[R2-LoopBack0]ip add 10.0.2.2 24

[R2-LoopBack0]quit

[R2]int g0/0/0

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

[R2-GigabitEthernet0/0/0]quit

 

 

<Huawei>system-view

Enter system view, return user view with Ctrl+Z.

[Huawei]sysname R3 

[R3]int LoopBack 0

[R3-LoopBack0]ip add 10.0.3.3 24

[R3-LoopBack0]quit

[R3]int g0/0/0

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

[R3-GigabitEthernet0/0/0]quit

 

 

<Huawei>system-view

Enter system view, return user view with Ctrl+Z.

[Huawei]sysname R4

[R4]int lo 0

[R4-LoopBack0]ip add 10.1.0.1 24

[R4]int lo 1

[R4-LoopBack0]ip add 10.1.1.1 24

[R4-LoopBack0]quit

[R4]int s1/0/0

[R4-Serial1/0/0]ip add 10.0.14.4 24

[R4-Serial1/0/0]quit

[R4-GigabitEthernet0/0/0]quit

二. 配置RIPv2协议

[R1]rip 1

[R1-rip-1]version 2

[R1-rip-1]net 10.0.0.0

[R1-rip-1]undo summary

 

[R2]rip 1

[R2-rip-1]version 2

[R2-rip-1]net 10.0.0.0

[R2-rip-1]undo summary

 

[R3]rip 1

[R3-rip-1]version 2

[R3-rip-1]net 10.0.0.0

[R3-rip-1]undo summary

 

[R4]rip

[R4-rip-1]version 2

[R4-rip-1]net 10.0.0.0

[R4-rip-1]undo summary

1-1 RIPv1&v2配置试验