第一步创建vlan:
vlan batch 10 100
第二步:配置接口,允许报文通过
interface gigabitethernet0/0/1
port hybrid untagged vlan all //设置混合接口模式,允许没有标签的vlan通过
mac-vlan enable //使能MAC-vlan
第三步:交换机上配置MAC和vlan的关联
vlan 10
mac-vlan mac-address 5489-9834-52d0 priority 0
mac-vlan mac-address 5489-9881-0ce2 priority 0
第四步:查看关联关系
<sw1>dis mac-address
MAC address table of slot 0:
MAC Address VLAN/ PEVLAN CEVLAN Port Type LSP/LSR-ID
VSI/SI MAC-Tunnel
5489-9834-52d0 10 - - GE0/0/1 dynamic 0/-
5489-9881-0ce2 10 - - GE0/0/2 dynamic 0/-
Total matching items on slot 0 displayed = 2
标签:10,华为,vlan,MAC,mac,5489,address From: https://blog.51cto.com/u_13560030/6002881