ENSP环境下的HCIP静态实验

一.实验拓扑如下

 二.在对网络划分之后,开始对设备进行配置

配置如下:

AR1

[Huawei]int lo	
[Huawei]int LoopBack 0
[Huawei-LoopBack0]ip ad
[Huawei-LoopBack0]ip ad	
[Huawei-LoopBack0]ip address 192.168.1.33 28
[Huawei-LoopBack0]q
[Huawei]int lo	
[Huawei]int LoopBack 1
[Huawei-LoopBack1]ip ad	
[Huawei-LoopBack1]ip address 192.168.1.49 28
[Huawei-LoopBack1]q
[Huawei]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]int go/o/o
            ^
Error: Wrong parameter found at '^' position.
[Huawei]int	
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad	
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.1 30
Jan  1 2023 11:21:16-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]q
[Huawei]int	
[Huawei]interface 
[Huawei]interface g0/0/1
[Huawei-GigabitEthernet0/0/1]ip ad	
[Huawei-GigabitEthernet0/0/1]ip address 192.168.1.9 30
Jan  1 2023 11:22:13-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]q
[Huawei]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]ipconfing
        ^
Error: Unrecognized command found at '^' position.
[Huawei]dis	
[Huawei]display ip int	
[Huawei]display ip interface br	
[Huawei]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 5
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.1/30       up         up        
GigabitEthernet0/0/1              192.168.1.9/30       up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.1.33/28      up         up(s)     
LoopBack1                         192.168.1.49/28      up         up(s)     
NULL0                             unassigned           up         up(s)     
[Huawei]
[Huawei]
[Huawei]
[Huawei]
[Huawei]ip ro	
[Huawei]ip route-s	
[Huawei]ip route-static 0.0.0.0 0 192.168.1.2
[Huawei]ip ro	
[Huawei]ip route-s	
[Huawei]ip route-static 0.0.0.0 0192.168.1.10
                                ^
Error: Wrong parameter found at '^' position.
[Huawei]ip route-static 0.0.0.0 0 192.168.1.10
[Huawei]ip r	
[Huawei]ip rd-filter
[Huawei]ip relay
[Huawei]ip route-s	
[Huawei]ip route-static 192.168.1.96 27 192.168.1.10
[Huawei]ip r	
[Huawei]ip rd-filter
[Huawei]ip relay
[Huawei]ip route-s	
[Huawei]ip route-static 192.168.1.4 30 192.168.1.2
[Huawei]ip ro	
[Huawei]ip route-s	
[Huawei]ip route-static 192.168.1.12 30 192.168.1.10
[Huawei]ip ro	
[Huawei]ip route-s	
[Huawei]ip route-static 192.168.1.32 27 NULL0
[Huawei]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]aaa
[Huawei-aaa]loc	
[Huawei-aaa]local-user quhuawei pr	
[Huawei-aaa]local-user quhuawei privilege le	
[Huawei-aaa]local-user quhuawei privilege level 15 pa	
[Huawei-aaa]local-user quhuawei privilege level 15 password ci	
[Huawei-aaa]local-user quhuawei privilege level 15 password cipher 123456
Info: Add a new user.
[Huawei-aaa]q
[Huawei]us	
[Huawei]user-bind
[Huawei]user-group
[Huawei]user-interface vty	
[Huawei]user-interface vty 0	
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]au	
[Huawei-ui-vty0-4]authentication-mode aaa
[Huawei-ui-vty0-4]

AR2


<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]int lo0
[Huawei-LoopBack0]ip ad 	
[Huawei-LoopBack0]ip address 192.168.1.65 28
[Huawei-LoopBack0]q
[Huawei]int lo1
[Huawei-LoopBack1]ip ad	
[Huawei-LoopBack1]ip address 192.168.1.81 28
[Huawei-LoopBack1]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<Huawei>sys	
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]in	
[Huawei]info-center
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad	
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.2 30
Jan  1 2023 11:23:27-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]q
[Huawei]int	
[Huawei]interface g0/0/01
[Huawei-GigabitEthernet0/0/1]ip ad	
[Huawei-GigabitEthernet0/0/1]ip address 192.168.1.5 30
[Huawei-GigabitEthernet0/0/1]
Jan  1 2023 11:23:53-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]q
[Huawei]int lo0
[Huawei-LoopBack0]ip ad	
[Huawei-LoopBack0]ip address 192.168.1.65 28
Error: The address already exists.
[Huawei-LoopBack0]q
[Huawei]int	
[Huawei]interface g0/0/0

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]ip ro	
[Huawei]ip route-s	
[Huawei]ip route-stati	
[Huawei]ip route-static 0.0.0.0 0 192.168.1.6
[Huawei]ip ro	
[Huawei]ip route-s	
[Huawei]ip route-static 192.168.1.32 27 192.168.1.1
[Huawei]ip r	
[Huawei]ip rd-filter
[Huawei]ip relay
[Huawei]ip route-s	
[Huawei]ip route-static 192.168.1.96 27 192.168.1.1
[Huawei]ip ro	
[Huawei]ip route-s	
[Huawei]ip route-static 192.168.1.96 27 192.168.1.6
[Huawei]ip r	
[Huawei]ip rd-filter
[Huawei]ip relay
[Huawei]ip route-s	
[Huawei]ip route-static 192.168.1.12 30 192.168.1.6
[Huawei]ip ro	
[Huawei]ip route-s	
[Huawei]ip route-static 192.168.1.64 27 NULL0
[Huawei]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]dis	
[Huawei]display ip 	
[Huawei]display ip in	
[Huawei]display ip interface br	
[Huawei]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 5
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 1

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.2/30       up         up        
GigabitEthernet0/0/1              192.168.1.5/30       up         up        
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.1.65/28      up         up(s)     
LoopBack1                         192.168.1.81/28      up         up(s)     
NULL0                             unassigned           up         up(s)     
[Huawei]

