Q-in-Q(Dot1Q Tunnel) Sample Configuration

透過IEEE 802.1q in IEEE 802.1q(Q-in-Q)的方式,我們可以讓VLAN的數量增加超過4096(4096*4096),也可以讓客戶自行設定Trunk穿過Service Provider所提供的Ethernet Solution(如:FTTx)。

假設現在的網路架構為:

SW1 F0/1 <- SP VLAN 10 -> SW2 F0/1

兩端的設備都是連接到VLAN 10,因此在兩端的Switch啟用Dot1q Tunnel建立Trunk

SW1(config)#vlan dot1q tag native
!預設,Native VLAN不會加上tag,如果在Q-in-Q中要針對native vlan加tag,必須使用上述指令

SW1(config)#int f0/1
SW1(config-if)#switchport mode dot1q-tunnel
SW1(config-if)#switchport access vlan 10
SW1(config)#system mtu 1508
!一般Switch預設system mtu 1500,為了支援多層tag,必須加大MTU,設定完成必須reload switch

SW2(config)#vlan dot1q tag native
!預設,Native VLAN不會加上tag,如果在Q-in-Q中要針對native vlan加tag,必須使用上述指令

SW2(config)#int f0/1
SW2(config-if)#switchport mode dot1q-tunnel
SW2(config-if)#switchport access vlan 10
SW2(config)#system mtu 1508
!一般Switch預設system mtu 1500,為了支援多層tag,必須加大MTU,設定完成必須reload switch

Comments

Popular posts from this blog

L2TPv3 Enables Layer 2 Services for IP Networks

TCP/IP 明確擁塞通知 (ECN)