OcNOS-DC : Carrier Ethernet Guide : Carrier Ethernet Configuration Guide : Ethernet CFM Configurations
Ethernet CFM Configurations
This chapter contains examples 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.
Continuity Check Message (CCM)
Topology
 
CFM Topology
Prerequisite
Configure below hardware-profile commands related to CFM in configuration mode and reboot the nodes.
hardware-profile filter cfm-domain-name-str enable
hardware-profile statistics cfm-ccm enable
SW1
 
SW1#configure terminal
Enter configure mode.
SW1(config)#bridge 1 protocol rstp vlan-bridge
Create bridge 1 as an RSTP VLAN-aware bridge.
SW1(config)#vlan database
Entering vlan database
SW1(config-vlan)#vlan 512 bridge 1 state enable
Create VLAN 512 on bridge 1.
SW1(config-vlan)#exit
Exit vlan database
SW1(config)#interface ce49
Configure interface ce49.
SW1(config-if)#switchport
Configure the interface as switch port.
SW1(config-if)#bridge-group 1
Configure interface in bridge group 1.
SW1(config-if)#switchport mode trunk
Configure interface mode as trunk.
SW1(config-if)#switchport trunk allowed vlan all
Allow all VLANs on interface ce49.
SW1(config-if)#exit
Exit config mode.
SW1(config)#ethernet cfm domain-type character-string domain-name mdnam level 7 mip-creation default
Create cfm domain with type as character string and set mip creation criteria to default.
SW1(config-ether-cfm)#service ma-type string ma-name testtm
Create ma type as string and configure the ma
SW1(config-ether-cfm-ma)#vlan 25 bridge 1
Configure vlan-id to associate the vlan to the MA
SW1(config-ether-cfm-ma)#mip-creation default
Set the mip creation criteria to default for the MA
SW1(config-ether-cfm-ma)#ethernet cfm mep down mpid 2 active true ce49
Create down mep on ce49.
SW1(config-ether-cfm-ma-mep)#cc multicast state enable
Enable cc multicast.
SW1(config-ether-cfm-ma-mep)#exit-ether-ma-mep-mode
Exit CFM MEP configuration mode.
SW1(config-ether-cfm-ma)#mep crosscheck mpid 1
Configure crosscheck to remote MEP in VLAN 512.
SW1(config-ether-cfm-ma)#cc interval 10ms
Enable cc interval for 10 millisecond.
SW1(config-ether-cfm-ma)#exit-ether-ma-mode
Exit CFM MA configuration mode.
SW1(config-ether-cfm)#exit
Exit ethernet CFM mode.
SW1(config)#commit
Commit the configuration
SW1(config)#exit
Exit the configure terminal mode
SW2
 
SW2#configure terminal
Enter configure mode.
SW2(config)#bridge 1 protocol rstp vlan-bridge
Create bridge 1 as an RSTP VLAN-aware bridge.
SW2(config)#vlan database
Entering vlan database
SW2(config-vlan)#vlan 512 bridge 1 state enable
Create VLAN 512 on bridge 1.
SW2(config-vlan)#exit
Exit vlan database
SW2(config)#interface ce0
Configure interface ce0.
SW2(config-if)#switchport
Configure the interface as switch port.
SW2(config-if)#bridge-group 1
Configure interface in bridge group 1.
SW2(config-if)#switchport mode trunk
Configure interface mode as trunk.
SW2(config-if)#switchport trunk allowed vlan all
Allow all VLANs on interface ce0.
SW2(config-if)#exit
Exit config mode.
SW2(config)#interface xe0
Configure interface xe0.
SW2(config-if)#switchport
Configure the interface as switch port.
SW2(config-if)#bridge-group 1
Configure interface in bridge group 1.
SW2(config-if)#switchport mode trunk
Configure interface mode as trunk.
SW2(config-if)#switchport trunk allowed vlan all
Allow all VLANs on interface xe1.
SW2(config-if)#exit
Exit the interface mode
SW2(config)#commit
Commit the configuration
SW2(config)#exit
Exit the configure terminal mode
SW3
 
SW3#configure terminal
Enter configure mode.
SW3(config)#bridge 1 protocol rstp vlan-bridge
Create bridge 1 as an RSTP VLAN-aware bridge.
SW3(config)#vlan database
Entering vlan database
SW3(config-vlan)#vlan 512 bridge 1 state enable
Create VLAN 512 on bridge 1.
SW3(config-vlan)#exit
Exit vlan database
SW3(config)#interface xe17
Configure interface xe17
SW3(config-if)#switchport
Configure the interface as switch port.
SW3(config-if)#bridge-group 1
Configure interface in bridge group 1.
SW3(config-if)#switchport mode trunk
Configure interface mode as trunk.
SW3(config-if)#switchport trunk allowed vlan all
Allow all VLANs on interface xe17.
SW3(config-if)#exit
Exit config mode.
SW3(config)#interface xe1
Configure interface xe1.
SW3(config-if)#switchport
Configure the interface as switch port.
SW3(config-if)#bridge-group 1
Configure interface in bridge group 1.
SW3(config-if)#switchport mode trunk
Configure interface mode as trunk.
SW3(config-if)#switchport trunk allowed vlan all
Allow all VLANs on interface xe1.
SW3(config-if)#exit
Exit the interface mode
SW3(config)#commit
Commit the configuration
SW3(config)#exit
Exit the configure terminal mode
SW4
 
