实验内容:
根据拓扑图分析有6个网段,R1-R4每个路由器存在2环回接口,所以一共14个网段,将192.168.1.0/24划分为16个子网。
子网划分:
实验过程:
1.配置环回接口IP地址和路由器各个接口的IP(以AR1为例)
<Huawei>system-view
[Huawei]sysname r1
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.17 28
[r1-GigabitEthernet0/0/0]q
[r1]int g 0/0/1
[r1-GigabitEthernet0/0/1]ip address 192.168.1.33 28
[r1-GigabitEthernet0/0/1]q
[r1]interface LoopBack 1
[r1-LoopBack1]ip address 192.168.1.129 28
[r1-LoopBack1]q
[r1]interface LoopBack 2
[r1-LoopBack2]ip address 192.168.1.129 28
[r1-LoopBack2]q
AR1:
AR2:
AR3:
AR4:
AR5:
2. 配置静态路由和缺省路由:(以AR1为例)
[r1]ip route-static 192.168.1.48 28 192.168.1.18
[r1]ip route-static 192.168.1.64 28 192.168.1.34
[r1]ip route-static 0.0.0.0 0.0.0.0 192.168.1.18
[r1]ip route-static 0.0.0.0 0.0.0.0 192.168.1.34
3.浮动静态路由:
[r4]ip route-static 5.5.5.1 24 192.168.1.210 preference 61