配置RIP

一、配置RIPv1

拓扑图如下:

配置RIP_第1张图片

AR1的接口配置如下:

system-view 

[Huawei]interface Serial 2/0/0

[Huawei-Serial2/0/0]ip address 192.168.1.1 24

[Huawei-Serial2/0/0]quit

[Huawei]interface GigabitEthernet 0/0/0

[Huawei-GigabitEthernet0/0/0]ip address 192.168.0.1 24

AR2的接口配置如下:

system-view

[Huawei]interface Serial 2/0/0

[Huawei-Serial2/0/0]ip address 192.168.1.2 24

[Huawei-Serial2/0/0]quit

[Huawei]interface GigabitEthernet 0/0/0

[Huawei-GigabitEthernet0/0/0]ip address 192.168.2.1 24

AR1的RIP配置如下:

[Huawei]rip

[Huawei-rip-1]network 192.168.0.0

[Huawei-rip-1]network 192.168.1.0

AR2的RIP配置如下:

[Huawei]rip

[Huawei-rip-1]network 192.168.1.0

[Huawei-rip-1]network 192.168.2.0

PC1配置如下:

配置RIP_第2张图片

PC2配置如下:

配置RIP_第3张图片

PC1 ping PC2 结果如下:

配置RIP_第4张图片

 

二、配置RIPv2

AR1的接口配置如下:

system-view

[Huawei]interface Serial 2/0/0

[Huawei-Serial2/0/0]ip address 192.168.1.1 24

[Huawei-Serial2/0/0]quit

[Huawei]interface GigabitEthernet 0/0/0

[Huawei-GigabitEthernet0/0/0]ip address 192.168.0.1 24

[Huawei-GigabitEthernet0/0/0]quit

AR2的接口配置如下:

system-view

[Huawei]interface Serial 2/0/0

[Huawei-Serial2/0/0]ip address 192.168.1.2 24

[Huawei-Serial2/0/0]quit

[Huawei]interface GigabitEthernet 0/0/0

[Huawei-GigabitEthernet0/0/0]ip address 10.0.0.1 24

[Huawei-GigabitEthernet0/0/0]quit

AR1的RIP配置如下:

[Huawei]rip

[Huawei-rip-1]version 2

[Huawei-rip-1]undo summary

[Huawei-rip-1]network 192.168.0.0

[Huawei-rip-1]network 192.168.1.0

AR2的RIP配置如下:

[Huawei]rip

[Huawei-rip-1]version 2

[Huawei-rip-1]undo summary 

[Huawei-rip-1]network 192.168.1.0

[Huawei-rip-1]network 10.0.0.0

PC1配置如下:

配置RIP_第5张图片

PC2配置如下:

配置RIP_第6张图片

PC1 ping PC2 结果如下:

配置RIP_第7张图片

你可能感兴趣的:(计算机网络)