Q-in-Q Tunneling allows us to extend layer 2 beyond WAN boundary. Q-in-Q allows customer to preserve 802.1Q VLAN tags across a WAN. Service provider will receive the tagged frame from the customer and add the additional 8021.Q tag in the frame header so called double tagged frame. SP assigns different VLAN tag to different customer in order to identify which customer the frames are belong to. This allows overlapping VLAN IDs between customers.
In addition, CDP and VTP packets are able to pass over Q-in-Q service also.
Basic configuration
Provide Edge SW
PE1
interface FastEthernet0/x
description to PE2
switchport mode access
switchport access vlan 100
switchport mode dot1q-tunnel
l2protocol-tunnel cdp
l2protocol-tunnel vtp
no cdp enable
interface FastEthernet0/y
description to CE
swtichport access vlan 10
From the configuration above, the VLAN tag will be 10 and 100. 10 for customer VLAN and 100 is for SP VLAN.
.
Showing posts with label VLAN. Show all posts
Showing posts with label VLAN. Show all posts
Thursday, March 3, 2011
Thursday, February 24, 2011
Private VLAN (Layer 2)
The concept of private VLAN is to divide 1 broadcast domain into subdomains so called Private VLAN (PVLAN). To be able to route between PVLAN, it is the same concept as routing between different VLANs. Hosts in each Private VLAN are in the same IP subnet but they cannot communicate with layer 2 among themselves. Instead. they need to pass traffic through the router (layer 3 devices) first.
Verify Configuration
Switch#sh vlan private-vlan
Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------
100 101 isolated Fa0/1, Fa0/2
100 102 community Fa0/1, Fa0/3
Switch#sh int status
Port Name Status Vlan Duplex Speed Type
Fa0/1 notconnect 100 auto auto 10/100BaseTX
Fa0/2 notconnect 100,101 auto auto 10/100BaseTX
Fa0/3 notconnect 100,102 auto auto 10/100BaseTX
Fa0/4 notconnect 1 auto auto 10/100BaseTX
Fa0/5 notconnect 1 auto auto 10/100BaseTX
Reference
We have 3 kinds of ports of the PVLAN
- Promiscuous port - allow communication between different PVLAN
- Isolated port - do not allow to communicate between host inside PVLAN except Promiscuous port
- Community port - allow communication between host inside PVLAN but not to hosts in other PVLANs.
Configuration Example
Configure VLAN 100 as a primary, VLAN 101 as an isolated VLAN, and VLAN 102 as a community VLAN.
**Note**
Private VLANs can only be configured when VTP is in transparent mode.
vtp mode transparent
**Note**
Private VLANs can only be configured when VTP is in transparent mode.
vtp mode transparent
vlan 100
private-vlan primary
vlan 101
private-vlan isolated
vlan 102
private-vlan community
Associate each private VLAN to primary VLAN
vlan 100
private-vlan association 101-102
Assign Private VLAN to ports
//Assign f0/2 as a host port in sub VLAN 101 (Isolated)
interface f0/2
switchport mode private-vlan host
switchport private-vlan host-association 100 101
//Assign f0/3 as a host port in sub VLAN 102 (Community)
interface f0/3
switchport mode private-vlan host
switchport private-vlan host-association 100 102
//Assign f0/1 (Uplink port to the router) as a promiscuous
interface f0/1
switchport mode private-vlan promiscuous
switchport private-vlan mapping 100 101-102
Verify Configuration
Switch#sh vlan private-vlan
Primary Secondary Type Ports
------- --------- ----------------- ------------------------------------------
100 101 isolated Fa0/1, Fa0/2
100 102 community Fa0/1, Fa0/3
Switch#sh int status
Port Name Status Vlan Duplex Speed Type
Fa0/1 notconnect 100 auto auto 10/100BaseTX
Fa0/2 notconnect 100,101 auto auto 10/100BaseTX
Fa0/3 notconnect 100,102 auto auto 10/100BaseTX
Fa0/4 notconnect 1 auto auto 10/100BaseTX
Fa0/5 notconnect 1 auto auto 10/100BaseTX
Reference
Subscribe to:
Posts (Atom)