AR3

Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]int

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]int	
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad	
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.10 30
Jan  1 2023 11:27:23-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]q
[Huawei]int 	
[Huawei]interface g0/0/1
[Huawei-GigabitEthernet0/0/1]ip ad 	
[Huawei-GigabitEthernet0/0/1]ip address 192.168.1.13 30
Jan  1 2023 11:27:43-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]q
[Huawei]int	
[Huawei]interface g0/0/2
[Huawei-GigabitEthernet0/0/2]ip ad	
[Huawei-GigabitEthernet0/0/2]ip address 
                                        ^
Error:Incomplete command found at '^' position.
[Huawei-GigabitEthernet0/0/2]ip address 192.168.1.97 27
[Huawei-GigabitEthernet0/0/2]
Jan  1 2023 11:28:22-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]q
[Huawei]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]ip ro	
[Huawei]ip route-s	
[Huawei]ip route-static 0.0.0.0 0 192.168.1.14
[Huawei]ip ro	
[Huawei]ip route-s	
[Huawei]ip route-static 192.168.1.32 27 192.168.1.9
[Huawei]ip ro	
[Huawei]ip route-s	
[Huawei]ip route-static 192.168.1.64 27 192.168.1.9
[Huawei]ip ro	
[Huawei]ip route-s	
[Huawei]ip route-static 192.168.1.64 27 192.168.1.14
[Huawei]ip ro	
[Huawei]ip route-s	
[Huawei]ip route-static 192.168.1.0 30 192.168.1.9
[Huawei]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]dh	
[Huawei]dhcp e	
[Huawei]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[Huawei]ip pool fishtail
Info: It's successful to create an IP address pool.
[Huawei-ip-pool-fishtail]net	
[Huawei-ip-pool-fishtail]netbios-type
[Huawei-ip-pool-fishtail]network 192.168.1.96 mask 27
[Huawei-ip-pool-fishtail]get	
[Huawei-ip-pool-fishtail]gat	
[Huawei-ip-pool-fishtail]gateway-list 192.168.1.97
[Huawei-ip-pool-fishtail]q
[Huawei]int	
[Huawei]interface g0/0/2
[Huawei-GigabitEthernet0/0/2]dhc	
[Huawei-GigabitEthernet0/0/2]dhcp s	
[Huawei-GigabitEthernet0/0/2]dhcp select gl	
[Huawei-GigabitEthernet0/0/2]dhcp select global 
[Huawei-GigabitEthernet0/0/2]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 0
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 0

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.10/30      up         up        
GigabitEthernet0/0/1              192.168.1.13/30      up         up        
GigabitEthernet0/0/2              192.168.1.97/27      up         up        
NULL0                             unassigned           up         up(s)     
[Huawei]
[Huawei]

AR5


<Huawei>

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]int	
[Huawei]interface g0/0/2
[Huawei-GigabitEthernet0/0/2]ip ad	
[Huawei-GigabitEthernet0/0/2]ip address 192.168.1.22 30
Jan  1 2023 11:41:10-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
 IP on the interface GigabitEthernet0/0/2 has entered the UP state. 
[Huawei-GigabitEthernet0/0/2]q
[Huawei]int	
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad	
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.18 30
[Huawei-GigabitEthernet0/0/0]
Jan  1 2023 11:41:56-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
 IP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[Huawei-GigabitEthernet0/0/0]q
[Huawei]int	
[Huawei]interface g0/0/1
[Huawei-GigabitEthernet0/0/1]ip ad	
[Huawei-GigabitEthernet0/0/1]ip address 12.0.0.1 24
[Huawei-GigabitEthernet0/0/1]
Jan  1 2023 11:42:52-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[2]:The line protocol
 IP on the interface GigabitEthernet0/0/1 has entered the UP state. 
