VPWS-CFM
The below examples contains of Ethernet Operations and Management (OAM) configurations using the Connectivity Fault Management (CFM) protocol.
Connectivity Fault Management detects, verifies, isolates and notifies connectivity failures on a Virtual Bridged LAN (B- VLAN) based on the protocol standard specified in IEEE 802.1ag 2007. It provides discovery and verification of paths through 802.1 bridges and LANs and is part of the Operation, Administration and Management (OAM) module. CFM is transparent to customer data being transported by a network and is capable of providing maximum fault management.
Prerequisite
Configure basic VPWS configuration as in above section.
1. Configure the IP address and OSPF for the PE-1, P (Provider), and PE-2 routers.
2. Configure MPLS and LDP on PE-1, P, and PE-2, and LDP targeted peer for the PE-1 and PE-2 routers. (If RSVP is used for configuring trunks, LDP must be configured on PE-1 and PE-2, and RSVP must be configured on PE-1, P, and PE-2.)
PE1
PE1#configure terminal | Enter configure mode. |
PE1(config)#ethernet cfm domain-type character-string domain-name MD-05 level 0 mip-creation none | Create cfm domain with type as character string and set mip creation criteria to default. |
PE1(config-ether-cfm)#service ma-type string ma-name CFM-2 | Create ma type as string and configure the ma |
PE1(config-ether-cfm-ma)# vpws vc1 | Configure vpws to associate to the MA |
PE1(config-ether-cfm-ma)# ethernet cfm mep up mpid 115 active true vpws vc1 | Create mep up on vpws. |
PE1(config-ether-cfm-ma-mep)#cc multicast state enable | Enable cc multicast. |
PE1(config-ether-cfm-ma-mep)#exit-ether-ma-mep-mode | Exit CFM MEP configuration mode. |
PE1(config-ether-cfm-ma)#mep crosscheck mpid 1115 | Configure crosscheck to remote MEP. |
PE1(config-ether-cfm-ma)#cc interval 10ms | Enable cc interval for 10 millisecond. |
PE1(config-ether-cfm-ma)#exit-ether-ma-mode | Exit CFM MA configuration mode. |
PE1(config-ether-cfm)#exit | Exit ethernet CFM mode. |
PE1(config)#commit | Commit the configuration |
PE1(config)#exit | Exit the configure terminal mode |
PE2
PE2#configure terminal | Enter configure mode. |
PE2(config)#ethernet cfm domain-type character-string domain-name MD-05 level 0 mip-creation none | Create cfm domain with type as character string and set mip creation criteria to default. |
PE2(config-ether-cfm)#service ma-type string ma-name CFM-2 | Create ma type as string and set mip creation criteria to default. |
PE2(config-ether-cfm-ma)#vpws vc1 | Configure vpws to associate to the MA |
PE2(config-ether-cfm-ma)#ethernet cfm mep down mpid 1115 active true vpws vc1 | Create mep up on vpws. |
PE2(config-ether-cfm-ma-mep)#cc multicast state enable | Enable cc multicast. |
PE2(config-ether-cfm-ma-mep)#exit-ether-ma- mep-mode | Exit CFM MEP configuration mode |
PE2(config-ether-cfm-ma)#mep crosscheck mpid 115 | Configure crosscheck to remote MEP in VLAN 512. |
PE2(config-ether-cfm-ma)#cc interval 10ms | Enable cc interval for 10 millisecond. |
PE2(config-ether-cfm-ma)#exit-ether-ma-mode | Exit CFM MA configuration mode. |
PE2(config-ether-cfm)#exit | Exit ethernet CFM mode. |
PE2(config)#commit | Commit the configuration |
PE2(config)#exit | Exit the configure terminal mode |
Validation
PE1
PE1#show ethernet cfm statistics
Continuity Check Messages
CCM Sent : 4378
CCM Received : 0
Loop Back Messages
LBM Sent : 5
LBR Received(Valid) : 5
LBR Received(Bad msdu) : 0
LBR Received(Out-of-Seq): 0
Link Trace Messages
LTM Sent : 2
LTR Sent : 0
LTR Received(Valid) : 2
LTR Received(unexpected): 0
PE1#show ethernet cfm maintenance-points local mep domain MD-05 ma-name CFM-2
MPID Dir Lvl CC-Stat HW-Status CC-Intvl MAC-Address Def Port MD Name
---------------------------------------------------------------------------
115 Up 0 Enable Installed 100 ms b86a.97db.2eca F xe4 MD-05
PE1#show ethernet cfm maintenance-points remote domain MD-05 ma-name CFM-2
MEPID RMEPID LEVEL Rx CCM RDI PEER-MAC TYPE
----------------------------------------------------------------------
115 1115 0 Yes False f88e.a192.4436 Configured
PE1#show ethernet cfm ma status domain MD-05 ma-name CFM-2
MA NAME STATUS
-------------------------------
CFM-2 Active
PE1#show ethernet cfm maintenance-points remote domain MD-05 ma-name CFM-2
MEPID RMEPID LEVEL Rx CCM RDI PEER-MAC TYPE
----------------------------------------------------------------------
115 1115 0 Yes False f88e.a192.4436 Configured
PE1#ping ethernet mac f88e.a192.4436 unicast source 115 domain MD-05 ma CFM-2
success rate is 100 (5/5)
PE1#traceroute ethernet f88e.a192.4436 mepid 115 domain MD-05 ma CFM-2
MP Mac Hops Relay-action Ingress/Egress Ingress/Egress action
f88e.a192.4436 1 RlyHit Ingress IngOK
PE2
PE2#show ethernet cfm statistics
Continuity Check Messages
CCM Sent : 8841
CCM Received : 0
Loop Back Messages
LBM Sent : 5
LBR Received(Valid) : 5
LBR Received(Bad msdu) : 0
LBR Received(Out-of-Seq): 0
Link Trace Messages
LTM Sent : 1
LTR Sent : 2
LTR Received(Valid) : 1
LTR Received(unexpected): 0
PE2#show ethernet cfm maintenance-points local mep domain MD-05 ma-name CFM-2
MPID Dir Lvl CC-Stat HW-Status CC-Intvl MAC-Address Def Port MD Name
---------------------------------------------------------------------------
1115 Up 0 Enable Installed 100 ms f88e.a192.4436 F xe19 MD-05
PE2#show ethernet cfm maintenance-points remote domain MD-05 ma-name CFM-2
MEPID RMEPID LEVEL Rx CCM RDI PEER-MAC TYPE
----------------------------------------------------------------------
1115 115 0 Yes False b86a.97db.2eca Configured
PE2#show ethernet cfm ma status domain MD-05 ma-name CFM-2
MA NAME STATUS
-------------------------------
CFM-2 Active
PE2#show ethernet cfm maintenance-points remote domain MD-05 ma-name CFM-2
MEPID RMEPID LEVEL Rx CCM RDI PEER-MAC TYPE
----------------------------------------------------------------------
1115 115 0 Yes False b86a.97db.2eca Configured
PE2#ping ethernet mac b86a.97db.2eca unicast source 1115 domain MD-05 ma CFM-2
success rate is 100 (5/5)
PE2#traceroute ethernet b86a.97db.2eca mepid 1115 domain MD-05 ma CFM-2
MP Mac Hops Relay-action Ingress/Egress Ingress/Egress action
b86a.97db.2eca 1 RlyHit Ingress IngOK