华为命令更新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;#显示当前配置# ----------------------------------------------------------- 将一个端口添加到某个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 ------------------------------------------------------------------ 将几个端口一次性添加到一个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