ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

IP复习静态实验

2021-07-09 14:04:39  阅读:573  来源: 互联网

标签:r5 复习 静态 IP route GigabitEthernet0 192.168 a3 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
 

截图

 

标签:r5,复习,静态,IP,route,GigabitEthernet0,192.168,a3,ip
来源: https://blog.csdn.net/m0_56229717/article/details/118605173

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有