一.划分网段
192.168.1.0/24 划分5个网段 借3位
骨干链路192.168.1.0/27
192.168.1.0/30 192.168.1.4/30 192.168.1.8/30 192.168.1.12/30 192.168.1.16/30 192.168.1.20/30 192.168.1.24/30 192.168.1.28/30--不用
R1 环回192.168.1.32/27 192.168.1.32/28 192.168.1.48/28
R2 环回192.168.1.64/27 192.168.1.64/28 192.168.1.80/28
R3 环回192.168.1.96/27 192.168.1.96/28 1922.168.1.112/28
R4 环回192.168.1.128/27 192.168.1.128/28 192.168.1.144/28
二.配置地址和环回接口(以R1举例R1~5)
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.1 30
[Huawei]interface g0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.1.21 30
[Huawei]interface LoopBack 0
[Huawei-LoopBack0]ip address 192.168.1.33 28
[Huawei]interface LoopBack 1
[Huawei-LoopBack1]ip address 192.168.1.49 28
R5配置环回为5.5.5.1 24
三.书写静态路由(以R1为例)
[Huawei]ip route-static 192.168.1.4 255.255.255.252 192.168.1.2
[Huawei]ip route-static 192.168.1.8 255.255.255.252 192.168.1.2
[Huawei]ip route-static 192.168.1.12 255.255.255.252 192.168.1.22
[Huawei]ip route-static 192.168.1.16 255.255.255.252 192.168.1.22
[Huawei]ip route-static 192.168.1.64 255.255.255.224 192.168.1.2
[Huawei]ip route-static 192.168.1.96 255.255.255.224 192.168.1.2
[Huawei]ip route-static 192.168.1.128 255.255.255.224 192.168.1.22
四.书写缺省理由(都要写,除R5)
[Huawei]ip route-static 0.0.0.0 0 192.168.1.2
五.书写空接口防环
[Huawei]ip route-static 192.168.1.32 27 NULL 0
其他路由器书写防环空接口均一样 注意汇总路由地址即可
六.更改100M线路cost值
[Huawei]]ip route-static 192.168.1.12 30 192.168.1.13 preference 70
七.测试是否连通
欧克
实验结束