OcNOS-SP : 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 Y.1731Topology
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
 
 
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 statistics
Continuity Check Messages
CCM Sent : 184876
CCM Received : 21651
 
Loop Back Messages
LBM Sent : 10
LBR Received(Valid) : 10
LBR Received(Bad msdu) : 0
LBR Received(Out-of-Seq): 0
 
Link Trace Messages
LTM Sent : 1
LTR Sent : 0
LTR Received(Valid) : 1
LTR Received(unexpected): 0
 
SW1#show ethernet cfm maintenance-points local mep domain mdnam
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
MEPID RMEPID LEVEL LAN 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 NAME VLAN STATUS
-------------------------------------------
testtm 512 Active
 
Continuity Check Message (CCM) Over VPWS
Note: The MEP should not be created on a network interface with L3 component (support is only for UpMep on VPWS).
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 config mode.
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 interface mode.
SW1(config)#commit
Commit the configuration
SW1(config)#exit
Exit the configure terminal mode
SW2
 
SW2#configure terminal
Enter configure mode.
SW2(config)#interface ce0
Configure interface ce0.
SW2(config-if)#switchport
Configure interface as a switch port.
SW2(config-if)#exit
Exit interface mode.
SW2(config)#interface xe0
Configure interface xe0.
SW2(config-if)#no switchport
Configure interface as router port.
SW2(config-if)#ip address 10.0.0.1/24
Assign IP address to router port xe0
SW2(config-if)#no shutdown
Making the interface up
SW2(config-if)#exit
Exit interface mode.
SW2(config)#interface lo
Configure interface lo
SW2(config-if)#ip address 1.1.1.1/32 secondary
Configure secondary IP address to loopback interface .
SW2(config-if)#exit
Exit interface mode.
SW2(config)#router ospf 100
Configure ospf
SW2(config-router)#network 10.0.0.0/24 area 0
Advertising 10 network
SW2(config-router)#network 1.1.1.1/32 area 0
Advertising loopback IP
SW2(config-router)#exit
Exit router mode.
SW2(config)#router rsvp
Configuring rsvp
SW2(config-router)#hello-receipt
Configuring hello reception
SW2(config-router)#no php
Configuring device as not a PHP
SW2(config-router)#revert-timer 10
Configuring reversion time of RSVP
SW2(config-router)#exit
Exit router mode.
SW2(config)#rsvp-trunk to-1 ipv4
Configuring RSVP path
SW2(config-trunk)#to 2.2.2.2
Configuring first hop
SW2(config-trunk)#to 3.3.3.3
Configuring second hop
SW2(config-trunk)#exit
Exit trunk mode.
SW2(config)#interface xe0
Configuring interface
SW2(config-if)#enable-rsvp
Enabling RSVP in interface
SW2(config-if)#label-switching
Enabling MPLS labeling
SW2(config-if)#enable-ldp ipv4
Enabling ldp on interface
SW2(config-if)#exit
Exit interface mode.
SW2(config)#router ldp
Configuring LDP
SW2(config-router)#targeted-peer ipv4 3.3.3.3
Configuring LDP target peer for PW
SW2(config-router-targeted-peer)#exit-targeted-peer-mode
Exit target peer mode
SW2(config-router)#no multicast-hellos
Disabling LDP multicast
SW2(config-router)#exit
Exit router mode.
SW2(config)#mpls l2-circuit ETH-2001 1 3.3.3.3
Creating VPWS PW
(config-pseudowire)#exit
Exit pseudowire config mode.
SW2(config)#service-template ETH-2001
Configuring service template profile for PW
SW2(config-svc)#match outer-vlan 200
Configuring match condition
SW2(config-svc)# rewrite ingress push 2000
Configuring action for match
SW2(config-svc)#exit
Exit service template mode
SW2(config)#interface ce0
Configuring interface
SW2(config-if)#mpls-l2-circuit ETH-2001 service-template ETH-2001
Mapping VPWS in AC
SW2(config-if)#exit
Exit interface mode.
SW2(config)#hardware-profile filter cfm-domain-name-str enable
Enabling HW filter for character string domain name
SW2(config)#ethernet cfm domain-type character-string domain-name 12345 level 7 mip-creation none
Configuring CFM domain over VPWS
SW2(config-ether-cfm-mpls-md)#service ma-type string ma-name 43981 mip-creation none
Creating MA for domain
SW2(config-ether-cfm-mpls-md-ma)#cc interval 100ms
Configuring CFM interval
SW2(config-ether-cfm-mpls-md-ma)#mep crosscheck mpid 1
Configuring remote mep
SW2(config-ether-cfm-mpls-md-ma)#ethernet cfm mep up mpid 4001 active true vpws ETH-2001
Configuring local mep and mapping the same with vpws ser-vice
SW2(config-ether-cfm-mpls-ma-mep)#cc multicast state enable
Enabling the CFM multicast
SW2(config-ether-cfm-mpls-ma-mep)#exit-ether-ma-mep-mode
Exit CFM MEP configuration mode
SW2(config-ether-cfm-mpls-md-ma)# exit-ether-ma-mode
Exit Ethernet CFM MD configuration mode
SW2(config-ether-cfm-mpls-md)# exit
Configuring LM profile
SW2(config)#ethernet cfm loss-measurement profile-name lmm
Configuring LM profile
SW2(config-cfm-lm)#measurement-type lmm
Configuring measurement type as LMM
SW2(config-cfm-lm)#message-period 3
Configuring message period
SW2(config-cfm-lm)#measurement-interval 1
Configuring measurement interval
SW2(config-cfm-lm)#intervals-stored 3
Configuring number of interval to be stored
SW2(config-cfm-lm)#exit
Exit cfm loss measurement mode
SW2(config)#commit
Commit the configuration
SW2(config)#exit
Exit the configure terminal mode
SW3
 
