古詩詞大全網 - 成語大全 - 華為交換機配置命令有哪些

華為交換機配置命令有哪些

進入以太網口配置模式及相關配置:

1、[switchone]interface ethernet 0/1;

2、[switchone-Ethernet0/1]shutdown/undo shutdown 關閉/打開接口;

3、[switchone-Ethernet0/1]port link-type access/trunk 接口類型設為untagged端口(默認)/tagged端口(用於上行口和級聯口);

4、access端口發出和接收的幀不帶vlan標記,即untagged端口;

5、trunk端口發出和接收的幀壹般要帶vlan標記,即tagged端口。

設為tagged口後,還要做以下操作:

1、[switchone-Ethernet0/1]port trunk permit vlan 225 to 250。這條命令是允許有vlan標記225到250的幀上傳;

2、[switchone]vlan 225;

3、[switchone-vlan225] port Ethernet 1/1,將ethernet 1/1加入vlan225;

4、c設置super口令:[switchone]super password simple 2403h?,特權口令為2403h。