ensp学习-2 ensp设置接口ip

种地  金牌会员 | 2022-8-10 16:05:16 | 显示全部楼层 | 阅读模式
打印 上一主题 下一主题

主题 922|帖子 922|积分 2766

1、设备型号

2、右键CLI进入命令行
  1. The device is running!
  2. <Huawei>The device has not been started!
  3. The device has not been started!
  4. ################################################################################
  5. ##
复制代码
3、直接输portswitch报错
  1. <Huawei>undo portswitch
  2.              ^
  3. Error: Unrecognized command found at '^' position.
  4. <Huawei>ls
  5.         ^
  6. Error: Unrecognized command found at '^' position.
  7. <Huawei>dev
  8.         ^
  9. Error: Unrecognized command found at '^' position.
  10. <Huawei>sys
  11. Enter system view, return user view with Ctrl+Z.
  12. [Huawei]undo portswitch
  13.              ^
  14. Error: Unrecognized command found at '^' position.
  15. [Huawei]undo portswitch
  16.              ^
  17. Error: Unrecognized command found at '^' position.
  18. [Huawei]interface thernet 0/0/0
  19.                   ^
  20. Error: Wrong parameter found at '^' position.
复制代码
4、需要先执行如下指令
  1. [Huawei]interface ethernet 0/0/0
复制代码
5、设置接口IP
  1. [Huawei-Ethernet0/0/0]undo portswitch
  2. [Huawei-Ethernet0/0/0]ip address 192.168.10.2 24
复制代码
6、查看接口
  1. [Huawei-Ethernet0/0/0]display interface brief
  2. PHY: Physical
  3. *down: administratively down
  4. (l): loopback
  5. (s): spoofing
  6. (b): BFD down
  7. ^down: standby
  8. (e): ETHOAM down
  9. (d): Dampening Suppressed
  10. InUti/OutUti: input utility/output utility
  11. Interface                   PHY   Protocol InUti OutUti   inErrors  outErrors
  12. Ethernet0/0/0               down  down        0%     0%          0          0
  13. Ethernet0/0/1               down  down        0%     0%          0          0
  14. Ethernet0/0/2               down  down        0%     0%          0          0
  15. Ethernet0/0/3               down  down        0%     0%          0          0
  16. Ethernet0/0/4               down  down        0%     0%          0          0
  17. Ethernet0/0/5               down  down        0%     0%          0          0
  18. Ethernet0/0/6               down  down        0%     0%          0          0
  19. Ethernet0/0/7               down  down        0%     0%          0          0
  20. Ethernet0/0/8               down  down        0%     0%          0          0
  21. NULL0                       up    up(s)       0%     0%          0          0
复制代码
7、查看接口IP
  1. [Huawei-Ethernet0/0/0]display ip int brief
  2. *down: administratively down
  3. ^down: standby
  4. (l): loopback
  5. (s): spoofing
  6. The number of interface that is UP in Physical is 1
  7. The number of interface that is DOWN in Physical is 2
  8. The number of interface that is UP in Protocol is 1
  9. The number of interface that is DOWN in Protocol is 2
  10. Interface                         IP Address/Mask      Physical   Protocol  
  11. Ethernet0/0/0                     192.168.10.2/24      down       down      
  12. Ethernet0/0/8                     unassigned           down       down      
  13. NULL0                             unassigned           up         up(s)     
  14. [Huawei-Ethernet0/0/0]
  15.   Please check whether system data has been changed, and save data in time
  16.   Configuration console time out, please press any key to log on
复制代码
可以看到已经设置成功

免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

您需要登录后才可以回帖 登录 or 立即注册

本版积分规则

种地

金牌会员
这个人很懒什么都没写!

标签云

快速回复 返回顶部 返回列表