华为交换机配置命令有哪些

如题所述

进入以太网口配置模式及相关配置:

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。

温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答