SW3#configure terminal
Enter configure mode.
SW3(config)#interface xe1
Configure interface
SW3(config-if)#no switchport
Configure interface as router port.
SW3(config-if)#ip address 20.0.0.1/24
Assign IP address to router port
SW3(config-if)#no shutdown
Making the interface up
SW3(config-if)#exit
Exit interface mode.
SW3(config)#interface xe17
Configure interface
SW3(config-if)#no switchport
Configure interface as router port.
SW3(config-if)#ip address 10.0.0.2/24
Assign IP address to router port
SW3(config-if)#no shutdown
Making the interface up
SW3(config-if)#exit
Exit interface mode.
SW3(config)#interface lo
Configure interface lo
SW3(config-if)#ip address 2.2.2.2/32 secondary
Configure secondary IP address to loopback interface .
SW3(config-if)#exit
Exit interface mode.
SW3(config)#router ospf 100
Configure ospf
SW3(config-router)#network 10.0.0.0/24 area 0
Advertising 10 network
SW3(config-router)#network 20.0.0.0/24 area 0
Advertising 10 network
SW3(config-router)#network 2.2.2.2/32 area 0
Advertising loopback IP
SW3(config-router)#exit
Exit router mode.
SW3(config)#router rsvp
Configuring rsvp
SW3(config-router)#hello-receipt
Configuring hello reception
SW3(config-router)#no php
Configuring device as not a PHP
SW3(config-router)#revert-timer 10
Configuring reversion time of RSVP
SW3(config-router)#exit
Exit router mode.
SW3(config)#interface xe1
Configuring interface
SW3(config-if)#enable-rsvp
Enabling RSVP in interface
SW3(config-if)#label-switching
Enabling MPLS labeling
SW3(config-if)#enable-ldp ipv4
Enabling ldp on interface
SW3(config-if)#exit
Exit interface mode.
SW3(config)#interface xe17
Configuring interface
SW3(config-if)#enable-rsvp
Enabling RSVP in interface
SW3(config-if)#label-switching
Enabling MPLS labeling
SW3(config-if)#enable-ldp ipv4
Enabling ldp on interface
SW3(config-if)#exit
Exit interface mode.
SW3(config)#commit
Commit the configuration
SW3(config)#exit
Exit configure terminal mode
SW4
 
