SW1配置
vlan 10
mac-vlan mac-address 5489-98c3-5611 #pc1 mac地址
mac-vlan mac-address 5489-98c3-5622 #pc2 mac地址
interface GigabitEthernet0/0/1
undo port hybrid vlan 1 #禁用交换机默认的vlan 1,避免产生干扰
port hybrid untagged vlan 10
mac-vlan enable
interface GigabitEthernet0/0/2
undo port hybrid vlan 1
port hybrid untagged vlan 10
mac-vlan enable
interface GigabitEthernet0/0/3
undo port hybrid vlan 1
port hybrid untagged vlan 10
mac-vlan enable
PC1 配置
PC2配置
PC3配置
整体连接架构图