0
点赞
收藏
分享

微信扫一扫

华为配置:mac vlan

pipu 2023-01-11 阅读 122

华为配置:mac vlan_2d

第一步创建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

举报

相关推荐

0 条评论