华为hcia网络题

1.首先划分IP

需要17个子网


2.配置IP 

 

配置AR2

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.1 30
Oct 15 2022 19:56:05-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
 IP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[Huawei-GigabitEthernet0/0/0]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip ad	
[Huawei-GigabitEthernet0/0/1]ip address 192.168.1.5 30
Oct 15 2022 19:56:23-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
 IP on the interface GigabitEthernet0/0/1 has entered the UP state. 
[Huawei-GigabitEthernet0/0/1]int l 0
[Huawei-LoopBack0]ip ad	
[Huawei-LoopBack0]ip address 192.168.1.33 28
[Huawei-LoopBack0]int l 1
[Huawei-LoopBack1]ip ad	
[Huawei-LoopBack1]ip address 192.168.1.49 28

配置AR1

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.2 30
Oct 15 2022 19:59:35-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
 IP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[Huawei-GigabitEthernet0/0/0]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.1.9 30
Oct 15 2022 19:59:48-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
 IP on the interface GigabitEthernet0/0/1 has entered the UP state. 
[Huawei-GigabitEthernet0/0/1]int l 0
[Huawei-LoopBack0]ip address 192.168.1.65 28
[Huawei-LoopBack0]int l 1
[Huawei-LoopBack1]ip address 192.168.1.81 28

配置AR4

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.6 30
Oct 15 2022 20:02:12-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
 IP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[Huawei-GigabitEthernet0/0/0]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.1.13 30
Oct 15 2022 20:02:55-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
 IP on the interface GigabitEthernet0/0/1 has entered the UP state. 
[Huawei-GigabitEthernet0/0/1]int l 0
[Huawei-LoopBack0]ip address 192.168.1.97 28
[Huawei-LoopBack0]int l 1
[Huawei-LoopBack1]ip address 192.168.1.113 28

配置AR3

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]int	
[Huawei]interface g	
[Huawei]interface GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad	
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.10 30
Oct 15 2022 20:10:33-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[4]:The line protocol
 IP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[Huawei-GigabitEthernet0/0/0]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip ad	
[Huawei-GigabitEthernet0/0/1]ip address 192.168.1.14 30
Oct 15 2022 20:10:46-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[5]:The line protocol
 IP on the interface GigabitEthernet0/0/1 has entered the UP state. 
[Huawei-GigabitEthernet0/0/1]int g 0/0/2
[Huawei-GigabitEthernet0/0/2]ip ad	
[Huawei-GigabitEthernet0/0/2]ip address 192.168.1.17 30
[Huawei-GigabitEthernet0/0/2]
Oct 15 2022 20:11:01-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[6]:The line protocol
 IP on the interface GigabitEthernet0/0/2 has entered the UP state. 
[Huawei-GigabitEthernet0/0/2]int g 4/0/0
[Huawei-GigabitEthernet4/0/0]ip ad	
[Huawei-GigabitEthernet4/0/0]ip address 192.168.1.21 30
[Huawei-GigabitEthernet4/0/0]
Oct 15 2022 20:11:23-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[7]:The line protocol
 IP on the interface GigabitEthernet4/0/0 has entered the UP state. 
[Huawei-GigabitEthernet4/0/0]int l 0
[Huawei-LoopBack0]ip ad	
[Huawei-LoopBack0]ip address 192.168.1.129 28
[Huawei-LoopBack0]int l 1
[Huawei-LoopBack1]ip add 192.168.1.145 28

AR5:

<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]intg	
[Huawei]int g	
[Huawei]int GigabitEthernet 0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad	
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.18 30
Oct 15 2022 20:13:32-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
 IP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[Huawei-GigabitEthernet0/0/0]int g 0/0/1
[Huawei-GigabitEthernet0/0/1]ip ad	
[Huawei-GigabitEthernet0/0/1]ip address 192.168.1.22 30
Oct 15 2022 20:13:56-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
 IP on the interface GigabitEthernet0/0/1 has entered the UP state. 
[Huawei-GigabitEthernet0/0/1]int g 0/0/2
[Huawei-GigabitEthernet0/0/2]ip ad	
[Huawei-GigabitEthernet0/0/2]ip address 192.168.1.25 29
[Huawei-GigabitEthernet0/0/2]
Oct 15 2022 20:14:17-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[2]:The line protocol
 IP on the interface GigabitEthernet0/0/2 has entered the UP state. 
[Huawei-GigabitEthernet0/0/2]int l 0
[Huawei-LoopBack0]1ip ad	
[Huawei-LoopBack0]ip ad	
[Huawei-LoopBack0]ip address 192.168.1.161 28
[Huawei-LoopBack0]int l 0 
[Huawei-LoopBack0]int l 1
[Huawei-LoopBack1]ip ad	
[Huawei-LoopBack1]ip address 192.168.1.177 28

设置AR5为DHCP:

