HCIA(3)---静态路由综合实验
1.先按题目要求做出对应的拓扑结构
2.按照提示划分出对应的IP地址
3.对对应的路由器进行配置
R1
<Huawei>sys
[Huawei]sys R1
[R1]interface LoopBack0
[R1-LoopBack0]ip address 192.168.1.33 28
[R1]interface LoopBack1
[R1-LoopBack1]ip address 192.168.1.49 28
[R1]interface Ethernet0/0/0
[R1-Ethernet0/0/0]ip address 192.168.1.1 30
[R1]interface Ethernet0/0/1
[R1-Ethernet0/0/1]ip address 192.168.1.9 30[R1]ip route-static 192.168.1.32 27 NULL0
[R1]ip route-static 192.168.1.64 27 192.168.1.2
[R1]ip route-static 192.168.1.96 27 192.168.1.10
[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.10 preference 80[R1]ip route-static 0.0.0.0 0.0.0.0 192.168.1.2
[R1]ip route-static 0.0.0.0 0.0.0.0 192.168.1.10 preference 80R2
<Huawei>sys
[Huawei]sys R2
[R2]interface LoopBack0
[R2-LoopBack0] ip address 192.168.1.65 28
[R2-LoopBack0]interface LoopBack1
[R2-LoopBack1] ip address 192.168.1.81 28[R2]interface Ethernet0/0/0
[R2-Ethernet0/0/0] ip address 192.168.1.2 30
[R2]interface Ethernet0/0/1
[R2-Ethernet0/0/1] ip address 192.168.1.5 30
[R2]ip route-static 192.168.1.64 27 NULL0
[R2]ip route-static 192.168.1.32 27 192.168.1.1
[R2]ip route-static 192.168.1.96 27 192.168.1.1
[R2]ip route-static 192.168.1.128 27 192.168.1.6
[R2]ip route-static 0.0.0.0 0.0.0.0 192.168.1.6R3
<Huawei>sys
[Huawei]sys R3
[R3]interface LoopBack0
[R3-LoopBack0] ip address 192.168.1.97 28
[R3-LoopBack0]interface LoopBack1
[R3-LoopBack1] ip address 192.168.1.113 28[R3]interface Ethernet0/0/0
[R3-Ethernet0/0/0] ip address 192.168.1.10 30
[R3]interface Ethernet0/0/1
[R3-Ethernet0/0/1] ip address 192.168.1.13 30
[R3]ip route-static 192.168.1.96 27 NULL0
[R3]ip route-static 192.168.1.32 27 192.168.1.9
[R3]ip route-static 192.168.1.64 27 192.168.1.9
[R3]ip route-static 192.168.1.128 27 192.168.1.14
[R3]ip route-static 0.0.0.0 0.0.0.0 192.168.1.14R4
<Huawei>sys
[Huawei]sys R4
[R4]interface LoopBack0
[R4-LoopBack0] ip address 192.168.1.129 28
[R4-LoopBack0]interface LoopBack1
[R4-LoopBack1] ip address 192.168.1.145 28[R4]interface Ethernet0/0/0
[R4-Ethernet0/0/0] ip address 192.168.1.6 30[R4]interface Ethernet0/0/1
[R4-Ethernet0/0/1] ip address 192.168.1.14 30[R4]interface GigabitEthernet0/0/1
[R4-GigabitEthernet0/0/1] ip address 192.168.1.17 30[R4]interface GigabitEthernet0/0/0
[R4-GigabitEthernet0/0/0] ip address 192.168.1.21 30
[R4]ip route-static 192.168.1.128 27 NULL0[R4]ip route-static 192.168.1.32 255.255.255.224 192.168.1.5
[R4]ip route-static 192.168.1.32 255.255.255.224 192.168.1.13
[R4]ip route-static 192.168.1.64 255.255.255.224 192.168.1.5
[R4]ip route-static 192.168.1.96 255.255.255.224 192.168.1.13
[R4]ip route-static 0.0.0.0 0.0.0.0 192.168.1.18
[R4]ip route-static 0.0.0.0 0.0.0.0 192.168.1.22 preference 70R5
<Huawei>sys
[Huawei]sys R5
[R5]interface LoopBack0
[R5-LoopBack0] ip address 5.5.5.5 24[R5]interface Ethernet0/0/0
[R5-Ethernet0/0/0] ip address 192.168.1.18 30
[R5]interface Ethernet0/0/1
[R5-Ethernet0/0/1] ip address 192.168.1.22 30[R5]ip route-static 192.168.1.0 24 192.168.1.17
[R5]ip route-static 192.168.1.0 24 192.168.1.21 preference 70
- 最后再检查
display ip interface brief # 看接口IP和状态
display ip routing-table # 看路由表
ping -a 192.168.1.33 5.5.5.5 # 从R1环回打R5环回
tracert -a 192.168.1.33 5.5.5.5 # 看是否经R4千兆