1. 程式人生 > >路由交換之MUX VLAN(華為)

路由交換之MUX VLAN(華為)

mac default roc trunk 交換機 acc separate 所有 total

MUX VLAN
原理:
同一個子網內的設備(IP層面),但是不在同一個vlan(2、3、10),可以通過調整vlan的角色使其通信或者不通信,節省IP
兩大類VLAN:主vlan(主接口)、子vlan(組vlan和隔離性VLAN)
1)主接口可以和所有接口通信
2)同一互組vlan內的設備可以互通
3)不同的組vVLAN是不能通信的
4)隔離性vlan內的主機只能和主接口通信

MUX VLAN的配置實例:
技術分享圖片
1)創建對應的VLAN

[SW1]vlan batch 10 20 30 100 //先創建對應的VLAN
[SW2]vlan batch 10 20 30 100

2)定義VLAN角色(SW1和SW2)

vlan 100 //子VLAN需要在主VLAN下定義
mux-vlan //該VLAN 100成為主VLAN
subordinate separate 30 //VLAN30 成為隔離VLAN
subordinate group 10 20 //VLAN 10和20成為不同的組VLAN

3)交換機互聯接口實施Trunk:

interface GigabitEthernet0/0/10
port link-type trunk
port trunk allow-pass vlan 2 to 4094

4)關聯MUX-VLAN:
SW1:

interface GigabitEthernet0/0/1
port link-type access
port default vlan 10 //該端口劃分到VLAN10,就擁有了VLAN10所被定義的角色
port mux-vlan enable //必須使能

interface GigabitEthernet0/0/2
port link-type access
port default vlan 10
port mux-vlan enable

interface GigabitEthernet0/0/3
port link-type access
port default vlan 20
port mux-vlan enable

interface GigabitEthernet0/0/4
port link-type access
port default vlan 30
port mux-vlan enable

interface GigabitEthernet0/0/5
port link-type access
port default vlan 30
port mux-vlan enable

SW2:

interface GigabitEthernet0/0/1
port link-type access
port default vlan 100
port mux-vlan enable

5)驗證:

[SW1]display mux-vlan
Principal Subordinate Type Interface
~~-----------------------------------------------------------------------------~~
100 - principal
100 30 separate GigabitEthernet0/0/4 GigabitEthernet0/0/5
100 10 group GigabitEthernet0/0/1 GigabitEthernet0/0/2
100 20 group GigabitEthernet0/0/3

[SW2]display mux-vlan
Principal Subordinate Type Interface

100 - principal GigabitEthernet0/0/1
100 30 separate
100 10 group
100 20 group

[SW1]display mac-address mux
MAC address table of slot 0:

MAC Address VLAN/ PEVLAN CEVLAN Port Type LSP/LSR-ID
VSI/SI MAC-Tunnel

5489-98e6-4e87 10 - - GE0/0/1 dynamic 0/-
5489-98e6-4e87 100 - - GE0/0/1 dynamic 0/-
5489-98a6-2530 10 - - GE0/0/2 dynamic 0/-
5489-98a6-2530 100 - - GE0/0/2 dynamic 0/-
5489-98a5-24b6 30 - - GE0/0/4 dynamic 0/-
5489-98a5-24b6 100 - - GE0/0/4 dynamic 0/-
5489-987c-6fa6 100 - - GE0/0/10 dynamic 0/-
Total matching items on slot 0 displayed = 7

路由交換之MUX VLAN(華為)