HUAWEI 华为 交换机命令列表

1.查询mac所属端口

dis mac-address xxx
eg:dis mac-address 008c-fa00-617c

2.打开或关闭端口

<HUAWEI>sys
Enter system view, return user view with Ctrl+Z.
[HUAWEI]interface GigabitEthernet 0/0/2
[HUAWEI-GigabitEthernet0/0/2]undo shut	
[HUAWEI-GigabitEthernet0/0/2]undo shutdown 
[HUAWEI-GigabitEthernet0/0/2]shutdown                       	
[HUAWEI-GigabitEthernet0/0/2]quit 
[HUAWEI]quit 
<HUAWEI>

 

THE END