SW4#configure terminal
Enter configure mode.
SW4(config)#bridge 1 protocol rstp vlan-bridge
Create bridge 1 as an RSTP VLAN-aware bridge.
SW4(config)#vlan database
Entering vlan database
SW4(config-vlan)#vlan 512 bridge 1 state enable
Create VLAN 512 on bridge 1.
SW4(config-vlan)#exit
Exit vlan database
SW4(config)#interface xe1
Configure interface xe1.
SW4(config-if)#switchport
Configure the interface as switch port.
SW4(config-if)#bridge-group 1
Configure interface in bridge group 1.
SW4(config-if)#switchport mode trunk
Configure interface mode as trunk.
SW4(config-if)#switchport trunk allowed vlan all
Allow all VLANs on interface xe1.
SW4(config-if)#exit
Exit config mode.
SW4(config)#interface xe9
Configure interface xe9.
SW4(config-if)#switchport
Configure the interface as switch port.
SW4(config-if)#bridge-group 1
Configure interface in bridge group 1.
SW4(config-if)#switchport mode trunk
Configure interface mode as trunk.
SW4(config-if)#switchport trunk allowed vlan all
Allow all VLANs on interface xe9.
SW4(config-if)#exit
Exit the interface mode
SW4(config)#commit
Commit the configuration
SW4(config)#exit
Exit the configure terminal mode
SW5
 
SW5#configure terminal
Enter configure mode.
SW5(config)#bridge 1 protocol rstp vlan-bridge
Create bridge 1 as an RSTP VLAN-aware bridge.
SW5(config)#vlan database
Entering vlan database
SW5(config-vlan)#vlan 512 bridge 1 state enable
Create VLAN 512 on bridge 1.
SW5(config-vlan)#exit
Exit vlan database
SW5(config)#interface xe9
Configure interface xe9.
SW5(config-if)#switchport
Configure the interface as switch port.
SW5(config-if)#bridge-group 1
Configure interface in bridge group 1.
SW5(config-if)#switchport mode trunk
Configure interface mode as trunk.
SW5(config-if)#switchport trunk allowed vlan all
Allow all VLANs on interface xe9.
SW5(config-if)#exit
Exit config mode.
SW5(config)#ethernet cfm domain-type character-string domain-name mdnam level 7 mip-creation default
Create cfm domain with type as character string and set mip creation criteria to default.
SW5(config-ether-cfm)#service ma-type string ma-name testtm
Create ma type as string and set mip creation criteria to default.
SW5(config-ether-cfm-ma)#vlan 25 bridge 1
Configure vlan-id to associate the vlan to the MA
SW5(config-ether-cfm-ma)#mip-creation default
Set the mip creation criteria to default for the MA
SW5(config-ether-cfm-ma)#ethernet cfm mep down mpid 1 active true xe9
Create down mep on xe9.
SW5(config-ether-cfm-ma-mep)#cc multicast state enable
Enable cc multicast.
SW5(config-ether-cfm-ma-mep)#exit-ether-ma- mep-mode
Exit CFM MEP configuration mode
SW5(config-ether-cfm-ma)#mep crosscheck mpid 2
Configure crosscheck to remote MEP in VLAN 512.
SW5(config-ether-cfm-ma)#cc interval 10ms
Enable cc interval for 10 millisecond.
SW5(config-ether-cfm-ma)#exit-ether-ma-mode
Exit CFM MA configuration mode.
SW5(config-ether-cfm)#exit
Exit ethernet CFM mode.
SW5(config)#commit
Commit the configuration
SW5(config)#exit
Exit the configure terminal mode
Validation
SW1#ping ethernet mac 3c2c.9926.e683 unicast source 2 domain mdnam vlan 512 bridge 1
success rate is 100 (5/5)
 
 
SW1#traceroute ethernet 3c2c.9926.e683 mepid 2 domain mdnam
MP Mac Hops Relay-action Ingress/Egress Ingress/Egress action
3c2c.9926.e683 1 RlyHit Ingress IngOK
 
SW1#show ethernet cfm maintenance-points local mep domain mdnam ma-name testtm
MPID Dir Lvl VLAN CC-Stat HW-Status CC-Intvl MAC-Address Def Port MD Name
------------------------------------------------------------------------------
--
2 Dn 7 512 Enable Installed 10 ms 6cb9.c567.721d F ce49 mdnam
 
SW1#show ethernet cfm maintenance-points remote domain mdnam ma-name testtm MEPID RMEPID LEVEL VLAN Rx CCM RDI PEER-MAC TYPE
------------------------------------------------------------------------------
-2 1 7 512 Yes False 3c2c.9926.e683 Configured
 
SW1#show ethernet cfm ma status domain mdnam ma testtm
MA NAME VLAN STATUS
-------------------------------------------
testtm 512 Active