華為-命令更新20210824


華為命令更新20210824:

1基礎命令更新

華為命令更新20210824:
dis lldp neighbor brief ----#neighbor 鄰居 brief 簡要描述#

請進入命令行 采集相關信息  
Display diagnostic-information (此命令時間很長)
dis int brief (看端口)
reset  counters interface g0/0/26(重置端口的統計信息)
dis arp all
----------------------------------------------------------
display ?(?是英文)#查看命令#
(未開啟激活LLDP步驟#sys--lldp en--quit--save--y--y#記得保存)
dis tran int g 0/0/14 ver----#看端口信息#可以看到光模塊的信息
dis vlan
dis cpu-usage ----#查看內存使用信息#
display device 簡寫 dis dev-----#查看設備信息#
display current-configuration;簡寫dis cur;#顯示當前配置#
-----------------------------------------------------------
關閉(恢復)某個端口
<S5720>sys
Enter system view, return user view with Ctrl+Z.
[S5720]int g0/0/7
[S5720-GigabitEthernet0/0/7]shutdown
[S5720-GigabitEthernet0/0/7]undo shutdown  (恢復)
quit 退出
----------------------------------------------------------
dis saved-configuration 查看命令
display current-configuration 簡寫dis cur;#顯示當前配置#
-----------------------------------------------------------  

2.將一個端口添加到某個VLAN中

<AC6605>sys
Enter system view, return user view with Ctrl+Z.
[AC6605]interface GigabitEthernet0/0/3
[AC6605-GigabitEthernet0/0/3]port link-type access
[AC6605-GigabitEthernet0/0/3]port default vlan 44
[AC6605-GigabitEthernet0/0/3]quit
[AC6605]quit
<AC6605>save
  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 has been saved successfully
  Note: The configuration file will take effect after being activated

3.將幾個端口一次性添加到一個vlan中(port-group 1)

注意這里的 group 不能有和已知的 group 重復
<AC6605>sys
Enter system view, return user view with Ctrl+Z.
[AC6605]port-group 1
[AC6605-port-group-1]group-member g0/0/3 to g0/0/6
[AC6605-port-group-1]port link-type access
[AC6605-GigabitEthernet0/0/3]port link-type access
[AC6605-GigabitEthernet0/0/4]port link-type access
[AC6605-GigabitEthernet0/0/5]port link-type access
[AC6605-GigabitEthernet0/0/6]port link-type access
[AC6605-port-group-1]port default vlan 44
[AC6605-GigabitEthernet0/0/3]port default vlan 44
[AC6605-GigabitEthernet0/0/4]port default vlan 44
[AC6605-GigabitEthernet0/0/5]port default vlan 44
[AC6605-GigabitEthernet0/0/6]port default vlan 44
[AC6605-port-group-1]quit
[AC6605]quit
<AC6605>save
  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 has been saved successfully
  Note: The configuration file will take effect after being activated

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM