配置思路
-给pc机配置IP地址
-配置交换机
*关闭日志
*给设备取名字
*创建valn
-设置Mux-Vlan
*进入主vlan
[SW1]vlan 100
*设置主vlan
[SW1-vlan100]mux-vlan
*设置组vlan
[SW1-vlan100]subordinate group 200
*设置隔离valn
[SW1-vlan100]subordinate separate 300
*查看Mux-Vlan
[SW1-vlan100]display mux-vlan
-PC和交换机的端口模式的配置并且开启Mux-vlan
*[SW1]port-group group-member Ethernet 0/0/3 Ethernet 0/0/2
[SW1-port-group]port link-type access
[SW1-port-group]port default vlan 200
[SW1-port-group]port mux-vlan enable
[SW1-port-group]quit
[SW1]display mux-vlan
[SW1]port-group group-member Ethernet 0/0/4 Ethernet 0/0/5
[SW1-port-group]port link-type access
[SW1-port-group]port default vlan 300
[SW1-port-group]port mux-vlan enable
[SW1-port-group]quit
[SW1]display mux-vlan
[SW1]interface Ethernet0/0/1
[SW1-Ethernet0/0/1]port link-type access
[SW1-Ethernet0/0/1]port default vlan 100
[SW1-Ethernet0/0/1]port mux-vlan enable
[SW1-Ethernet0/0/1]quit
[SW1]display mux-vlan
脚本
undo terminal monitor
system-view
sysname SW1
vlan batch 100 200 300
vlan 100
mux-vlan
subordinate group 200
subordinate separate 300
display mux-vlan
quit
port-group group-member Ethernet 0/0/3 Ethernet 0/0/2
port link-type access
port default vlan 200
port mux-vlan enable
quit
port-group group-member Ethernet 0/0/4 Ethernet 0/0/5
port link-type access
port default vlan 300
port mux-vlan enable
quit
interface Ethernet0/0/1
port link-type access
port default vlan 100
port mux-vlan enable
quit
display mux-vlan