[Huawei]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[Huawei]ip pool huawei
Info: It's successful to create an IP address pool.
[Huawei-ip-pool-huawei]network 192.168.1.24 mas	
[Huawei-ip-pool-huawei]network 192.168.1.24 mask 29
[Huawei-ip-pool-huawei]gat	
[Huawei-ip-pool-huawei]gateway-list 192.168.1.25
[Huawei-ip-pool-huawei]dns-	
[Huawei-ip-pool-huawei]dns-list 8.8.8.8
[Huawei-ip-pool-huawei]q
[Huawei]int	
[Huawei]interface g	
[Huawei]interface GigabitEthernet 0/0/2
[Huawei-GigabitEthernet0/0/2]dhc	
[Huawei-GigabitEthernet0/0/2]dhcp se	
[Huawei-GigabitEthernet0/0/2]dhcp select 	
[Huawei-GigabitEthernet0/0/2]dhcp sele	
[Huawei-GigabitEthernet0/0/2]dhcp select g	
[Huawei-GigabitEthernet0/0/2]dhcp select global 

4.负载均衡

设置AR2上一条缺省路由

[Huawei]ip route-static 0.0.0.0 0 192.168.1.2

[Huawei]ip route-static 192.168.1.96 27 192.168.1.6

在AR1上设置下一跳

[Huawei]ip route-static 0.0.0.0 30 192.168.1.10

[Huawei]ip route-static 192.168.1.4 30 192.168.1.1

[Huawei]ip route-static 192.168.1.32 27 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

AR4:

[Huawei]ip route-static 0.0.0.0 0 192.168.1.14
[Huawei]ip route-static 192.168.1.0 30 192.168.1.5
[Huawei]ip route-static 192.168.1.32 27 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

AR3:

ip route-static 0.0.0.0 0.0.0.0 192.168.1.18
ip route-static 0.0.0.0 0.0.0.0 192.168.1.22 preference 70
ip route-static 192.168.1.0 255.255.255.252 192.168.1.9
ip route-static 192.168.1.4 255.255.255.252 192.168.1.13
ip route-static 192.168.1.32 255.255.255.224 192.168.1.13
ip route-static 192.168.1.32 255.255.255.224 192.168.1.9
ip route-static 192.168.1.64 255.255.255.224 192.168.1.9
ip route-static 192.168.1.96 255.255.255.224 198.168.1.13

AR5:

[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 70

测试:

PC>ping 192.168.1.9

Ping 192.168.1.9: 32 data bytes, Press Ctrl_C to break
Request timeout!
From 192.168.1.9: bytes=32 seq=2 ttl=252 time=63 ms
From 192.168.1.9: bytes=32 seq=3 ttl=252 time=62 ms
From 192.168.1.9: bytes=32 seq=4 ttl=252 time=63 ms
From 192.168.1.9: bytes=32 seq=5 ttl=252 time=62 ms

--- 192.168.1.9 ping statistics ---
  5 packet(s) transmitted
  4 packet(s) received
  20.00% packet loss
  round-trip min/avg/max = 0/62/63 ms

PC>ping 192.168.1.57

Ping 192.168.1.57: 32 data bytes, Press Ctrl_C to break
From 192.168.1.57: bytes=32 seq=1 ttl=253 time=63 ms
From 192.168.1.57: bytes=32 seq=2 ttl=253 time=47 ms
From 192.168.1.57: bytes=32 seq=3 ttl=253 time=47 ms
From 192.168.1.57: bytes=32 seq=4 ttl=253 time=46 ms
From 192.168.1.57: bytes=32 seq=5 ttl=253 time=47 ms

--- 192.168.1.57 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 46/50/63 ms

PC>ping 192.168.1.33

Ping 192.168.1.33: 32 data bytes, Press Ctrl_C to break
From 192.168.1.33: bytes=32 seq=1 ttl=253 time=62 ms
From 192.168.1.33: bytes=32 seq=2 ttl=253 time=47 ms
From 192.168.1.33: bytes=32 seq=3 ttl=253 time=31 ms
From 192.168.1.33: bytes=32 seq=4 ttl=253 time=47 ms
From 192.168.1.33: bytes=32 seq=5 ttl=253 time=32 ms

--- 192.168.1.33 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 31/43/62 ms

PC>
PC>ping 192.168.1.81

Ping 192.168.1.81: 32 data bytes, Press Ctrl_C to break
From 192.168.1.81: bytes=32 seq=1 ttl=254 time=47 ms
From 192.168.1.81: bytes=32 seq=2 ttl=254 time=46 ms
From 192.168.1.81: bytes=32 seq=3 ttl=254 time=16 ms
From 192.168.1.81: bytes=32 seq=4 ttl=254 time=47 ms
From 192.168.1.81: bytes=32 seq=5 ttl=254 time=47 ms

--- 192.168.1.81 ping statistics ---
  5 packet(s) transmitted
  5 packet(s) received
  0.00% packet loss
  round-trip min/avg/max = 16/40/47 ms
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

weixin_58701060

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值