实验目标:
1.划分IP地址和环回地址范围
2.配置IP地址(以r1为例)
配置直连网段IP:
[Huawei]sy
[Huawei]sysname r1
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.1 28
[r1]int g0/0/1
[r1-GigabitEthernet0/0/1]ip add 192.168.1.17 28
配置环回网段IP:
[r1]int Loop0
[r1-LoopBack0]ip add 192.168.1.33 28
[r1]int Loop1
[r1-LoopBack1]ip add 192.168.1.49 28
3.配置静态路由
[r1]ip route-static 192.168.1.64 27 192.168.1.2
[r1]ip route-static 192.168.1.8 30 192.168.1.2
[r1]ip route-static 192.168.1.128 27 192.168.1.2
[r1]ip route-static 192.168.1.128 27 192.168.1.6
[r1]ip route-static 192.168.1.16 30 192.168.1.2
[r1]ip route-static 192.168.1.16 30 192.168.1.6
[r1]ip route-static 192.168.1.12 30 192.168.1.6
[r1]ip route-static 192.168.1.96 27 192.168.1.6
4.添加缺省路由
[r1]ip route-static 0.0.0.0 0 192.168.1.2
添加浮动静态路由
[r4]ip rou 0.0.0.0 0 192.168.1.22 pre 61
6.加上防环路由
[r1]ip rou 192.168.1.32 27 null 0
测试
静态路由表如下