IP复习静态实验

题目要

IP复习静态实验

部分代码

Please press enter to start cmd line!
##
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname r5
[r5]interf    
[r5]interface l    
[r5]interface LoopBack 0
[r5-LoopBack0]ip add 192.168.1.161 27
[r5-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

<r5>
<r5>sys
Enter system view, return user view with Ctrl+Z.
[r5]interf    
[r5]interface g    
[r5]interface GigabitEthernet 0/0/1
[r5-GigabitEthernet0/0/1]ip add 192.168.1.18 30
Jul  8 2021 20:40:38-08:00 r5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r5-GigabitEthernet0/0/1]q
[r5]interf    
[r5]interface g    
[r5]interface GigabitEthernet 0/0/2
[r5-GigabitEthernet0/0/2]ip add 192.168.1.22 30
Jul  8 2021 20:40:55-08:00 r5 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[r5-GigabitEthernet0/0/2]q
[r5]interf    
[r5]interface g    
[r5]interface GigabitEthernet 0/0/0
[r5-GigabitEthernet0/0/0]ip add 56.1.1.1 24
[r5-GigabitEthernet0/0/0]
Jul  8 2021 20:41:50-08:00 r5 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r5-GigabitEthernet0/0/0]q
[r5]sa
    ^
Error: Unrecognized command found at '^' position.
[r5]q
<r5>sa
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
<r5>

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

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

<r5>
<r5>sys
Enter system view, return user view with Ctrl+Z.
[r5]ip rou    
[r5]ip route-s    
[r5]ip route-static 0.0.0.0 0 56.1.1.2
[r5]

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

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

<r5>
<r5>sys
Enter system view, return user view with Ctrl+Z.
[r5]ip rou    
[r5]ip route-s    
[r5]ip route-static 192.168.1.0 30 192.168.1.17
[r5]ip route-static 192.168.4.0 30 192.168.1.17
[r5]ip route-static 192.168.8.0 30 192.168.1.17
[r5]ip route-static 192.168.12.0 30 192.168.1.17
[r5]ip route-static 192.168.12.0 30 192.168.1.17
Error: The route already exists.
[r5]ip rou    
[r5]ip route-s    
[r5]ip route-static 192.168.1.32 27 192.168.1.17
[r5]ip route-static 192.168.1.64 27 192.168.1.17
[r5]ip route-static 192.168.1.96 27 192.168.1.17
[r5]ip route-static 192.168.1.128 27 192.168.1.17
[r5]ip rou    
[r5]ip route-s    
[r5]ip route-static 192.168.1.0 192.168.1.21
                                             ^
Error:Incomplete command found at '^' position.
[r5]ip route-static 192.168.1.0 192.168.1.22
                                             ^
Error:Incomplete command found at '^' position.
[r5]ip route-static 192.168.1.0  30 192.168.1.21
[r5]ip route-static 192.168.4.0 30 192.168.1.21
[r5]ip route-static 192.168.8.0 30 192.168.1.21
[r5]ip route-static 192.168.12.0 30 192.168.1.21
[r5]ip route-static 192.168.12.0 30 192.168.1.21
Error: The route already exists.
[r5]ip rou    
[r5]ip route-s    
[r5]ip route-static 192.168.1.64 27 192.168.1.21
[r5]ip route-static 192.168.1.32 27 192.168.1.21
[r5]ip route-static 192.168.1.96 27 192.168.1.21
[r5]ip route-static 192.168.1.128 27 192.168.1.21
[r5]

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

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

<r5>sys
Enter system view, return user view with Ctrl+Z.
[r5]interf    
[r5]interface g    
[r5]interface GigabitEthernet 0/0/2
[r5-GigabitEthernet0/0/2]dsiap    
[r5-GigabitEthernet0/0/2]disp    
[r5-GigabitEthernet0/0/2]display thi    
[r5-GigabitEthernet0/0/2]display this 
[V200R003C00]
#
interface GigabitEthernet0/0/2
 ip address 192.168.1.22 255.255.255.252 
