Operational Concepts and Scenarios
Basic Configuration for L2CP for Hybrid+VPLS
Enabling tunneling at bridged interface:
(config-if)#show run in xe10
!
interface xe11
speed 1g
switchport
bridge-group 1
switchport mode trunk
switchport trunk allowed vlan all
mpls-l2-circuit vc1 service-template svc1
#config ter
#(config)interface xe11
(config-if)# l2protocol stp tunnel
(config-if)#commit
(config-if)#end
To display L2CP information:
#show l2protocol processing interface xe11
Bridge Interface Name Protocol Processing Status Hardware Status
====== ============== ======== ================= ===============
- xe12 stp Tunnel Tunnel
- xe12 lacp None Peer
- xe12 dot1x None Peer
- xe12 lldp None Peer
- xe12 efm None Peer
- xe12 elmi None Peer
(config)#in xe11
(config-if)#no l2protocol stp
(config-if)#end
#show l2protocol processing interface xe12
Bridge Interface Name Protocol Processing Status Hardware Status
====== ============== ======== ================= ===============
- xe12 stp None Peer
- xe12 lacp None Peer
- xe12 dot1x None Peer
- xe12 lldp None Peer
- xe12 efm None Peer
- xe12 elmi None Peer
Note: If the configuration is not done, hardware status shows the default values while the configured will be none. On configuring L2CP on interface, configured and hardware status will be same.
Basic Configuration for L2CP in VPLS
Enabling tunneling at ingress VPLS interface:
#show run in xe12
!
interface xe12
speed 1g
mpls-l2-circuit vc1 service-template svc1
!
#config ter
#(config)interface xe12
(config-if)#commit
To display L2CP information:
#show l2protocol processing interface xe12
Bridge Interface Name Protocol Processing Status Hardware Status
====== ============== ======== ================= ===============
- xe12 stp Discard Discard
- xe12 lacp None Peer
- xe12 dot1x None Tunnel
- xe12 lldp None Tunnel
- xe12 efm None Tunnel
- xe12 elmi None Tunnel
Basic Configuration for L2CP on Provider Bridging
Enabling tunneling at interface:
(config)#bridge 1 protocol provider-rstp edge
(config)#vlan database
(config-vlan)#vlan 2-10 bridge 1 state enable
(config-vlan)#vlan 11 type service point-point bridge 1 state enable
(config-vlan)#ex
(config)#cvlan registration table map1 bridge 1
(config-cvlan-registration)#cvlan 2 svlan 11
(config-cvlan-registration)#ex
(config)#interface xe1
(config-if)#switchport
(config-if)#bridge-group 1
(config-if)#switchport mode customer-edge hybrid
(config-if)#switchport customer-edge hybrid allowed vlan all
(config-if)#switchport customer-edge vlan registration map1
(config-if)#l2protocol ?
dot1x Port Authentication (802.1 X)
efm Ethernet first mile (Link OAM)
elmi Ethernet local management interface
lacp Link Aggregation (LACP)
lldp link layer discovery protocol
stp Spanning Tree Protocols
(config-if)#l2protocol stp ?
discard Discard the protocol data unit
peer Discard the protocol data unit
tunnel tunnel
(config-if)#l2protocol stp tunnel
#show running-config interface xe1
!
interface xe1
speed 1g
switchport
bridge-group 1
switchport mode customer-edge hybrid
switchport customer-edge hybrid allowed vlan all
switchport customer-edge vlan registration map1
l2protocol stp tunnel
customer-spanning-tree provider-edge svlan 11 path-cost 128
(config-if)#commit
Configuring egress interfaces”
(config)#interface xe2
(config-if)#switchport
(config-if)#bridge-group 1
(config-if)#switchport mode provider-network
(config-if)#switchport provider-network allowed vlan all
(config-if)#commit
To display L2protocol information:
#show l2protocol processing interface xe1
Bridge Interface Name Protocol Processing Status Hardware Status
====== ============== ======== ================= ===============
1 xe1 stp Tunnel Tunnel
1 xe1 lacp Peer Peer
1 xe1 dot1x Peer Peer
1 xe1 lldp Peer Peer
1 xe1 efm Peer Peer
1 xe1 elmi Peer Peer
To display L2protocol counters:
#show l2protocol interface counters
Interface xe0
Tunnel : stp : 45