The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
The Layer 2 Local Switching feature allows you to switch Layer 2 data in two ways:
The interface-to-interface switching combinations supported by this feature are:
The following same-port switching features are supported:
Your software release may not support all the features documented in this module. For the latest feature information and caveats, see the release notes for your platform and software release. To find information about the features documented in this module, and to see a list of the releases in which each feature is supported, see the Feature Information Table at the end of this document.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Layer 2 local switching is supported on the following interface processors in the Cisco 7200 series routers:
Layer 2 local switching is supported on the following interface processors in the Cisco 7500 series routers:
Layer 2 local switching is supported on the following port adapters in the Cisco 7200 and 7500 series routers:
For information about Layer 2 local switching on the Cisco 10000 series routers, see Configuring Layer 2 Local Switching .
Starting in Cisco IOS Release 12.0(31)S2, ISE customer edge-facing interfaces support the following types of like-to-like and any-to-any local switching:
Note |
Native Layer 2 Tunnel Protocol Version 3 (L2TPv3) tunnel sessions on customer edge-facing line cards can coexist with tunnel sessions that use a tunnel-server card. |
The following hardware is not supported:
Local switching allows you to switch Layer 2 data between two interfaces of the same type (for example, ATM to ATM, or Frame Relay to Frame Relay) or between interfaces of different types (for example, Frame Relay to ATM) on the same router. The interfaces can be on the same line card or on two different cards. During these kinds of switching, the Layer 2 address is used, not any Layer 3 address.
Additionally, same-port local switching allows you to switch Layer 2 data between two circuits on the same interface.
Nonstop forwarding (NSF) and stateful switchover (SSO) improve the availability of the network by providing redundant Route Processors (RPs) and checkpointing of data to ensure minimal packet loss when the primary RP goes down. NSF/SSO support is available for the following locally switched attachment circuits:
Incumbent local exchange carriers (ILECs) who use an interexchange carrier (IXC) to carry traffic between two local exchange carriers can use the Layer 2 Local Switching feature. Telecom regulations require the ILECs to pay the IXCs to carry that traffic. At times, the ILECs cannot terminate customer connections that are in different local access and transport areas (LATAs). In other cases, customer connections terminate in the same LATA, which may also be on the same router.
For example, company A has more than 50 LATAs across the country and uses three routers for each LATA. Company A uses companies B and C to carry traffic between local exchange carriers. Local switching of Layer 2 frames on the same router might be required.
Similarly, if a router is using, for example, a channelized interface, it might need to switch incoming and outgoing traffic across two logical interfaces that reside on a single physical port. The same-port local switching feature addresses that implementation.
The figure below shows a network that uses local switching for both Frame Relay to Frame Relay and ATM to Frame Relay local switching.
Figure 1 | Local Switching Example |
The Automatic Protection Switching (APS) mechanism provides a switchover time of less than 50 milliseconds. However, the switchover time is longer in a pseudowire configuration due to the time the pseudowire takes to enter the UP state on switchover. The switchover time of the pseudowire can be eliminated if there is a single pseudowire on the working and protect interfaces instead of separate pseudowire configurations. A single pseudowire also eliminates the need to have Label Distribution Protocols (LDP) negotiations on a switchover. The virtual interface or controller model provides a method to configure a single pseudowire between the provider edge (PE) routers.
Access Circuit Redundancy (ACR) ensures low data traffic downtime by reducing the switchover time. ACR works on the APS 1+1, nonrevertive model where each redundant line pair consists of a working line and a protect line. If a signal fail condition or a signal degrade condition is detected, the hardware switches from the working line to the protect line.
The working and protect interfaces can be on the following:
When the working or protection interface is configured with ACR, a virtual interface is created and a connection is established between the virtual interfaces to facilitate the switching of data between the interfaces.
ACR for ATM-to-ATM local switching supports the ATM AAL5 and ATM AAL0 encapsulation types and switches Layer 2 data between L2 transport virtual circuits (VCs).
Note |
The L2 transport VCs must be configured with the same encapsulation type. |
The figure below shows the ACR for ATM-to-ATM local switching model.
Figure 2 | ATM-to-ATM ACR Local Switching Model |
In the figure:
Circuit Emulation (CEM) transports Time Division Multiplexing (TDM) data over TDM pseudowires, allowing mobile operators to carry TDM traffic over an IP or Multiprotocol Label Switching (MPLS) network. ACR for CEM-to-CEM involves creating a virtual controller and associating the virtual controller with the physical controllers. The virtual controller is created when APS and ACR are configured on the physical controller. All commands executed on the virtual controller apply to the working and protect controller. The virtual controller simplifies the single point of configuration and provides the flexibility of not running a backup pseudowire for the protect controller in the event of a failure. This way there is no switchover between the pseudowires, which in turn reduces the recovery time when the physical link fails.
When the CEM group is configured on the virtual controller, a virtual CEM-ACR interface is created and associated with the CEM circuit. ACR creates CEM interfaces and CEM circuits on the physical interfaces that correspond to the physical controllers belonging to the same ACR group.
The figure below shows the ACR for CEM-to-CEM local switching model:
Figure 3 | CEM-to-CEM ACR Local Switching Model |
In the figure:
For information about Layer 2 local switching on the Cisco 10000 series routers, see Configuring Layer 2 Local Switching .
You can configure local switching for both ATM AAL5 and ATM AAL0 encapsulation types.
Creating the ATM PVC is not required. If you do not create a PVC, one is created for you. For ATM-to-ATM local switching, the autoprovisioned PVC is given the default encapsulation type AAL0 cell relay.
Note |
Starting with Cisco IOS Release 12.0(30)S, you can configure same-port switching following the steps in this section. |
Perform this task to configure ATM-to-ATM PVC local switching and same-port switching.
Perform this task to configure ATM-to-ATM PVP local switching.
Starting with Cisco IOS Release 12.0(30)S, you can configure same-port switching, as detailed in the Configuring ATM PVP Same-Port Switching.
Perform this task to configure ATM PVP switching on an ATM interface.
For ATM to Ethernet port mode local switching, creating the ATM PVC is not required. If you do not create a PVC, one is created for you. For ATM-to-Ethernet local switching, the autoprovisioned PVC is given the default encapsulation type AAL5SNAP.
ATM-to-Ethernet local switching supports both the IP and Ethernet interworking types. When the Ethernet interworking type is used, the interworking device (router) expects a bridged packet. Therefore, configure the ATM CPE for either IRB or RBE.
Note |
Enabling ICMP Router Discovery Protocol on the Ethernet side is recommended. |
ATM-to-Ethernet local switching supports the following encapsulation types:
Perform this task to configure local switching between ATM and Ethernet port mode.
For ATM-to-Ethernet VLAN mode local switching, creating the ATM PVC is not required. If you do not create a PVC, one is created for you. For ATM-to-Ethernet local switching, the autoprovisioned PVC is given the default encapsulation type AAL5SNAP.
ATM-to-Ethernet local switching supports both the IP and Ethernet interworking types. When the Ethernet interworking type is used, the interworking device (router) expects a bridged packet. Therefore, configure the ATM CPE for either IRB or RBE.
Note |
Enabling ICMP Router Discovery Protocol on the Ethernet side is recommended. |
ATM-to-Ethernet local switching supports the following encapsulation types:
The VLAN header is removed from frames that are received on an Ethernet subinterface.
Perform this task to configure local switching for ATM to Ethernet in VLAN mode.
Perform this task to configure Ethernet VLAN same-port switching.
Perform this task to configure local switching for Ethernet (port mode) to Ethernet VLAN.
You use the interworking ipkeywords for configuring ATM-to-Frame Relay local switching.
FRF.8 Frame Relay-to-ATM service interworking functionality is not supported. Frame Relay discard-eligible (DE) bits do not get mapped to ATM cell loss priority (CLP) bits, and forward explicit congestion notification (FECN) bits do not get mapped to ATM explicit forward congestion indication (EFCI) bits.
Creating the PVC is not required. If you do not create a PVC, one is created for you. For ATM-to-Ethernet local switching, the automatically provisioned PVC is given the default encapsulation type AAL5SNAP.
ATM-to-Frame Relay local switching supports the following encapsulation types:
For information on Frame Relay-to-Frame Relay Local Switching, see the Distributed Frame Relay Switching feature module.
With Cisco IOS Release 12.0(30)S, you can switch between virtual circuits on the same port, as detailed in the Configuring Frame Relay Same-Port Switching.
Perform this task to configure Frame Relay switching on the same interface.
Perform this task to configure local switching for HDLC. The PE routers are configured with HDLC encapsulation. The CE routers are configured with any HDLC-based encapsulation, including HDLC, PPP, and Frame Relay.
Note |
The connect command provides an infrastructure to create the required L2 transport VCs with the default AAl0 encapsulation type and does not require that the VCs must exist. |
Perform this task to configure ACR for ATM-to-ATM local switching.
Perform this task to configure ACR for CEM-to-CEM local switching.
To verify configuration of the Layer 2 Local Switching feature, use the following commands on the provider edge (PE) router:
Step 1 | show connection [all | element | id id | name name | port port] The show connectioncommand displays the local connection between an ATM interface and a Fast Ethernet interface: Example:
Router# show connection name atm-eth-con
ID Name Segment 1 Segment 2 State
==================================================================
1 atm-eth-con ATM0/0/0 AAL5 0/100 FastEthernet6/0/0 UP
This example displays the local connection between an ATM interface and a serial interface: Example:
Router# show connection name atm-fr-con
ID Name Segment 1 Segment 2 State
==================================================================
1 atm-fr-con ATM0/0/0 AAL5 0/100 Serial1/0/0 16 UP
This example displays a same-port connection on a serial interface. Example:
Router# show connection name same-port
ID Name Segment 1 Segment 2 State
==================================================================
1 same-port Serial1/1/1 101 Serial1/1/1 102 UP
|
Step 2 | show atm pvc The show atm pvccommand shows that interface ATM3/0 is UP: Example:
Router# show atm pvc
VCD/ Peak Avg/Min Burst
Interface Name VPI VCI Type Encaps SC Kbps Kbps Cells Sts
3/0 10 1 32 PVC FRATMSRV UBR 155000 UP
|
Step 3 | show frame-relay pvc [pvc] The show frame-relay pvc command shows a switched Frame Relay PVC: Example:
Router# show frame-relay pvc 16
PVC Statistics for interface POS5/0 (Frame Relay NNI)
DLCI = 16, DLCI USAGE = SWITCHED, PVC STATUS = UP, INTERFACE = POS5/0
LOCAL PVC STATUS = UP, NNI PVC STATUS = ACTIVE
input pkts 0 output pkts 0 in bytes 0
out bytes 0 dropped pkts 100 in FECN pkts 0
in BECN pkts 0 out FECN pkts 0 out BECN pkts 0
in DE pkts 0 out DE pkts 0
out bcast pkts 0 out bcast bytes 0
switched pkts 0
Detailed packet drop counters:
no out intf 0 out intf down 100 no out PVC 0
in PVC down 0 out PVC down 0 pkt too big 0
pvc create time 00:25:32, last time pvc status changed 00:06:31 |
Layer 2 local switching provides NSF/SSO support for Local Switching of the following attachment circuits on the same router:
For information about configuring NSF/SSO on the RPs, see the Stateful Switchover feature module. To verify that the NSF/SSO: Layer 2 Local Switching is working correctly, follow the steps in this section.
You can troubleshoot Layer 2 local switching using the following commands on the PE router:
The following example shows local switching on ATM interfaces configured for AAL5:
interface atm1/0/0 pvc 0/100 l2transport encapsulation aal5 interface atm2/0/0 pvc 0/100 l2transport encapsulation aal5 connect aal5-conn atm1/0/0 0/100 atm2/0/0 0/100
The following example shows same-port switching between two PVCs on one ATM interface:
interface atm1/0/0 pvc 0/100 l2transport encapsulation aal5 pvc 0/200 l2transport encapsulation aal5 connect conn atm1/0/0 0/100 atm1/0/0 0/200
The following example shows same-port switching between two PVPs on one ATM interface:
interface atm1/0/0 atm pvp 100 l2transport atm pvp 200 l2transport connect conn atm1/0/0 100 atm1/0/0 200
ATM-to-Ethernet local switching terminates an ATM frame to an Ethernet/VLAN frame over the same PE router. Two interworking models are used: Ethernet mode and IP mode.
The following example shows an Ethernet interface configured for Ethernet VLAN, and an ATM PVC interface configured for AAL5 encapsulation. The connectcommand allows local switching between these two interfaces and specifies the interworking type as Ethernet mode.
interface fastethernet6/0/0.1 encapsulation dot1q 10 interface atm2/0/0 pvc 0/400 l2transport encapsulation aal5 connect atm-ethvlan-con atm2/0/0 0/400 fastethernet6/0/0.1 interworking ethernet
The following example shows an Ethernet interface configured for Ethernet and an ATM interface configured for AAL5SNAP encapsulation. The connectcommand allows local switching between these two interfaces and specifies the interworking type as IP mode.
interface atm0/0/0 pvc 0/100 l2transport encapsulation aal5snap interface fastethernet6/0/0 connect atm-eth-con atm0/0/0 0/100 fastethernet6/0/0 interworking ip
The following example shows same-port switching between two VLANs on one Ethernet interface:
interface fastethernet0/0.1 encapsulation dot1q 1 interface fastethernet0/0.2 encapsulation dot1q 2 connect conn FastEthernet0/0.1 FastEthernet0/0.2
The following example shows a serial interface configured for Frame Relay and an ATM interface configured for AAL5SNAP encapsulation. The connectcommand allows local switching between these two interfaces.
interface serial1/0 encapsulation frame-relay interface atm1/0 pvc 7/100 l2transport encapsulation aal5snap connect atm-fr-conn atm1/0 7/100 serial1/0 100 interworking ip
The following example shows serial interfaces configured for Frame Relay. The connectcommand allows local switching between these two interfaces.
frame-relay switching ip cef distributed interface serial3/0/0 encapsulation frame-relay frame-relay interface-dlci 100 switched frame-relay intf-type dce interface serial3/1/0 encapsulation frame-relay ietf frame-relay interface-dlci 200 switched frame-relay intf-type dce connect fr-con serial3/0/0 100 serial3/1/0 200
The following example shows same-port switching between two data links on one Frame Relay interface:
interface serial1/0 encapsulation frame-relay frame-relay int-type nni connect conn serial1/0 100 serial1/0 200
The following example shows local switching of two serial interfaces for HDLC:
interface serial1/0 no ip address interface serial2/0 no ip address connect conn1 serial1/0 serial1/0
The following configuration uses the network topology shown in the figure below.
Figure 4 | NSF/SSO: Layer 2 Local Switching: Ethernet to Ethernet VLAN |
The following example shows the configuration of the CE interfaces to connect to the PE1 router:
CE1 |
CE2 |
---|---|
ip routing ! interface fa3/1/0 description: connection to PE fa1/1/1 no shutdown ip address 10.1.1.1 255.255.255.0
|
ip routing ! interface fa4/0 no shutdown ! interface fa4/0.1 description: connection to PE1 fa6/0/0.1 encapsulation dot1Q 10 ip address 10.1.1.2 255.255.255.0 ! interface fa4/0.2 description - connection to PE1 fa6/0/0.2 encapsulation dot1Q 20 ip address 172.16.1.2 255.255.255.0 |
The following example shows the configuration of the PE1 router with NSF/SSO and the PE interfaces to the CE routers:
PE1 |
---|
redundancy no keepalive-enable mode sso ! hw-module slot 2 image disk0:rsp-pv-mz.shaft.111004 hw-module slot 3 image disk0:rsp-pv-mz.shaft.111004 ! ip routing ip cef distributed ! interface fa1/1/1 description - connection to CE1 fa3/1/0 no shutdown no ip address ! interface fa4/0/0 description - connection to CE3 fa6/0 no shutdown no ip address ! interface fa6/0/0 no shutdown no ip address ! interface fa6/0/0.1 description - connection to CE2 fa4/0.1 encapsulation dot1Q 10 no ip address ! interface fa6/0/0.2 description - connection to CE2 fa4/0.2 encapsulation dot1Q 20 no ip address |
The following example shows the configuration of ICMP Router Discovery Protocol (IRDP) on the CE router for Interworking IP for ARP mediation:
CE1 |
CE2 |
---|---|
interface FastEthernet3/1/0 ip irdp ip irdp maxadvertinterval 0 |
interface FastEthernet4/0.1 ip irdp ip irdp maxadvertinterval 0 |
The following example shows the configuration of OSPF on the CE routers:
CE1 |
CE2 |
---|---|
interface loopback 1 ip address 10.11.11.11 255.255.255.255 ! router ospf 10 network 10.11.11.11 0.0.0.0 area 0 network 192.168.1.1 0.0.0.0 area 0 |
interface loopback 1 ip address 12.12.12.12 255.255.255.255 ! router ospf 10 network 10.12.12.12 0.0.0.0 area 0 network 192.168.1.2 0.0.0.0 area 0 |
The following example shows the configuration of local switching on the PE1 router for interworking Ethernet:
connect eth-vlan1 fa1/1/1 fa6/0/0.1 interworking ethernet
connect eth-vlan2 fa4/0/0 fa6/0/0.2 interworking ethernet
The following example shows the configuration of local switching on the PE1 router for interworking IP:
connect eth-vlan1 fa1/1/1 fa6/0/0.1 interworking ip
connect eth-vlan2 fa4/0/0 fa6/0/0.2 interworking ip
Related Topic |
Document Title |
---|---|
MPLS |
MPLS Product Literature |
Layer 2 local switching configuration tasks |
|
Frame Relay-ATM interworking configuration tasks |
Configuring Frame Relay-ATM Interworking |
Frame Relay-to-Frame Relay local switching configuration tasks |
Distributed Frame Relay Switching |
CEoP and Channelized ATM SPAs on 7600 series router configuration tasks |
Standard |
Title |
---|---|
draft-ietf-l2tpext-l2tp-base-03.txt |
Layer Two Tunneling Protocol (Version 3) 'L2TPv3' |
draft-martini-l2circuit-trans-mpls-09.txt |
Transport of Layer 2 Frames Over MPLS |
draft-martini-l2circuit-encap-mpls-04.txt |
Encapsulation Methods for Transport of Layer 2 Frames Over IP and MPLS Networks |
draft-ietf-ppvpn-l2vpn-00.txt |
An Architecture for L2VPNs |
MIB |
MIBs Link |
---|---|
None |
To locate and download MIBs for selected platforms, Cisco software releases, and feature sets, use Cisco MIB Locator found at the following URL: |
RFC |
Title |
---|---|
None |
-- |
Description |
Link |
---|---|
The Cisco Support and Documentation website provides online resources to download documentation, software, and tools. Use these resources to install and configure the software and to troubleshoot and resolve technical issues with Cisco products and technologies. Access to most tools on the Cisco Support and Documentation website requires a Cisco.com user ID and password. |
The following table provides release information about the feature or features described in this module. This table lists only the software release that introduced support for a given feature in a given software release train. Unless noted otherwise, subsequent releases of that software release train also support that feature.
Use Cisco Feature Navigator to find information about platform support and Cisco software image support. To access Cisco Feature Navigator, go to www.cisco.com/go/cfn. An account on Cisco.com is not required.
Table 1 | Feature Information for Layer 2 Local Switching |
Cisco and the Cisco Logo are trademarks of Cisco Systems, Inc. and/or its affiliates in the U.S. and other countries. A listing of Cisco's trademarks can be found at www.cisco.com/go/trademarks. Third party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1005R)
Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental.