实验报告(静态路由综合实验)
1.拓扑图
2.需求分析
首先要对192.168.1.0/24进行划分,分为主干链路,DHCP, AR1~AR5的环回,然后再根据需求进行划分,之后再进行IP地址的设置。接着,运用DHCP(全局)为pc分配地址,接着,进行静态路由的配置,最后设置空接口,防止环路产生。最后测试
3.步骤
AR1
[Huawei]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.1 30
[Huawei]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.1.5 30
[Huawei]int l 0
[Huawei-LoopBack0]ip address 192.168.1.33 28
[Huawei]int l 1
[Huawei-LoopBack1]ip address 192.168.1.49 28
[Huawei-LoopBack1]q
[Huawei]ip route-static 192.168.1.64 27
[Huawei]ip route-static 192.168.1.96 27 192.168.1.6
[Huawei]ip route-static 192.168.1.8 30 192.168.1.2
[Huawei]ip route-static 192.168.1.12 30 192.168.1.6
[Huawei]ip route-static 0.0.0.0 0 192.168.1.2
[Huawei]ip route-static 0.0.0.0 0 192.168.1.6
[Huawei]undo ip route-static 192.0.0.0 192.0.0.0 192.168.1.2
[Huawei]ip route-static 192.168.1.32 27 NULL 0
AR2
[Huawei]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.2 30
[Huawei]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.1.9 30
[Huawei]int l 0
[Huawei-LoopBack0]ip address 192.168.1.65 28
[Huawei]int l 1
[Huawei-LoopBack1]ip address 192.168.1.81 28
[Huawei-LoopBack1]q
[Huawei]ip route-static 192.168.1.32 27 192.168.1.1
[Huawei]ip route-static 192.168.1.4 30 192.168.1.1
[Huawei]ip route-static 192.168.1.96 27 192.168.1.1
[Huawei]ip route-static 192.168.1.96 27 192.168.1.10
[Huawei]ip route-static 0.0.0.0 0 192.168.1.1
[Huawei]ip route-static 192.168.1.64 27 NULL 0
AR3
[Huawei]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.6 30
[Huawei]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.1.13 30
[Huawei-GigabitEthernet0/0/1]int l 0
[Huawei-LoopBack0]ip address 192.168.1.97 28
[Huawei]int l 1
[Huawei-LoopBack1]ip address 192.168.1.113 28
[Huawei]ip route-static 192.168.1.32 27 192.168.1.5
[Huawei]ip route-static 192.168.1.0 30 192.168.1.5
[Huawei]ip route-static 192.168.1.64 27 192.168.1.5
[Huawei]ip route-static 192.168.1.64 27 192.168.1.14
[Huawei]ip route-static 0.0.0.0 0 192.168.1.14
[Huawei]ip route-static 192.168.1.96 27 NULL 0
AR4
[Huawei]int g 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.10 30
[Huawei]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.1.14 30
[Huawei]int g 0/0/2
[Huawei-GigabitEthernet0/0/2]ip address 192.168.1.17 30
[Huawei]int g 4/0/0
[Huawei-GigabitEthernet4/0/0]ip address 192.168.1.21 30
[Huawei]int l 0
[Huawei-LoopBack0]ip address 192.168.1.129 28
[Huawei]int l 1
[Huawei-LoopBack1]ip address 192.168.1.145 28
[Huawei]ip route-static 192.168.1.32 27 192.168.1.9
[Huawei]ip route-static 192.168.1.32 27 192.168.1.13
[Huawei]ip route-static 192.168.1.0 30 192.168.1.9
[Huawei]ip route-static 192.168.1.4 30 192.168.1.13
[Huawei]ip route-static 192.168.1.64 27 192.168.1.9
[Huawei]ip route-static 192.168.1.96 27 192.168.1.13
[Huawei]ip route-static 0.0.0.0 0 192.168.1.18
[Huawei]ip route-static 0.0.0.0 0 192.168.1.22 preference 61
[Huawei]ip route-static 192.168.1.128 27 NULL 0
AR5
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 192.168.1.18/30 up up
GigabitEthernet0/0/1 192.168.1.22/30 up up
GigabitEthernet0/0/2 192.168.1.193/27 up up
LoopBack0 192.168.1.161/28 up up(s)
LoopBack1 192.168.1.177/28 up up(s)
NULL0 unassigned up up(s)
[Huawei]ip route-static 192.168.1.0 24 192.168.1.17
[Huawei]ip route-static 192.168.1.0 24 192.168.1.21 preference 61
[Huawei]dhcp enable
Info: The operation may take a few seconds. Please wait for a moment.done.
[Huawei]ip pool dizhichi
Info: It's successful to create an IP address pool.
[Huawei-ip-pool-dizhichi]network 192.168.1.192 mask 27
[Huawei-ip-pool-dizhichi]gateway-list 192.168.1.193
[Huawei-ip-pool-dizhichi]dns-list 114.114.114.114
[Huawei-ip-pool-dizhichi]q
[Huawei]int g 0/0/2
[Huawei-GigabitEthernet0/0/2]dhcp select global
[Huawei-GigabitEthernet0/0/2]q
[Huawei]ip route-static 192.168.1.24 29 NULL 0
[Huawei]ip route-static 192.168.1.224 27 NULL 0
[Huawei]ip route-static 192.168.1.160 27 NULL 0
4.测试