实验要求:
实验步骤:
1.IP地址规划以及网段的划分
2.给各个路由器配IP
AR1:
<Huawei>sy
[Huawei]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.1.33 28
[Huawei-GigabitEthernet0/0/1]interface g 0/0/2
[Huawei-GigabitEthernet0/0/2]ip add 192.168.1.49 28
[Huawei]int loopback 1
[Huawei-LoopBack1]ip add 192.168.1.1 28
[Huawei-LoopBack1]int loopback 2
[Huawei-LoopBack2]ip add 192.168.1.17 28
查看已配好的IP:[Huawei]display ip int br
AR2 AR3 AR4 AR5 根据规划的IP重复以上操作
AR5:环回接口5.5.5.1
3.手写静态路由
AR1:
[Huawei]ip route-
[Huawei]ip route-static 192.168.1.128 27 192.168.1.34
[Huawei]ip route-static 192.168.1.192 27 192.168.1.34
[Huawei]ip route-static 192.168.1.64 28 192.168.1.34
[Huawei]ip route-static 192.168.1.96 28 192.168.1.34
[Huawei]ip route-static 192.168.1.112 28 192.168.1.34
[Huawei]ip route-static 192.168.1.160 27 192.168.1.150
[Huawei]ip route-static 192.168.1.80 28 192.168.1.150
[Huawei]ip route-static 192.168.1.192 27 192.168.1.150
[Huawei]ip route-static 192.168.1.96 28 192.168.1.150
[Huawei]ip route-static 192.168.1.112 28 192.168.1.150
查看路由器中路由表:[Huawei]display ip routing-table
AR2 AR3 AR4 AR5 根据以上操作 配静态路由
检测是否配好:尽量每个IP都ping一下
4.加缺省路由
[r1]ip route-static 0.0.0.0 0 192.168.1.34
[r2]ip route-static 0.0.0.0 0 192.168.1.66
[r3]ip route-static 0.0.0.0 0 192.168.1.82
[r4]ip route-static 0.0.0.0 0 192.168.1.98
ip route-static 0.0.0.0 0 192.168.1.114