[Huawei-GigabitEthernet0/0/1]q
[Huawei]int lo0
[Huawei-LoopBack0]ip ad	
[Huawei-LoopBack0]ip address 192.168.1.161 28
[Huawei-LoopBack0]
[Huawei-LoopBack0]
[Huawei-LoopBack0]q
[Huawei]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]ip  ro	
[Huawei]ip  route-	
[Huawei]ip  route-static 192.168.1.0 24 192.168.1.17
[Huawei]ip ro	
[Huawei]ip route-s	
[Huawei]ip route-static 192.168.1.0 24 192.168.1.21
[Huawei]ip ro	
[Huawei]ip route-	
[Huawei]ip route-static 0.0.0.0 0 12.0.0.2
[Huawei]acl 2000
[Huawei-acl-basic-2000]rul	
[Huawei-acl-basic-2000]rule pe	
[Huawei-acl-basic-2000]rule permit so	
[Huawei-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[Huawei-acl-basic-2000]q
[Huawei]int	
[Huawei]interface g0/0/1
[Huawei-GigabitEthernet0/0/1]nat out	
[Huawei-GigabitEthernet0/0/1]nat outbound 2000
[Huawei-GigabitEthernet0/0/1]q
[Huawei]int	
[Huawei]interface g0/0/1
[Huawei-GigabitEthernet0/0/1]nat s	
[Huawei-GigabitEthernet0/0/1]nat server pro	
[Huawei-GigabitEthernet0/0/1]nat server protocol tcp gl	
[Huawei-GigabitEthernet0/0/1]nat server protocol tcp global cur	
[Huawei-GigabitEthernet0/0/1]nat server protocol tcp global current-interface 23
 in
    ^
Error:Incomplete command found at '^' position.
[Huawei-GigabitEthernet0/0/1]nat server protocol tcp global current-interface 23
 in si	
[Huawei-GigabitEthernet0/0/1]nat server protocol tcp global current-interface 23
 in side 192.168.1.1 23
    ^
Error: Wrong parameter found at '^' position.
[Huawei-GigabitEthernet0/0/1]nat server protocol tcp global current-interface 23
 inside 192.168.1.1 23
Warning:The port 23 is well-known port. If you continue it may cause function fa
ilure.
Are you sure to continue?[Y/N]:y
[Huawei-GigabitEthernet0/0/1]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]dis	
[Huawei]display ip 	
[Huawei]display ip in	
[Huawei]display ip interface b	
[Huawei]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 5
The number of interface that is DOWN in Physical is 4
The number of interface that is UP in Protocol is 5
The number of interface that is DOWN in Protocol is 4

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              192.168.1.18/30      up         up        
GigabitEthernet0/0/1              12.0.0.1/24          up         up        
GigabitEthernet0/0/2              192.168.1.22/30      up         up        
GigabitEthernet8/0/0              unassigned           down       down      
GigabitEthernet8/0/1              unassigned           down       down      
GigabitEthernet8/0/2              unassigned           down       down      
GigabitEthernet8/0/3              unassigned           down       down      
LoopBack0                         192.168.1.161/28     up         up(s)     
NULL0                             unassigned           up         up(s)     
[Huawei]

AR6

he device is running!

<Huawei>

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys	
[Huawei]sysname 
                ^
Error:Incomplete command found at '^' position.
[Huawei]	
[Huawei]	
[Huawei]int	
[Huawei]interface g0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad	
[Huawei-GigabitEthernet0/0/0]ip address 12.0.0.2 24
Jan  1 2023 11:44:47-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]q
[Huawei]int lo0
[Huawei-LoopBack0]aip ad	
[Huawei-LoopBack0]int lo0
[Huawei-LoopBack0]ip ad	
[Huawei-LoopBack0]ip address 1.1.1.1 24
[Huawei-LoopBack0]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]talnet 12.0.0.1
        ^
Error: Unrecognized command found at '^' position.
[Huawei]
[Huawei]
[Huawei]
[Huawei]talnet 12.0.0.2
        ^
Error: Unrecognized command found at '^' position.
[Huawei]talnet 12.0.0.1
        ^
Error: Unrecognized command found at '^' position.
[Huawei]

  Please check whether system data has been changed, and save data in time

  Configuration console time out, please press any key to log on

<Huawei>sys	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]dis	
[Huawei]display ip	
[Huawei]display ip in	
[Huawei]display ip interface b	
[Huawei]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 2

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              12.0.0.2/24          up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         1.1.1.1/24           up         up(s)     
NULL0                             unassigned           up         up(s)     
[Huawei]

查看路由表

AR1

 AR2

 

AR3

 

AR4

 

AR5

 

AR6

三.查看两台电脑DHCP分配的ip 

PC1

PC2

 

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值