1.拓扑图
要求
路由器上分别配置环回地址
链接路由器的网段分别为 12.1.1.0 /24 23.1.1.0 /24
R1 和R3 链接的网络地址分别为192.168.1.0 /24 192.168.2.0 /24
整个网络使用RIP可以达到全网可达
3.分析
- 首先为路由器接口配置ip 确立网段 配置PC端ip
- 配置环回网段
- 启动路由器RIP 并进行宣告
- 用PC1 ping PC 3若能ping通及实现全网可达
4.配置内容
AR1配置内容
[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.198.1.1 24
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 12.1.1.1 24
[Huawei]interface LoopBack 0
[Huawei-LoopBack0]ip address 1.1.1.1 32
[Huawei]rip 1
[Huawei-rip-1]version 1
[Huawei-rip-1]network 192.168.1.0
[Huawei-rip-1]network 1.0.0.0
[Huawei-rip-1]network 12.0.0.0
AR2配置内容
Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 12.1.1.2 24
[Huawei]interface LoopBack 0
[Huawei-LoopBack0]ip address 2.2.2.2 32
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 23.1.1.1 24
[Huawei]rip 1
[Huawei-rip-1]verify-source
[Huawei-rip-1]version 1
[Huawei-rip-1]network 12.0.0.0
[Huawei-rip-1]network 2.0.0.0
[Huawei-rip-1]network 23.0.0.0
AR3配置内容
[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 23.1.1.2 24
[Huawei]interface LoopBack 0
[Huawei-LoopBack0]ip address 3.3.3.3 32
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.2.1 24
[Huawei]rip 1
[Huawei-rip-1]version 1
[Huawei-rip-1]network 23.0.0.0
[Huawei-rip-1]network 3.0.0.0
[Huawei-rip-1]network 192.168.2.0
5.测试
版权归原作者 你搞什么飞机 所有, 如有侵权,请联系我们删除。