Layer 2 Control Protocol Peering and Forwarding
Layer 2 Control Protocol Peering and Forwarding
This feature module describes how to configure Layer 2 (L2) Control Protocol Peering, Forwarding, and
Tunneling feature on the Cisco ASR 901 Series Aggregation Services Routers.
Contents
• Prerequisites, page 35-1
• Restrictions, page 35-2
• Layer 2 Control Protocol Forwarding, page 35-2
• How to Configure Layer 2 Control Protocol Peering, Forwarding, and Tunneling, page 35-3
• Configuration Examples, page 35-10
• Additional References, page 35-13
• Feature Information for Layer 2 Control Protocol Peering, Forwarding, and Tunneling, page 35-14
Prerequisites
A Cisco IOS software that supports Layer 2 Control Protocol Peering, Forwarding, and Tunneling must
be installed previously on the Cisco ASR 901 Series Aggregation Services Router. For supported
software releases, see Release Notes for Cisco ASR 901 Series Aggregation Services Router.
Cisco ASR 901 Series Aggregation Services Router Software Configuration Guide
OL-23826-07 35-1
Chapter 35 Layer 2 Control Protocol Peering, Forwarding, and Tunneling
Layer 2 Control Protocol Forwarding
Restrictions
If you want to peer Operation, Administration, and Maintenance (OAM) packets when l2proto-forward
tagged command is configured at the interface level, you should also configure the l2protocol peer lacp
command.
ASR901 ASR901
CE PE CE
334051
1 2 3 2 1
1 L2CP packets are forwarded between CE 3 Third party PE forwards S-tagged frames and
devices. peers untagged frames.
2 Frames are forwarded from UNI to NNI after 4 Untagged LLDP and LACP is peered.
appending the S-tag. On the reverse path (NNI
to UNI), S-tag is removed.
Cisco ASR 901 Series Aggregation Services Router Software Configuration Guide
35-2 OL-23826-07
Chapter 35 Layer 2 Control Protocol Peering, Forwarding, and Tunneling
How to Configure Layer 2 Control Protocol Peering, Forwarding, and Tunneling
• Spanning Tree Protocol (STP)—including Multiservice Transport Platform (MSTP) and Per VLAN
Spanning Tree (PVST)
• Virtual Trunking Protocol (VTP)
The ASR 901 router allows to tunnel layer 2 packets between CEs. The Cisco proprietary multicast
address (01-00-0c-cd-cd-d0) is used while tunneling the packet over the NNI interfaces.
Figure 35-2 depicts Layer 2 Protocol Tunneling. The layer 2 traffic is sent through the S-network, and
the S-network switches the traffic from end to end. The Cisco multicast address is added to the frames
and sent from UNI to NNI. On the reverse path (NNI to UNI), protocol specific multicast address is
attached to the frames and sent to the UNI.
334050
1 2 3 2 1
1 CE layer 2 control protocol tunnel 3 Third party PE forwards S-tagged frames and
(end-to-end). peers untagged frames.
2 Cisco multicast address is added to the frames 4 —
and sent from UNI to NNI. On the reverse
path (NNI to UNI), a protocol specific
multicast address is attached to the frames and
sent to UNI.
Note The configuration defined for LACP impacts all slow protocols, and is applicable to all the options like
peering, forwarding, and tunneling.
Cisco ASR 901 Series Aggregation Services Router Software Configuration Guide
OL-23826-07 35-3
Chapter 35 Layer 2 Control Protocol Peering, Forwarding, and Tunneling
How to Configure Layer 2 Control Protocol Peering, Forwarding, and Tunneling
Restrictions
If an EFP is configured with layer 2 peering, then L2CP packets coming on the EFP is sent to the CPU
for local protocol processing.
SUMMARY STEPS
1. enable
2. configure terminal
3. interface type number
4. service instance id ethernet
5. encapsulation encapsulation-type
6. l2protocol peer [protocol]
Cisco ASR 901 Series Aggregation Services Router Software Configuration Guide
35-4 OL-23826-07
Chapter 35 Layer 2 Control Protocol Peering, Forwarding, and Tunneling
How to Configure Layer 2 Control Protocol Peering, Forwarding, and Tunneling
DETAILED STEPS
Command Purpose
Step 1 enable Enables privileged EXEC mode.
• Enter your password if prompted.
Example:
Router> enable
Step 2 configure terminal Enters global configuration mode.
Example:
Router# configure terminal
Step 3 interface type number Specifies an interface type and number and enters interface
configuration mode.
Example:
Router(config)# interface gigabitethernet
0/6
Step 4 service instance id ethernet Configures an Ethernet service instance on an interface.
• id—Integer that uniquely identifies a service instance on an
Example: interface.
Router(config-if)# service instance 20
ethernet
Step 5 encapsulation encapsulation-type Defines the matching criteria to map untagged ingress Ethernet
frames on an interface to the appropriate service instance.
Example:
Router(config-if-srv)# encapsulation
untagged
Step 6 l2protocol peer [protocol] Configures transparent Layer 2 protocol peering on the interface for
a specified layer 2 protocol.
Example: • protocol—The protocol to be used. The options are: cdp, dtp,
Router(config-if-srv)# l2protocol peer lacp lacp, lldp, stp,and vtp.
Restrictions
• The layer 2 forwarding functionality is supported only on an untagged EFP (Only one untagged EFP
exists per interface).
• If an interface is configured with layer 2 protocol forwarding, then L2CP packets on the interface
are flooded on to the bridge domain. The flooding follows the translations specified in interface.
Cisco ASR 901 Series Aggregation Services Router Software Configuration Guide
OL-23826-07 35-5
Chapter 35 Layer 2 Control Protocol Peering, Forwarding, and Tunneling
How to Configure Layer 2 Control Protocol Peering, Forwarding, and Tunneling
SUMMARY STEPS
1. enable
2. configure terminal
3. interface type number
4. l2proto-forward tagged protocol
5. service instance id ethernet
6. encapsulation untagged
7. l2protocol forward [protocol]
8. bridge-domain bridge-id
DETAILED STEPS
Command Purpose
Step 1 enable Enables privileged EXEC mode.
• Enter your password if prompted.
Example:
Router> enable
Step 2 configure terminal Enters global configuration mode.
Example:
Router# configure terminal
Step 3 interface type number Specifies an interface type and number and enters interface
configuration mode.
Example:
Router(config)# interface gigabitethernet
0/1
Step 4 l2proto-forward tagged protocol Configures a layer 2 control protocol forwarding on an interface.
• protocol—Specifies the protocol to be forwarded.
Example:
Router(config-if)# l2proto-forward tagged
cdp
Step 5 service instance id ethernet Configures an Ethernet service instance on an interface.
• id—Integer that uniquely identifies a service instance on an
Example: interface.
Router(config-if)# service instance 20
ethernet
Step 6 encapsulation untagged Defines the matching criteria to map untagged ingress Ethernet
frames on an interface to the appropriate service instance.
Example:
Router(config-if-srv)# encapsulation
untagged
Cisco ASR 901 Series Aggregation Services Router Software Configuration Guide
35-6 OL-23826-07
Chapter 35 Layer 2 Control Protocol Peering, Forwarding, and Tunneling
How to Configure Layer 2 Control Protocol Peering, Forwarding, and Tunneling
Command Purpose
Step 7 l2protocol forward [protocol] Enables forwarding of untagged packets of specified protocol in a
service instance.
Example: • protocol—The protocol to be used. The options are: cdp, dtp,
Router(config-if-srv)# l2protocol forward lacp, lldp, stp,and vtp.
cdp
Step 8 bridge-domain bridge-id Binds a service instance to a bridge domain instance.
• bridge-id—Identifier for the bridge domain instance.
Example:
Router(config-if-srv)# bridge-domain 200
Restrictions
• Layer 2 control protocol tunneling is not supported on x-connect EFPs, and at the interface level.
• Layer 2 control protocol tunneling supports a maximum packet rate of 10 packets ps (per interface)
for a protocol, and 100 packets ps for all protocols (on all interfaces).
SUMMARY STEPS
1. enable
2. configure terminal
3. interface type number
4. service instance id ethernet
5. encapsulation encapsulation-type
6. l2protocol tunnel [protocol]
7. bridge-domain bridge-id
Cisco ASR 901 Series Aggregation Services Router Software Configuration Guide
OL-23826-07 35-7
Chapter 35 Layer 2 Control Protocol Peering, Forwarding, and Tunneling
How to Configure Layer 2 Control Protocol Peering, Forwarding, and Tunneling
DETAILED STEPS
Command Purpose
Step 1 enable Enables privileged EXEC mode.
• Enter your password if prompted.
Example:
Router> enable
Step 2 configure terminal Enters global configuration mode.
Example:
Router# configure terminal
Step 3 interface type number Specifies an interface type and number and enters interface
configuration mode.
Example:
Router(config)# interface gigabitethernet
0/4
Step 4 service instance id ethernet Configure an Ethernet service instance on an interface.
• id—Integer that uniquely identifies a service instance on an
Example: interface.
Router(config-if)# service instance 9
ethernet
Step 5 encapsulation encapsulation-type Sets the encapsulation method used by the interface.
• encapsulation type—Type of encapsulation to be used.
Example:
Router(config-if-srv)# encapsulation
untagged
Step 6 l2protocol tunnel [protocol] Configures transparent Layer 2 protocol tunneling on the interface
for the specified Layer 2 protocol.
Example: • protocol—(Optional) The protocol to be used. The options are:
Router(config-if-srv)# l2protocol tunnel cdp cdp, dtp, lacp, lldp, stp,and vtp.
Step 7 bridge-domain bridge-id Binds a service instance to a bridge domain instance.
• bridge-id—Identifier for the bridge domain instance.
Example:
Router(config-if-srv)# bridge-domain 9
Cisco ASR 901 Series Aggregation Services Router Software Configuration Guide
35-8 OL-23826-07
Chapter 35 Layer 2 Control Protocol Peering, Forwarding, and Tunneling
How to Configure Layer 2 Control Protocol Peering, Forwarding, and Tunneling
Cisco ASR 901 Series Aggregation Services Router Software Configuration Guide
OL-23826-07 35-9
Chapter 35 Layer 2 Control Protocol Peering, Forwarding, and Tunneling
Configuration Examples
Configuration Examples
This section provides sample configuration examples for Layer 2 Control Protocol Peering, Forwarding,
and Tunneling feature on the Cisco ASR 901 Routers.
• Example: Configuring Layer 2 Peering, page 35-10
• Example: Configuring Layer 2 Forwarding, page 35-10
• Example: Configuring Layer 2 Tunneling, page 35-11
The following is a sample configuration of layer 2 protocol forwarding of tagged Bridge Protocol Data
Units (BPDUs) at the port-channel interface level.
Cisco ASR 901 Series Aggregation Services Router Software Configuration Guide
35-10 OL-23826-07
Chapter 35 Layer 2 Control Protocol Peering, Forwarding, and Tunneling
Configuration Examples
The following is a sample configuration of layer 2 control protocol tunneling for tagged packets.
Note The configuration given below applies to only one router. Similar configuration has to be applied on two
Cisco ASR 901 routers.
Building configuration...
Cisco ASR 901 Series Aggregation Services Router Software Configuration Guide
OL-23826-07 35-11
Chapter 35 Layer 2 Control Protocol Peering, Forwarding, and Tunneling
Configuration Examples
l2protocol tunnel
bridge-domain 50
!
!
interface GigabitEthernet0/1
negotiation auto
service instance 10 ethernet
encapsulation dot1q 100
bridge-domain 50
!
end
The following is a sample configuration of layer 2 protocol tunneling for receiving untagged LLDP
packets from customer nodes and tunneling them tagged over provider network.
Router 1
Building configuration...
Router 2
Current configuration : 170 bytes
!
interface GigabitEthernet0/7
negotiation auto
service instance 20 ethernet
encapsulation dot1q 100
rewrite ingress tag pop 1 symmetric
bridge-domain 30
!
!
interface GigabitEthernet0/6
negotiation auto
service instance 20 ethernet
encapsulation untagged
l2protocol tunnel lldp
bridge-domain 30
!
end
Cisco ASR 901 Series Aggregation Services Router Software Configuration Guide
35-12 OL-23826-07
Chapter 35 Layer 2 Control Protocol Peering, Forwarding, and Tunneling
Additional References
Additional References
The following sections provide references related to the Layer 2 Control Protocol Peering and
Forwarding feature.
Related Documents
Related Topic Document Title
Cisco IOS Commands Cisco IOS Master Commands List, All Releases
ASR 901 Commands Cisco ASR 901 Series Aggregation Services Router Command
Reference
Cisco IOS Interface and Hardware Component Cisco IOS Interface and Hardware Component Command Reference
Commands
Cisco IOS LAN Switching Commands Cisco IOS LAN Switching Command Reference
Standards
Standard Title
None —
MIBs
MIB MIBs Link
None To locate and download MIBs for selected platforms, Cisco IOS
releases, and feature sets, use Cisco MIB Locator found at the
following URL:
http://www.cisco.com/go/mibs
RFCs
RFC Title
None —
Technical Assistance
Description Link
The Cisco Technical Support website contains http://www.cisco.com/techsupport
thousands of pages of searchable technical content,
including links to products, technologies, solutions,
technical tips, and tools. Registered Cisco.com users
can log in from this page to access even more content.
Cisco ASR 901 Series Aggregation Services Router Software Configuration Guide
OL-23826-07 35-13
Chapter 35 Layer 2 Control Protocol Peering, Forwarding, and Tunneling
Feature Information for Layer 2 Control Protocol Peering, Forwarding, and Tunneling
Note Table 35-2 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.
Table 35-2 Feature Information for Layer 2 Control Protocol Peering, Forwarding, and Tunneling
Cisco ASR 901 Series Aggregation Services Router Software Configuration Guide
35-14 OL-23826-07