Showing posts with label Switch. Show all posts
Showing posts with label Switch. Show all posts
Cisco 802.1Q Tunneling aka Q-in-Q
Q-in-Q is a feature often used by service provider as a layer 2 VPN.
The configuration is very simple, put a 802.1Q tag on interface that it receives from customer and on interface that it out to customer other side. A different VLAN tag for each customer can separate the traffic from different customers. Set dot1q tunnel on both edge of service provider.
One of benefit of this technique is that it’s easy to implement, you don’t need to run any routing protocols inside service provider and also between provider and customer. From customers perspective, it’s just like their sites are directly connected on layer 2.
You can use freelabnetworks to configure Q-in-Q.
The following example is like site-A direcly connected with site-B.
SW2 as Customer-site-A
SW3 as Customer-site-B
SW4 as Service-provider-cloud
Before Q-in-Q configured:
#Customer-site-A (SW2)
SW2#show cdp neighbors FastEthernet 0/5
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID Local Intrfce Holdtme Capability Platform Port ID
SW4 Fas 0/5 122 S I WS-C3550-2Fas 0/3
#Customer-site-B (SW3)
SW3#show cdp neighbors FastEthernet 0/5
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID Local Intrfce Holdtme Capability Platform Port ID
SW4 Fas 0/5 171 S I WS-C3550-2Fas 0/5
After Q-in-Q configured:
#Customer-site-A (SW2)
SW2#show cdp neighbors FastEthernet 0/5
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID Local Intrfce Holdtme Capability Platform Port ID
SW3 Fas 0/5 152 S I WS-C2950G-Fas 0/5
#Customer-site-B (SW3)
SW3#show cdp neighbors FastEthernet 0/5
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID Local Intrfce Holdtme Capability Platform Port ID
SW2 Fas 0/5 164 S I WS-C2950G-Fas 0/5
Q-in-Q configured on Service-provider-cloud (SW4) :
SW4#show running-config interface FastEthernet 0/3
Building configuration...
Current configuration : 222 bytes
!
interface FastEthernet0/3
switchport access vlan 23
switchport mode dot1q-tunnel
no ip address
l2protocol-tunnel cdp
l2protocol-tunnel stp
l2protocol-tunnel vtp
no cdp enable
spanning-tree bpdufilter enable
end
SW4#show running-config interface FastEthernet 0/5
Building configuration...
Current configuration : 222 bytes
!
interface FastEthernet0/5
switchport access vlan 23
switchport mode dot1q-tunnel
no ip address
l2protocol-tunnel cdp
l2protocol-tunnel stp
l2protocol-tunnel vtp
no cdp enable
spanning-tree bpdufilter enable
end
SW4#show interfaces FastEthernet 0/3 switchport
Name: Fa0/3
Switchport: Enabled
Administrative Mode: tunnel
Operational Mode: tunnel
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: native
Negotiation of Trunking: Off
Access Mode VLAN: 23 (QinQ)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Voice VLAN: none (Inactive)
Appliance trust: none
SW4#show interfaces FastEthernet 0/5 switchport
Name: Fa0/5
Switchport: Enabled
Administrative Mode: tunnel
Operational Mode: tunnel
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: native
Negotiation of Trunking: Off
Access Mode VLAN: 23 (QinQ)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Voice VLAN: none (Inactive)
Appliance trust: none
Q-in-Q is a feature often used by service provider as a layer 2 VPN.The configuration is very simple, put a 802.1Q tag on interface that it receives from customer and on interface that it out to customer other side. A different VLAN tag for each customer can separate the traffic from different customers. Set dot1q tunnel on both edge of service provider.
One of benefit of this technique is that it’s easy to implement, you don’t need to run any routing protocols inside service provider and also between provider and customer. From customers perspective, it’s just like their sites are directly connected on layer 2.
You can use freelabnetworks to configure Q-in-Q.
The following example is like site-A direcly connected with site-B.
SW3 as Customer-site-B
SW4 as Service-provider-cloud
Before Q-in-Q configured:
#Customer-site-A (SW2)
SW2#show cdp neighbors FastEthernet 0/5
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID Local Intrfce Holdtme Capability Platform Port ID
SW4 Fas 0/5 122 S I WS-C3550-2Fas 0/3
#Customer-site-B (SW3)
SW3#show cdp neighbors FastEthernet 0/5
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID Local Intrfce Holdtme Capability Platform Port ID
SW4 Fas 0/5 171 S I WS-C3550-2Fas 0/5
After Q-in-Q configured:
#Customer-site-A (SW2)
SW2#show cdp neighbors FastEthernet 0/5
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID Local Intrfce Holdtme Capability Platform Port ID
SW3 Fas 0/5 152 S I WS-C2950G-Fas 0/5
#Customer-site-B (SW3)
SW3#show cdp neighbors FastEthernet 0/5
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID Local Intrfce Holdtme Capability Platform Port ID
SW2 Fas 0/5 164 S I WS-C2950G-Fas 0/5
Q-in-Q configured on Service-provider-cloud (SW4) :
SW4#show running-config interface FastEthernet 0/3
Building configuration...
Current configuration : 222 bytes
!
interface FastEthernet0/3
switchport access vlan 23
switchport mode dot1q-tunnel
no ip address
l2protocol-tunnel cdp
l2protocol-tunnel stp
l2protocol-tunnel vtp
no cdp enable
spanning-tree bpdufilter enable
end
SW4#show running-config interface FastEthernet 0/5
Building configuration...
Current configuration : 222 bytes
!
interface FastEthernet0/5
switchport access vlan 23
switchport mode dot1q-tunnel
no ip address
l2protocol-tunnel cdp
l2protocol-tunnel stp
l2protocol-tunnel vtp
no cdp enable
spanning-tree bpdufilter enable
end
SW4#show interfaces FastEthernet 0/3 switchport
Name: Fa0/3
Switchport: Enabled
Administrative Mode: tunnel
Operational Mode: tunnel
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: native
Negotiation of Trunking: Off
Access Mode VLAN: 23 (QinQ)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Voice VLAN: none (Inactive)
Appliance trust: none
SW4#show interfaces FastEthernet 0/5 switchport
Name: Fa0/5
Switchport: Enabled
Administrative Mode: tunnel
Operational Mode: tunnel
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: native
Negotiation of Trunking: Off
Access Mode VLAN: 23 (QinQ)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Voice VLAN: none (Inactive)
Appliance trust: none
The configuration is very simple, put a 802.1Q tag on interface that it receives from customer and on interface that it out to customer other side. A different VLAN tag for each customer can separate the traffic from different customers. Set dot1q tunnel on both edge of service provider.
One of benefit of this technique is that it’s easy to implement, you don’t need to run any routing protocols inside service provider and also between provider and customer. From customers perspective, it’s just like their sites are directly connected on layer 2.
You can use freelabnetworks to configure Q-in-Q.
The following example is like site-A direcly connected with site-B.
SW3 as Customer-site-B
SW4 as Service-provider-cloud
Before Q-in-Q configured:
#Customer-site-A (SW2)
SW2#show cdp neighbors FastEthernet 0/5
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID Local Intrfce Holdtme Capability Platform Port ID
SW4 Fas 0/5 122 S I WS-C3550-2Fas 0/3
#Customer-site-B (SW3)
SW3#show cdp neighbors FastEthernet 0/5
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID Local Intrfce Holdtme Capability Platform Port ID
SW4 Fas 0/5 171 S I WS-C3550-2Fas 0/5
After Q-in-Q configured:
#Customer-site-A (SW2)
SW2#show cdp neighbors FastEthernet 0/5
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID Local Intrfce Holdtme Capability Platform Port ID
SW3 Fas 0/5 152 S I WS-C2950G-Fas 0/5
#Customer-site-B (SW3)
SW3#show cdp neighbors FastEthernet 0/5
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID Local Intrfce Holdtme Capability Platform Port ID
SW2 Fas 0/5 164 S I WS-C2950G-Fas 0/5
Q-in-Q configured on Service-provider-cloud (SW4) :
SW4#show running-config interface FastEthernet 0/3
Building configuration...
Current configuration : 222 bytes
!
interface FastEthernet0/3
switchport access vlan 23
switchport mode dot1q-tunnel
no ip address
l2protocol-tunnel cdp
l2protocol-tunnel stp
l2protocol-tunnel vtp
no cdp enable
spanning-tree bpdufilter enable
end
SW4#show running-config interface FastEthernet 0/5
Building configuration...
Current configuration : 222 bytes
!
interface FastEthernet0/5
switchport access vlan 23
switchport mode dot1q-tunnel
no ip address
l2protocol-tunnel cdp
l2protocol-tunnel stp
l2protocol-tunnel vtp
no cdp enable
spanning-tree bpdufilter enable
end
SW4#show interfaces FastEthernet 0/3 switchport
Name: Fa0/3
Switchport: Enabled
Administrative Mode: tunnel
Operational Mode: tunnel
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: native
Negotiation of Trunking: Off
Access Mode VLAN: 23 (QinQ)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Voice VLAN: none (Inactive)
Appliance trust: none
SW4#show interfaces FastEthernet 0/5 switchport
Name: Fa0/5
Switchport: Enabled
Administrative Mode: tunnel
Operational Mode: tunnel
Administrative Trunking Encapsulation: negotiate
Operational Trunking Encapsulation: native
Negotiation of Trunking: Off
Access Mode VLAN: 23 (QinQ)
Trunking Native Mode VLAN: 1 (default)
Voice VLAN: none
Administrative private-vlan host-association: none
Administrative private-vlan mapping: none
Operational private-vlan: none
Trunking VLANs Enabled: ALL
Pruning VLANs Enabled: 2-1001
Capture Mode Disabled
Capture VLANs Allowed: ALL
Protected: false
Unknown unicast blocked: disabled
Unknown multicast blocked: disabled
Voice VLAN: none (Inactive)
Appliance trust: none
VTP (Virtual Trunking Protocol)
VTP is a cisco proprietary protocol that reduce vlan administration effort in switch network.
Normally, If you define a vlans on a switch in switched network, you should added them also on other switch in switched network, this can be a home work if involving a large number of switches and is also prone to error.
VTP makes your life easy, VTP allows you to add, delete and rename vlans on a single switch and this information will propagated to all other switch in the VTP domain.
In this manner, VTP allows for more consistent vlan configuration and monitoring of vlan by central administration.
VTP has three different modes :
- Server
This is the default mode on all cisco switch, a switch must be in VTP server mode to be able to create, modify and delete vlans.
- Client
a switch in VTP client mode raceive information from VTP servers, but a VTP client cannot create, modify and delete vlans. so, switch that are in VTP client mode will just learn and pass VTP information.
- Transparent
a switch in transparent mode receive VTP and forwards the to any configured trunk links. they can create, modify and delete vlans in their own vlan database but the database is kept isolate from the VTP domain and isn't advertised at all to other parties.
Let's find out how it's works for free only at freelabnetworks.blogspot.com.
If I’ve missed anything please speak up in the comments and let me know.
VTP is a cisco proprietary protocol that reduce vlan administration effort in switch network.Normally, If you define a vlans on a switch in switched network, you should added them also on other switch in switched network, this can be a home work if involving a large number of switches and is also prone to error.
VTP makes your life easy, VTP allows you to add, delete and rename vlans on a single switch and this information will propagated to all other switch in the VTP domain.
In this manner, VTP allows for more consistent vlan configuration and monitoring of vlan by central administration.
VTP has three different modes :
- Server
This is the default mode on all cisco switch, a switch must be in VTP server mode to be able to create, modify and delete vlans.
- Client
a switch in VTP client mode raceive information from VTP servers, but a VTP client cannot create, modify and delete vlans. so, switch that are in VTP client mode will just learn and pass VTP information.
- Transparent
a switch in transparent mode receive VTP and forwards the to any configured trunk links. they can create, modify and delete vlans in their own vlan database but the database is kept isolate from the VTP domain and isn't advertised at all to other parties.
Let's find out how it's works for free only at freelabnetworks.blogspot.com.
If I’ve missed anything please speak up in the comments and let me know.
Normally, If you define a vlans on a switch in switched network, you should added them also on other switch in switched network, this can be a home work if involving a large number of switches and is also prone to error.
VTP makes your life easy, VTP allows you to add, delete and rename vlans on a single switch and this information will propagated to all other switch in the VTP domain.
In this manner, VTP allows for more consistent vlan configuration and monitoring of vlan by central administration.
VTP has three different modes :
- Server
This is the default mode on all cisco switch, a switch must be in VTP server mode to be able to create, modify and delete vlans.
- Client
a switch in VTP client mode raceive information from VTP servers, but a VTP client cannot create, modify and delete vlans. so, switch that are in VTP client mode will just learn and pass VTP information.
- Transparent
a switch in transparent mode receive VTP and forwards the to any configured trunk links. they can create, modify and delete vlans in their own vlan database but the database is kept isolate from the VTP domain and isn't advertised at all to other parties.
Let's find out how it's works for free only at freelabnetworks.blogspot.com.
If I’ve missed anything please speak up in the comments and let me know.
Rentals
Overview
We offers rack rentals that support all requirement including Routing & Switching, and Security with dedicated equipment.Pricing
TBAOverview
We offers rack rentals that support all requirement including Routing & Switching, and Security with dedicated equipment.Pricing
TBAOnline Lab
Current Topology !
The lab is free and open for 24 hour, just login anytime.
Please follow these simple rule :
- Do not change the line vty settings.
- Do not erase the IOS image of format the flash filesystem.
- Lab will be roll back to default configuration every midnight.
- Username will be change every day.
To login, use a telnet client like putty, linux/unix telnet or secure crt and telnet to TCP port 1001, 1002, 1003, etc, or just click the on the bellow links.
(Cisco Lab)
SW2 : lab.freelabnetworks.com 1002
SW3 : lab.freelabnetworks.com 1003
SW4 : lab.freelabnetworks.com 1004
RT2 : lab.freelabnetworks.com 2002
RT3 : lab.freelabnetworks.com 2003
(Mikrotik Lab)
User : lab
Pass : [Enter]
RT4 : lab.freelabnetworks.com 30040
RT5 : lab.freelabnetworks.com 30050
Please share your thoughts with us in the comment section of this post.
Thanks.
Current Topology !
The lab is free and open for 24 hour, just login anytime.
Please follow these simple rule :
- Do not change the line vty settings.
- Do not erase the IOS image of format the flash filesystem.
- Lab will be roll back to default configuration every midnight.
- Username will be change every day.
To login, use a telnet client like putty, linux/unix telnet or secure crt and telnet to TCP port 1001, 1002, 1003, etc, or just click the on the bellow links.
(Cisco Lab)
SW2 : lab.freelabnetworks.com 1002
SW3 : lab.freelabnetworks.com 1003
SW4 : lab.freelabnetworks.com 1004
RT2 : lab.freelabnetworks.com 2002
RT3 : lab.freelabnetworks.com 2003
(Mikrotik Lab)
User : lab
Pass : [Enter]
RT4 : lab.freelabnetworks.com 30040
RT5 : lab.freelabnetworks.com 30050
Please share your thoughts with us in the comment section of this post.
Thanks.
Subscribe to:
Posts (Atom)