SW4#configure terminal
Enter configure mode.
SW4(config)#interface xe9
Configure interface
SW4(config-if)#switchport
Configure interface as switch port.
SW4(config-if)#exit
Exit interface mode.
SW4(config)#interface xe1
Configure interface
SW4(config-if)#no switchport
Configure interface as router port.
SW4(config-if)#ip address 20.0.0.2/24
Assign IP address to router port
SW4(config-if)#no shutdown
Making the interface up
SW4(config-if)#exit
Exit interface mode.
SW4(config)#interface lo
Configure interface lo
SW4(config-if)#ip address 3.3.3.3/32 secondary
Configure secondary IP address to loopback interface .
SW4(config-if)#exit
Exit interface mode.
SW4(config)#router ospf 100
Configure ospf
SW4(config-router)#network 20.0.0.0/24 area 0
Advertising 10 network
SW4(config-router)#network 3.3.3.3/32 area 0
Advertising loopback IP
SW4(config-router)#exit
Exit router mode.
SW4(config)#router rsvp
Configuring rsvp
SW4(config-router)#hello-receipt
Configuring hello reception
SW4(config-router)#no php
Configuring device as not a PHP
SW4(config-router)#revert-timer 10
Configuring reversion time of RSVP
SW4(config-router)#exit
Exit router mode.
SW4(config)#rsvp-trunk to-1 ipv4
Configuring RSVP path
SW4(config-trunk)#to 2.2.2.2
Configuring first hop
SW4(config-trunk)#to 1.1.1.1
Configuring second hop
SW4(config-trunk)#exit
Exit trunk mode.
SW4(config)#interface xe1
Configuring interface
SW4(config-if)#enable-rsvp
Enabling RSVP in interface
SW4(config-if)#label-switching
Enabling MPLS labeling
SW4(config-if)#enable-ldp ipv4
Enabling ldp on interface
SW4(config-if)#exit
Exit interface mode.
SW4(config)#router ldp
Configuring LDP
SW4(config-router)#targeted-peer ipv4 1.1.1.1
Configuring LDP target peer for PW
SW4(config-router-targeted-peer)#exit-targeted-peer-mode
Exit target peer mode
SW4(config-router)#no multicast-hellos
Disabling LDP multicast
SW4(config-router)#exit
Exit router mode.
SW4(config)#mpls l2-circuit ETH-2001 1 1.1.1.1
Creating VPWS PW
(config-pseudowire)#exit
Exit pseudowire config mode.
SW4(config)#service-template ETH-2001
Configuring service template profile for PW
SW4(config-svc)# match outer-vlan 200
Configuring match condition
SW4(config-svc)# rewrite ingress push 2000
Configuring action for match
SW4(config-svc)#exit
Exit service template mode
SW4(config)#interface xe9
Configuring interface
SW4(config-if)#mpls-l2-circuit ETH-2001 service-template ETH-2001
Mapping VPWS in AC
SW4(config-if)#exit
Exit interface mode.
SW4(config)#hardware-profile filter cfm-domain-name-str enable
Enabling HW filter for character string domain name
SW4(config)#ethernet cfm domain-type character-string domain-name 12345 level 7 mip-creation none
Configuring CFM domain over VPWS
SW4(config-ether-cfm-mpls-md)#service ma-type string ma-name 43981 mip-creation none
Creating MA for domain
SW4(config-ether-cfm-mpls-md-ma)#cc interval 100ms
Configuring CFM interval
SW4(config-ether-cfm-mpls-md-ma)#mep crosscheck mpid 4001
Configuring remote mep
SW4(config-ether-cfm-mpls-md-ma)#ethernet cfm mep up mpid 1 active true vpws ETH-2001
Configuring local mep and mapping the same with vpws ser-vice
SW4(config-ether-cfm-mpls-ma-mep)#cc multicast state enable
Enabling the CFM multicast
SW4(config-ether-cfm-mpls-ma-mep)#ethernet cfm loss-measurement reply lmm
Configuring LMR
SW4(config-ether-cfm-mpls-ma-mep)#exit-ether-ma-mep-mode
Exit CFM MEP configuration mode
SW4(config-ether-cfm-mpls-md-ma)#exit-ether-ma-mode
Exit CFM MA configuration mode
SW4(config-ether-cfm-mpls-md)#exit
Exit Ethernet CFM MD configuration mode
SW4(config)#commit
Commit the configuration
SW4(config)#exit
Exit 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 config mode.
SW5(config)#interface xe9
Configure interface ce49.
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 ce49.
SW5(config-if)#exit
Exit interface mode.
SW5(config)#commit
Commit the configuration
SW5(config)#exit
Exit configure terminal mode
Validation
SW1#show ethernet cfm maintenance-points remote domain 12345
MEPID RMEPID LEVEL Rx CCM RDI PEER-MAC TYPE
----------------------------------------------------------------------
200 100 7 Yes False b86a.97d2.27d0 Configured
 
SW1#show ethernet cfm ma status domain 12345
MA NAME STATUS
-------------------------------
43981 Active