标签:toc 动态路由协议 华为 基础 图片 png null loop port
这是一道《华为hcip学习指南》里的题,感觉不错。就分享一下:R1的基础配置:
#
interface GigabitEthernet0/0/0
ip address 192.168.12.1 255.255.255.0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
interface LoopBack0
ip address 192.168.1.1 255.255.255.0
#
R2的基础配置:
#
interface GigabitEthernet0/0/0
ip address 192.168.12.2 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 192.168.23.2 255.255.255.0
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
R3的基础配置:
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
ip address 192.168.23.3 255.255.255.0
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
interface LoopBack0
ip address 192.168.3.1 255.255.255.0
#
4.2在三台路由器上配置RIP协议:
R1的RIPv2的配置:
#
rip 1
version 2
network 192.168.12.0
network 192.168.1.0
#
R2的RIPV2的配置:
#
rip 1
version 2
network 192.168.12.0
import-route rip 2
#
rip 2
version 2
network 192.168.23.0
import-route rip 1
#
R3的RIPV2的配置:
#
rip 1
version 2
network 192.168.23.0
network 192.168.3.0
#
5、结果验证:
5.1在R1上执行dis ip routing-table protocol rip命令,查看是否学到R3网段。
5.2在R3上执行dis ip routing-table protocol rip命令,查看是否学到R1网段。
标签:toc 动态路由协议 华为 基础 图片 png null loop port
原文地址:https://blog.51cto.com/7546046/2431478