本文记录一下华为交换机MUX-VLAN配置
<Huawei>sys
[Huawei]vlan batch 100 20 30 10
提示:此操作可能耗时较长。请稍等…完成。
[Huawei]port-group group-member e0/0/2 to e0/0/4
[Huawei-port-group]port link-type access
[Huawei-Ethernet0/0/2]port link-type access
[Huawei-Ethernet0/0/3]port link-type access
[Huawei-Ethernet0/0/4]port link-type access
[Huawei-port-group]port default vlan 100
[Huawei-Ethernet0/0/2]port default vlan 100
[Huawei-Ethernet0/0/3]port default vlan 100
[Huawei-Ethernet0/0/4]port default vlan 100
[Huawei]port-group group-member e 0/0/5 to e0/0/6
[Huawei-port-group]port link-type access
[Huawei-Ethernet0/0/5]port link-type access
[Huawei-Ethernet0/0/6]port link-type access
[Huawei-port-group]port default vlan 10
[Huawei-Ethernet0/0/5]port default vlan 10
[Huawei-Ethernet0/0/6]port default vlan 10
[Huawei-port-group]q
[Huawei]int e0/0/20
[Huawei-Ethernet0/0/20]port link-type access
[Huawei-Ethernet0/0/20]port default vlan 20
[Huawei-Ethernet0/0/20]int e0/0/1
[Huawei-Ethernet0/0/1]port link-type access
[Huawei-Ethernet0/0/1]port default vlan 30
[Huawei-Ethernet0/0/1]q
[Huawei]vlan 30
[Huawei-vlan30]mux-vlan
[Huawei-vlan30]subordinate group 10 20
[Huawei-vlan30]subordinate separate 100
[Huawei]port-group group-member e0/0/1 to e0/0/22
[Huawei-port-group]port mux-vlan enable
[Huawei-Ethernet0/0/1]port mux-vlan enable
[Huawei-Ethernet0/0/2]port mux-vlan enable
[Huawei-Ethernet0/0/3]port mux-vlan enable
[Huawei-Ethernet0/0/4]port mux-vlan enable
[Huawei-Ethernet0/0/5]port mux-vlan enable
[Huawei-Ethernet0/0/6]port mux-vlan enable
[Huawei-port-group]q
<Huawei>save
将把当前的配置保存到存储设备中。
是否继续?[Y/N]Y
正在将运行时的配置写入到存储设备0。
保存配置成功。
实验链接:http://pan.baidu.com/s/1jGFBAKI 密码:c9pe