#
return
[r5-GigabitEthernet0/0/2]q
[r5]acl 2000
[r5-acl-basic-2000]ru    
[r5-acl-basic-2000]rule per    
[r5-acl-basic-2000]rule permit so    
[r5-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[r5-acl-basic-2000]q
[r5]interf    
[r5]interface g    
[r5]interface GigabitEthernet 0/0/0
[r5-GigabitEthernet0/0/0]nat ou    
[r5-GigabitEthernet0/0/0]nat outbound 2000
[r5-GigabitEthernet0/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

<r5>

 

The device is running!

<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname a3
[a3]interf    
[a3]interface g    
[a3]interface GigabitEthernet 0/0/2
[a3-GigabitEthernet0/0/2]ip add 192.168.97 27
                                ^
Error: Wrong parameter found at '^' position.
[a3-GigabitEthernet0/0/2]ip add 192.168.1.97 27
Jul  8 2021 20:30:07-08:00 a3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/2 has entered the UP state. 
[a3-GigabitEthernet0/0/2]q
[a3]dhcp en    
[a3]dhcp enable 
Info: The operation may take a few seconds. Please wait for a moment.done.
[a3]ip p    
[a3]ip pool    
[a3]ip pool a
Info: It's successful to create an IP address pool.
[a3-ip-pool-a]netw    
[a3-ip-pool-a]network 192.168.1.97 mas    
[a3-ip-pool-a]network 192.168.1.96 mask 27
[a3-ip-pool-a]gat    
[a3-ip-pool-a]gateway-list 192.168.1.97
[a3-ip-pool-a]dns    
[a3-ip-pool-a]dns-list 114.114.114.114 
[a3-ip-pool-a]q
[a3]interf    
[a3]interface g    
[a3]interface GigabitEthernet 0/0/2
[a3-GigabitEthernet0/0/2]dhcp se    
[a3-GigabitEthernet0/0/2]dhcp select g    
[a3-GigabitEthernet0/0/2]dhcp select global 
[a3-GigabitEthernet0/0/2]q
[a3]interf    
[a3]interface g    
[a3]interface GigabitEthernet 0/0/1
[a3-GigabitEthernet0/0/1]ip add 192.168.1.6 30
Jul  8 2021 20:38:02-08:00 a3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[a3-GigabitEthernet0/0/1]q
[a3]interf    
[a3]interface g    
[a3]interface GigabitEthernet 0/0/0
[a3-GigabitEthernet0/0/0]ip add 192.168.1.13 30
[a3-GigabitEthernet0/0/0]
Jul  8 2021 20:38:24-08:00 a3 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[a3-GigabitEthernet0/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

<a3>
<a3>sa
  The current configuration will be written to the device. 
  Are you sure to continue? (y/n)[n]:y
  It will take several minutes to save configuration file, please wait.......
  Configuration file had been saved successfully
  Note: The configuration file will take effect after being activated
<a3>

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

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

<a3>sys
Enter system view, return user view with Ctrl+Z.
[a3]ip rou    
[a3]ip route-s    
[a3]ip route-static 0.0.0.0 0 192.168.1.14
[a3]

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

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

<a3>
<a3>syss
    ^
Error: Unrecognized command found at '^' position.
<a3>sys
Enter system view, return user view with Ctrl+Z.
[a3]ip rou    
[a3]ip route-s    
[a3]ip route-static 192.168.1.32 27 192.168.1.6
Error: The next-hop address is invalid.
[a3]ip route-static 192.168.1.32 27 192.168.1.5
[a3]ip rou    
[a3]ip route-s    
[a3]ip route-static 192.168.1.64 27 192.168.1.5
[a3]ip rou    
[a3]ip route-s    
[a3]ip route-static 192.168.1.64 27 192.168.1.13
Error: The next-hop address is invalid.
[a3]ip route-static 192.168.1.64 27 192.168.1.14
[a3]ip rou    
[a3]ip route-s    
[a3]ip route-static 192.168.1.0 30 192.168.1.5
[a3]ip rou    
[a3]ip route-s    
[a3]ip route-static 192.168.1.8 30 192.168.1.14
[a3]

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

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

截图

IP复习静态实验

 

上一篇:HCIA 复习实验


下一篇:DHCP和DHCP中继