OcNOS SP : Carrier Ethernet Guide : Carrier Ethernet Configuration : Y.1731 Performance Monitoring Configurations
Y.1731 Performance Monitoring Configurations
ITU-T Y.1731 supports Performance Monitoring feature for Ethernet. Loss and Delay measurement can be achieved which can be significantly used to identify network problems before they impact. SLM is used to calculate the frame loss between endpoints using synthetic frames. Transmit and received counters at endpoints for received vs dropped are used to measure frame loss. CCM and LMM are used to calculate the frame loss of data traffic between endpoints. On CCM, loss measurement is encapsulated as part of CFM packets and it's dual ended. For LMM, separate loss measurement message and reply is shared on configured interval between endpoints to calculate the data frame loss. CCM and LMM service frames will have the counters which maintain a count of transmitted and received data frames between a pair of MEPs.Ethernet frame delay measurement provides fine control to operators for triggering delay measurement on a given service and can be used to monitor SLAs. Ethernet frame delay measure-ment also collects other useful information, such as worst and best case delays, average delay, and aver-age delay variation.
Synthetic Loss Measurement (SLM) over L2 Bridge
Topology
CFM Y.1731 SLM over L2 Bridge 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
Synthetic Loss Measurement (SLM) over L2 Bridge
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)#commit
Commit the candidate configuration to the running
configuration.
SW1(config-vlan)#exit
Exit config mode.
SW1(config)#int 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-vlan)#commit
Commit the candidate configuration to the running
configuration.
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 set mip creation criteria to de-fault.
SW1(config-ether-cfm-ma)#vlan 512 bridge 1
Configure primary VLAN ID
SW1(config-ether-cfm-ma)#mip-creation default
Configure MIP creation permission
SW1(config-ether-cfm-ma)#ethernet cfm mep down mpid 2 active true ce49
Create down mep for local-vid 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 ethernet cfm ma-mep 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 ethernet ma mode.
SW1(config-ether-cfm)#commit
Commit the candidate configuration to the running
configuration.
SW1(config-ether-cfm)#exit
Exit ethernet CFM mode.
SW1(config)#ethernet cfm loss-measurement profile-name SLM
Creating loss-measurement profile for SLM
SW1(config-cfm-lm)#measurement-interval 1
Specify the measurement-interval in minutes
SW1(config)#intervals-stored 3
Specify the number of history interval to be stored
SW1(config)# message-period 1
Specify message period interval time
SW1(config)#commit
Commit the candidate configuration to the running
configuration.
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 type customer bridge 1 state enable
Create VLAN 512 for customer bridge.
SW2(config-vlan)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-vlan)#exit
Exit config mode.
SW2(config)#interface ce0
Configure interface ce0.
SW2(config)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-if)#switchport
Configure interface as a 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 customer VLANs on interface ce0.
SW2(config-if)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-if)#exit
Exit interface mode.
SW2(config)#int xe0
Configure interface xe0
SW2(config-if)#switchport
Configure 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)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-if)#exit
Exit config 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)#commit
Commit the candidate configuration to the running
configuration.
SW3(config-vlan)#exit
Exit config mode.
SW3(config)#int 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)#commit
Commit the candidate configuration to the running
configuration.
SW3(config-if)#exit
Exit config mode.
SW3(config)#int 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 config 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)#commit
Commit the candidate configuration to the running
configuration.
SW4(config-vlan)#exit
Exit config mode.
SW4(config)#int 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)#commit
Commit the candidate configuration to the running
configuration.
SW4(config-if)#exit
Exit config mode.
SW4(config)#int 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 config 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)#commit
Commit the candidate configuration to the running
configuration.
SW5(config-vlan)#exit
Exit config mode.
SW5(config)#int 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)#commit
Commit the candidate configuration to the running
configuration.
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 512 bridge 1
Configure primary VLAN ID
SW5(config-ether-cfm-ma)#mip-creation default
Configure MIP creation permission
SW5(config-ether-cfm-ma)#ethernet cfm mep down mpid 1 active true xe9
Create down mep for local-vid on xe9
SW5(config-ether-cfm-ma-mep)#cc multicast state enable
Enable cc multicast.
SW5(config-ether-cfm-ma-mep)#ethernet cfm loss-measurement reply slm
Generate and send SLR responses tacked
SW5(config-ether-cfm-ma-mep)#exit-ether-ma- mep-mode
Exit ethernet cfm ma-mep 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 ethernet ma mode.
SW5(config-ether-cfm)#commit
Commit the candidate configuration to the running
configuration.
SW5(config-ether-cfm)#exit
Exit ethernet CFM mode.
Commands to initiate/abort loss measurement
SW1#loss-measurement type proactive profile-name <WORD> rmep mac-address
<HHHH.HHHH.HHHH>mep <MEPID> domain < DOMAIN_NAME> ma <MA NAME>
 
SW1#abort loss-measurement mep <MEPID> domain <DOMAIN_NAME> MA <MA NAME>
Validation
SW1#ping ethernet mac 3c2c.9926.e683 unicast source 2 domain mdnam ma
 
 
SW1#traceroute ethernet 3c2c.9926.e683 mepid 2 domain mdnam ma testtm
MP Mac Hops Relay-action Ingress/Egress Ingress/Egress ac-tion
3c2c.9926.e683 1 RlyHit Ingress IngOK
 
SW1#loss-measurement type proactive profile-name SLM rmep mac-address 3c2c.9926.e683 mep 2 domain mdnam ma testtm
 
 
SW1#show ethernet cfm loss-measurement mep 2 domain mdnam ma testtm
MEP: 2 MA: testtm
CURRENT:
Measurement ID :1
Suspect :True
Measurement Type :slm
Elapsed time(sec) :7
Start Time :2019 Apr 30 14:43:41
Near End loss :0
Far End loss :0
Near End accumulated loss : 0
Far End accumulated loss : 0
SW1# abort loss-measurement mep 2 domain mdnam
Synthetic Loss Measurement (SLM) Over VPWS
CFM Y.1731 SLM over VPWS Topology
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
SW1(config-if)#exit
Exit config 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)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-if)#exit
Exit interface mode.
SW2(config)#interface xe0
Configure interface xe1.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-router)#exit
Exit router mode.
SW2(config)#mpls l2-circuit ETH-2001 1 3.3.3.3
Creating VPWS PW
SW2(config-pseudowire)#commit
Commit the candidate configuration to the running
configuration.
SW2(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 10
Configuring match condition
SW2(config-svc)# rewrite ingress push 2000
Configuring action for match
SW2(config-svc)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-svc)#exit
Exit service template mode
SW2(config)#interface ce0
Configuring interface
SW2(config-if)#mpls-l2-circuit ETH-2001 ser-vice-template ETH-2001
Mapping VPWS in AC
SW2(config-if)#commit
Commit the candidate configuration to the running
configuration.
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 cross-check 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 mul-ticast state enable
Enabling the CFM multicast
SW2(config-ether-cfm-mpls-ma-mep)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-ether-cfm-mpls-ma-mep)#exit
Exit CFM MEP configuration mode
SW2(config-ether-cfm-mpls-md-ma)#exit
Exit CFM MA configuration mode
SW2(config-ether-cfm-mpls-md)#exit
End current mode and down to previous mode
SW2(config)#ethernet cfm loss-measurement profile-name slm
Configuring LM profile
SW2(config-cfm-lm)#measurement-type slm
Configuring measurement type as SLM
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)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-cfm-lm)#end
Exit config mode
SW3
 
SW3#configure terminal
Enter configure mode.
SW3(config)#interface xe17
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)#commit
Commit the candidate configuration to the running
configuration.
SW3(config-if)#exit
Exit interface mode.
SW3(config)#interface xe1
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
SW3(config-if)#exit
Exit interface 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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
SW4(config-router)#exit
Exit router mode.
SW4(config)#mpls l2-circuit ETH-2001 1 1.1.1.1
Creating VPWS PW
SW4(config-pseudowire)#commit
Commit the candidate configuration to the running
configuration.
SW4(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)#commit
Commit the candidate configuration to the running
configuration.
SW4(config-svc)#exit
Exit service template mode
SW4(config)#interface xe9
Configuring interface
SW4(config-if)#mpls-l2-circuit ETH-2001 ser-vice-template ETH-2001
Mapping VPWS in AC
SW4(config-if)#commit
Commit the candidate configuration to the running
configuration.
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 charac-ter-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
Creating MA for domain
SW4(config-ether-cfm-ma)#mip-creation none
Configuring MIP creation permission
SW4(config-ether-cfm-mpls-md-ma)#cc interval 100ms
Configuring CFM interval
SW4(config-ether-cfm-mpls-md-ma)#cc interval 3
Configuring CFM interval
SW4(config-ether-cfm-mpls-md-ma)#mep cross-check 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 mul-ticast state enable
Enabling the CFM multicast
SW4(config-ether-cfm-mpls-ma-mep)#ethernet cfm loss-measurement reply slm
Configuring SLR
SW4(config-ether-cfm-mpls-ma-mep)#commit
Commit the candidate configuration to the running
configuration.
SW4(config-ether-cfm-mpls-ma-mep)#end
Exit config 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)#commit
Commit the candidate configuration to the running
configuration.
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-vlan)#commit
Commit the candidate configuration to the running
configuration.
SW5(config-if)#exit
Exit config mode.
Commands to initiate/abort loss measurement
SW2#loss-measurement type proactive profile-name <WORD> rmep mac-address
<HHHH.HHHH.HHHH>mep <MEPID> domain < DOMAIN_NAME>
 
SW2#abort loss-measurement mep <MEPID> domain <DOMAIN_NAME>
Validation
SW2#loss-measurement type proactive profile-name slm rmep mac-address 3c2c.9926.e683 mep 1 domain 12345
 
SW2#show ethernet cfm loss-measurement mep 1 domain 12345
MEP: 2 MA: 43981
CURRENT:
Measurement ID : 1
Suspect : False
Measurement Type : slm
Elapsed time(sec) : 7
Start Time : 2019 Apr 30 14:43:41
Near End loss : 0
Far End loss : 0
Near End accumulated loss : 0
Far End accumulated loss : 0
 
SW2# abort loss-measurement mep 1 domain 12345
 
Synthetic Loss Measurement (SLM) Over ELINE
CFM Y.1731 SLM over ELINE Topology
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
SW1(config-if)#exit
Exit config 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)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-if)#exit
Exit interface mode.
SW2(config)#interface xe0
Configure interface xe1.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-router)#exit
Exit router mode.
SW2(config)#mpls l2-circuit ETH-2001 1 3.3.3.3
Creating VPWS PW
SW2(config-pseudowire)#commit
Commit the candidate configuration to the running
configuration.
SW2(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 10
Configuring match condition
SW2(config-svc)# rewrite ingress push 2000
Configuring action for match
SW2(config-svc)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-svc)#exit
Exit service template mode
SW2(config)#interface ce0
Configuring interface
SW2(config-if)#mpls-l2-circuit ETH-2001 ser-vice-template ETH-2001
Mapping VPWS in AC
SW2(config-if)#commit
Commit the candidate configuration to the running
configuration.
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 cross-check 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 mul-ticast state enable
Enabling the CFM multicast
SW2(config-ether-cfm-mpls-ma-mep)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-ether-cfm-mpls-ma-mep)#exit
Exit CFM MEP configuration mode
SW2(config-ether-cfm-mpls-md-ma)#exit
Exit CFM MA configuration mode
SW2(config-ether-cfm-mpls-md)#exit
End current mode and down to previous mode
SW2(config)#ethernet cfm loss-measurement profile-name slm
Configuring LM profile
SW2(config-cfm-lm)#measurement-type slm
Configuring measurement type as SLM
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)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-cfm-lm)#end
Exit config mode
SW3
 
SW3#configure terminal
Enter configure mode.
SW3(config)#interface xe17
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)#commit
Commit the candidate configuration to the running
configuration.
SW3(config-if)#exit
Exit interface mode.
SW3(config)#interface xe1
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
SW3(config-if)#exit
Exit interface 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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
SW4(config-router)#exit
Exit router mode.
SW4(config)#mpls l2-circuit ETH-2001 1 1.1.1.1
Creating VPWS PW
SW4(config-pseudowire)#commit
Commit the candidate configuration to the running
configuration.
SW4(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)#commit
Commit the candidate configuration to the running
configuration.
SW4(config-svc)#exit
Exit service template mode
SW4(config)#interface xe9
Configuring interface
SW4(config-if)#mpls-l2-circuit ETH-2001 ser-vice-template ETH-2001
Mapping VPWS in AC
SW4(config-if)#commit
Commit the candidate configuration to the running
configuration.
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 charac-ter-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
Creating MA for domain
SW4(config-ether-cfm-ma)#mip-creation none
Configuring MIP creation permission
SW4(config-ether-cfm-mpls-md-ma)#cc interval 100ms
Configuring CFM interval
SW4(config-ether-cfm-mpls-md-ma)#cc interval 3
Configuring CFM interval
SW4(config-ether-cfm-mpls-md-ma)#mep cross-check 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 mul-ticast state enable
Enabling the CFM multicast
SW4(config-ether-cfm-mpls-ma-mep)#ethernet cfm loss-measurement reply slm
Configuring SLR
SW4(config-ether-cfm-mpls-ma-mep)#commit
Commit the candidate configuration to the running
configuration.
SW4(config-ether-cfm-mpls-ma-mep)#end
Exit config 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)#commit
Commit the candidate configuration to the running
configuration.
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-vlan)#commit
Commit the candidate configuration to the running
configuration.
SW5(config-if)#exit
Exit config mode.
Commands to initiate/abort loss measurement
SW2#loss-measurement type proactive profile-name <WORD> rmep mac-address
<HHHH.HHHH.HHHH>mep <MEPID> domain < DOMAIN_NAME>
 
SW2#abort loss-measurement mep <MEPID> domain <DOMAIN_NAME>
Validation
SW2#loss-measurement type proactive profile-name slm rmep mac-address 3c2c.9926.e683 mep 1 domain 12345
 
SW2#show ethernet cfm loss-measurement mep 1 domain 12345
MEP: 2 MA: 43981
CURRENT:
Measurement ID : 1
Suspect : False
Measurement Type : slm
Elapsed time(sec) : 7
Start Time : 2019 Apr 30 14:43:41
Near End loss : 0
Far End loss : 0
Near End accumulated loss : 0
Far End accumulated loss : 0
 
SW2# abort loss-measurement mep 1 domain 12345
 
Loss Measurement Message(LMM) over L2 Bridge
Topology
CFM Y.1731 LMM over L2 Bridge 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-lm 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)#commit
Commit the candidate configuration to the running
configuration.
SW1(config-vlan)#exit
Exit vlan database
SW1(config)#int 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)#commit
Commit the candidate configuration to the running
configuration.
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 set mip creation criteria to default.
SW1(config-ether-cfm)#vlan 512
Configure primary VLAN ID
SW1(config-ether-cfm-ma)#mip-creation default
Configure MIP creation permission
SW1(config-ether-cfm-ma)#ethernet cfm mep down mpid 2 active true local-vid 512 ce49
Create down mep for local-vid 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 ethernet cfm ma-mep 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 ethernet ma mode.
SW1(config-ether-cfm)#commit
Commit the candidate configuration to the running
configuration.
SW1(config-ether-cfm)#exit
Exit ethernet CFM mode.
SW1(config)# ethernet cfm loss-measurement profile-name LMM
Creating loss-measurement profile for LMM
SW1(config-cfm-lm)# measurement-type lmm
Specify the measurement type
SW1(config-cfm-lm)# measurement-interval 1
Specify the measurement-interval in minutes
SW1(config)# intervals-stored 3
Specify the number of history interval to be stored
SW1(config)# message-period 1s
Specify message period interval time
SW1(config)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-vlan)#exit
Exit vlan database
SW2(config)#int 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)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-if)#exit
Exit config mode.
SW2(config)#int 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)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-if)#exit
Exit config 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)#commit
Commit the candidate configuration to the running
configuration.
SW3(config-vlan)#exit
Exit vlan database
SW3(config)#int 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)#commit
Commit the candidate configuration to the running
configuration.
SW3(config-if)#exit
Exit config mode.
SW3(config)#int 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)#commit
Commit the candidate configuration to the running
configuration.
SW3(config-if)#exit
Exit config 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)#commit
Commit the candidate configuration to the running
configuration.
SW4(config-vlan)#exit
Exit vlan database
SW4(config)#int 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)#commit
Commit the candidate configuration to the running
configuration.
SW4(config-if)#exit
Exit config mode.
SW4(config)#int 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)#commit
Commit the candidate configuration to the running
configuration.
SW4(config-if)#exit
Exit config 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-if)#commit
Commit the candidate configuration to the running
configuration.
SW5(config-vlan)#exit
Exit vlan database
SW5(config)#int 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)#commit
Commit the candidate configuration to the running
configuration.
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 512 bridge 1
Configure primary VLAN ID
SW5(config-ether-cfm-ma)#mip-creation default
Configure MIP creation permission
SW5(config-ether-cfm-ma)#ethernet cfm mep down mpid 1 active true xe9
Create down mep for local-vid on xe9
SW5(config-ether-cfm-ma-mep)#cc multicast state enable
Enable cc multicast.
SW5(config-ether-cfm-ma-mep)#ethernet cfm loss-measurement reply lmm
Generate and send LMR responses tacked
SW5(config-ether-cfm-ma-mep)#exit-ether-ma-mep-mode
Exit ethernet cfm ma-mep 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 ethernet ma mode.
SW5(config-ether-cfm-ma)#commit
Commit the candidate configuration to the running
configuration.
SW5(config-ether-cfm)#exit
Exit ethernet CFM mode.
Commands to initiate/abort loss measurement
loss-measurement type on-demand profile-name <WORD> rmep mac-address <HHHH.HHHH.HHHH> start-time <immediate|relative|absolute> stop-time <none|absolute|relative> repetition-period <REP-TIME> mep <MEPID> domain < DOMAIN_NAME> ma <MA_NAME>
 
loss-measurement type proactive profile-name <WORD> rmep mac-address <HHHH.HHHH.HHHH>mep <MEPID> domain < DOMAIN_NAME> ma <MA_NAME>
 
abort loss-measurement mep <MEPID> domain <DOMAIN_NAME> ma <MA_NAME>
 
clear ethernet cfm loss-measurement mep <MEPID> domain <DOMAIN_NAME> ma <MA_NAME>
Validation
SW1#ping ethernet mac 3c2c.9926.e683 unicast source 2 domain mdnam ma
 
SW1#traceroute ethernet 3c2c.9926.e683 mepid 2 domain mdnam ma testtm
MP Mac Hops Relay-action Ingress/Egress Ingress/Egress action
3c2c.9926.e683 1 RlyHit Ingress IngOK
 
SW1# loss-measurement type proactive profile-name LMM rmep mac-address 3c2c.9926.e683 mep 2 domain mdnam ma testtm
 
SW1# show ethernet cfm loss-measurement mep 2 domain mdnam ma testtm
MEP: 2 MA: testtm
CURRENT:
Measurement ID : 1
Suspect : False
Measurement Type : lmm
Elapsed time(sec) : 24
Start Time : 2019 Jul 21 00:10:36
Near End loss : 0
Far End loss : 0
Near End accumulated loss : 0
Far End accumulated loss : 0
 
SW1# abort loss-measurement mep 2 domain mdnam ma testtm
Loss Measurement Message (LMM) Over VPWS
CFM Y.1731 LMM over VPWS Topology
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
SW1(config-if)#exit
Exit config 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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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-vlan)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-router)#exit
Exit router mode.
SW2(config)#mpls l2-circuit ETH-2001 1 3.3.3.3
Creating VPWS PW
SW2(config-pseudowire)#commit
Commit the candidate configuration to the running
configuration.
SW2(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)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-svc)#exit
Exit service template mode
SW2(config)#interface ce0
Configuring interface
SW2(config-if)#mpls-l2-circuit ETH-2001 ser-vice-template ETH-2001
Mapping VPWS in AC
SW2(config-if)#commit
Commit the candidate configuration to the running
configuration.
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 cross-check 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 mul-ticast state enable
Enabling the CFM multicast
SW2(config-ether-cfm-mpls-ma-mep)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-ether-cfm-mpls-ma-mep)#exit
Exit CFM MEP configuration mode
SW2(config-ether-cfm-mpls-md-ma)#exit
Exit CFM MA configuration mode
SW2(config-ether-cfm-mpls-md)#exit
End current mode and down to previous mode
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)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-cfm-lm)#end
Exit config mode
SW3
 
SW3#configure terminal
Enter configure mode.
SW3(config)#interface xe17
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)#commit
Commit the candidate configuration to the running
configuration.
SW3(config-if)#exit
Exit interface mode.
SW3(config)#interface xe1
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
SW3(config-if)#exit
Exit interface 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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
SW4(config-router)#exit
Exit router mode.
SW4(config)#mpls l2-circuit ETH-2001 1 1.1.1.1
Creating VPWS PW
SW4(config-pseudowire)#commit
Commit the candidate configuration to the running
configuration.
SW4(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)#commit
Commit the candidate configuration to the running
configuration.
SW4(config-svc)#exit
Exit service template mode
SW4(config)#interface xe9
Configuring interface
SW4(config-if)#mpls-l2-circuit ETH-2001 ser-vice-template ETH-2001
Mapping VPWS in AC
SW4(config-if)#commit
Commit the candidate configuration to the running
configuration.
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 charac-ter-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
Creating MA for domain
SW4(config-ether-cfm-ma)#mip-creation none
Configuring MIP creation permission
SW4(config-ether-cfm-mpls-md-ma)#cc interval 100ms
Configuring CFM interval
SW4(config-ether-cfm-mpls-md-ma)#mep cross-check 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 mul-ticast 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)#commit
Commit the candidate configuration to the running
configuration.
SW4(config-ether-cfm-mpls-ma-mep)#end
Exit config 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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
SW5(config-if)#exit
Exit config mode.
Commands to initiate/abort loss measurement
SW2#loss-measurement type proactive profile-name <WORD> rmep mac-address
<HHHH.HHHH.HHHH>mep <MEPID> domain < DOMAIN_NAME>
 
SW2#abort loss-measurement mep <MEPID> domain <DOMAIN_NAME>
Validation
SW2#loss-measurement type proactive profile-name lmm rmep mac-address 3c2c.9926.e683 mep 1 domain 12345
 
SW2#show ethernet cfm loss-measurement mep 1 domain 12345
MEP: 2 MA: 43981
CURRENT:
Measurement ID : 1
Suspect : False
Measurement Type : lmm
Elapsed time(sec) : 7
Start Time : 2019 Apr 30 14:43:41
Near End loss : 0
Far End loss : 0
Near End accumulatedloss : 0
Far End accumulated loss : 0
SW2# abort loss-measurement mep 1 domain 12345
Delay Measurement (DM) over L2 Bridge
Topology
CFM Y.1731 DM over L2 Bridge 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 ingress-acl enable
hardware-profile statistics cfm-lm 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)#commit
Commit the candidate configuration to the running
configuration.
SW1(config-vlan)#exit
Exit vlan database
SW1(config)#int 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)#commit
Commit the candidate configuration to the running
configuration.
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 set mip creation criteria to default.
SW1(config-ether-cfm-ma)#vlan 512 bridge 1
Configure primary VLAN ID
SW1(config-ether-cfm-ma)#mip-creation default
Configure MIP creation permission
SW1(config-ether-cfm-ma)#ethernet cfm mep down mpid 2 active true ce49
Create down mep for local-vid 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 ethernet cfm ma-mep 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 ethernet ma mode.
SW1(config-ether-cfm)#commit
Commit the candidate configuration to the running
configuration.
SW1(config-ether-cfm)#exit
Exit ethernet CFM mode.
SW1(config)# ethernet cfm delay-measurement profile-name DM
Creating loss-measurement profile for DM
SW1(config-cfm-dm)# measurement-interval 1
Specify the measurement-interval in minutes
SW1(config-cfm-dm)# intervals-stored 3
Specify the number of history interval to be stored
SW1(config-cfm-dm)# message-period 1s
Specify message period interval time
SW1(config-cfm-dm)# bins-per-fd-interval 4
Specify the number of measurement bins per Measurement Interval for Frame Delay measurements.
SW1(config-cfm-dm)# bins-per-ifdv-interval 3
Specify the number of measurement bins per Measurement Interval for Inter-Frame Delay Variation measurements.
SW1(config-cfm-dm)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-vlan)#exit
Exit vlan database
SW2(config)#int 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)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-if)#exit
Exit config mode.
SW2(config)#int 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)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-if)#exit
Exit config 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)#commit
Commit the candidate configuration to the running
configuration.
SW3(config-vlan)#exit
Exit vlan database
SW3(config)#int 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)#commit
Commit the candidate configuration to the running
configuration.
SW3(config-if)#exit
Exit config mode.
SW3(config)#int 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)#commit
Commit the candidate configuration to the running
configuration.
SW3(config-if)#exit
Exit config 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)#commit
Commit the candidate configuration to the running
configuration.
SW4(config-vlan)#exit
Exit vlan database
SW4(config)#int 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)#commit
Commit the candidate configuration to the running
configuration.
SW4(config-if)#exit
Exit config mode.
SW4(config)#int 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)#commit
Commit the candidate configuration to the running
configuration.
SW4(config-if)#exit
Exit config 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)#commit
Commit the candidate configuration to the running
configuration.
SW5(config-vlan)#exit
Exit vlan database
SW5(config)#int 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)#commit
Commit the candidate configuration to the running
configuration.
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)#vlan 512 bridge 1
Configure primary VLAN ID
SW5(config-ether-cfm-ma)#mip-creation default
Configure MIP creation permission
SW5(config-ether-cfm-ma)#ethernet cfm mep down mpid 1 active true xe9
Create down mep for local-vid on xe9
SW5(config-ether-cfm-ma-mep)#cc multicast state enable
Enable cc multicast.
SW5(config-ether-cfm-ma-mep)# ethernet cfm delay-measurement reply dmm
Generate and send DMM responses tacked
SW5(config-ether-cfm-ma-mep)#exit-ether-ma-mep-mode
Exit ethernet cfm ma-mep 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 ethernet ma mode.
SW5(config-ether-cfm)#commit
Commit the candidate configuration to the running
configuration.
SW5(config-ether-cfm)#exit
Exit ethernet CFM mode.
Commands to initiate/abort on-demand delay measurement
delay-measurement type on-demand profile-name WORD rmep (mac-address MAC|RMEPID) start-time (immediate|relative HH:MM:SS|absolute HH:MM:SS <1-31> MONTH <1993-2035>) repetition-period <6000-4294967295> mep MEPID domain DOMAIN_NAME ma <MA_NAME>
 
abort delay-measurement mep <MEPID> domain <DOMAIN_NAME> ma <MA_NAME>
Validation
SW1#ping ethernet mac 3c2c.9926.e683 unicast source 2 domain mdnam ma
 
SW1#traceroute ethernet 3c2c.9926.e683 mepid 2 domain mdnam ma testtm
MP Mac Hops Relay-action Ingress/Egress Ingress/Egress action
3c2c.9926.e683 1 RlyHit Ingress IngOK
 
SW1# delay-measurement type proactive profile-name DM rmep mac-address 3c2c.9926.e683 mep 2 domain mdnam ma testtm
 
SW1#show ethernet cfm delay-measurement mep 2 domain mdnam ma testtm
MEP : 2
MA : testtm
VLAN ID : 512
Peer MAC Address : 3c2c.9926.e683
 
CURRENT:
======================
RMEP ID : 1
Measurement ID : 12
Measurement Type : DMM
Elapsed time(sec) : 24
Start Time : 2019 Aug 06 13:23:53
Suspect Flag : FALSE
Min Frame Delay(usec) : 13
Max Frame Delay(usec) : 13
Avg Frame Delay(usec) : 13
Min Inter FD Variation(usec): 0
Max Inter FD Variation(usec): 0
Avg Inter FD Variation(usec): 0
 
FRAME DELAY BINS
Bin Number Bin Threshold(usec) Bin Counter
==================================================
1 0 - < 4999 3
2 5000 - < 9999 0
3 10000 - < 14999 0
4 15000 - < Inf 0
 
INTER-FRAME DELAY BINS
Bin Number Bin Threshold(usec) Bin Counter
==================================================
1 0 - < 4999 2
2 5000 - < 9999 0
3 10000 - < Inf 0
 
 
HISTORY STATISTICS
======================
MD : mdnam
MA : testtm
MEP : 2
VLAN ID : 512
RMEP ID : 1
Measurement ID : 10
Measurement Type : DMM
Elapsed time(sec) : 60
End Time : 2019 Aug 06 13:22:52
Suspect Flag : FALSE
Min Frame Delay(usec) : 13
Max Frame Delay(usec) : 13
Avg Frame Delay(usec) : 13
Min Inter FD Variation(usec): 0
Max Inter FD Variation(usec): 0
Avg Inter FD Variation(usec): 0
 
FRAME DELAY BINS
Bin Number Bin Threshold(usec) Bin Counter
==================================================
1 0 - < 4999 6
2 5000 - < 9999 0
3 10000 - < 14999 0
4 15000 - < Inf 0
 
INTER-FRAME DELAY BINS
Bin Number Bin Threshold(usec) Bin Counter
==================================================
1 0 - < 4999 5
2 5000 - < 9999 0
3 10000 - < Inf 0
 
RMEP ID : 1
Measurement ID : 11
Measurement Type : DMM
Elapsed time(sec) : 60
End Time : 2019 Aug 06 13:23:52
Suspect Flag : FALSE
Min Frame Delay(usec) : 13
Max Frame Delay(usec) : 13
Avg Frame Delay(usec) : 13
Min Inter FD Variation(usec): 0
Max Inter FD Variation(usec): 0
Avg Inter FD Variation(usec): 0
 
FRAME DELAY BINS
Bin Number Bin Threshold(usec) Bin Counter
==================================================
1 0 - < 4999 6
2 5000 - < 9999 0
3 10000 - < 14999 0
4 15000 - < Inf 0
 
INTER-FRAME DELAY BINS
Bin Number Bin Threshold(usec) Bin Counter
==================================================
1 0 - < 4999 5
2 5000 - < 9999 0
3 10000 - < Inf 0
 
SW1# abort delay-measurement mep 2 domain mdnam ma testtm
Delay Measurement Message (DMM) Over VPWS
CFM Y.1731 DMM over VPWS Topology
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)#commit
Commit the candidate configuration to the running
configuration.
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-vlan)#commit
Commit the candidate configuration to the running
configuration.
SW1(config-if)#exit
Exit config 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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-router)#exit
Exit router mode.
SW2(config)#mpls l2-circuit ETH-2001 1 3.3.3.3
Creating VPWS PW
SW2(config-pseudowire)#commit
Commit the candidate configuration to the running
configuration.
SW2(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)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-svc)#exit
Exit service template mode
SW2(config)#interface ce0
Configuring interface
SW2(config-if)#mpls-l2-circuit ETH-2001 ser-vice-template ETH-2001
Mapping VPWS in AC
SW2(config-if)#commit
Commit the candidate configuration to the running
configuration.
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 cross-check 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 mul-ticast state enable
Enabling the CFM multicast
SW2(config-ether-cfm-mpls-ma-mep)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-ether-cfm-mpls-ma-mep)#exit
Exit CFM MEP configuration mode
SW2(config-ether-cfm-mpls-md-ma)#exit
Exit CFM MA configuration mode
SW2(config-ether-cfm-mpls-md)#exit
End current mode and down to previous mode
SW2(config)#ethernet cfm delay-measurement profile-name DM
Configuring DM profile
SW2(config-cfm-dm)#measurement interval
Configuring measurement interval
SW2(config-cfm-dm)#intervals-stored 3
Configuring the number of history interval to be stored
SW2(config-cfm-dm)# message-period 1s
Configuring message period interval time
SW2(config-cfm-dm)# bins-per-fd-interval 4
Configuring the number of measurement bins per Meas-urement Interval for Frame Delay measurements.
SW2(config-cfm-dm)# bins-per-ifdv-interval 3
Configuring the number of measurement bins per Meas-urement Interval for Inter-Frame Delay Variation measure-ments.
SW2(config-cfm-dm)#commit
Commit the candidate configuration to the running
configuration.
SW2(config-cfm-dm)#end
Exit config mode
SW3
 
SW3#configure terminal
Enter configure mode.
SW3(config)#interface xe17
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)#commit
Commit the candidate configuration to the running
configuration.
SW3(config-if)#exit
Exit interface mode.
SW3(config)#interface xe1
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
SW3(config-if)#exit
Exit interface 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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
SW4(config-router)#exit
Exit router mode.
SW4(config)#mpls l2-circuit ETH-2001 1 1.1.1.1
Creating VPWS PW
SW4(config-pseudowire)#commit
Commit the candidate configuration to the running
configuration.
SW4(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)#commit
Commit the candidate configuration to the running
configuration.
SW4(config-svc)#exit
Exit service template mode
SW4(config)#interface xe9
Configuring interface
SW4(config-if)#mpls-l2-circuit ETH-2001 ser-vice-template ETH-2001
Mapping VPWS in AC
SW4(config-if)#commit
Commit the candidate configuration to the running
configuration.
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 charac-ter-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
Creating MA for domain
SW4(config-ether-cfm-ma)#mip-creation none
Configuring MIP creation permission
SW4(config-ether-cfm-mpls-md-ma)#cc interval 100ms
Configuring CFM interval
SW4(config-ether-cfm-mpls-md-ma)#mep cross-check 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 mul-ticast state enable
Enabling the CFM multicast
SW4(config-ether-cfm-mpls-ma-mep)#ethernet cfm delay-measurement reply dmm
Configuring DMR
SW4(config-ether-cfm-mpls-ma-mep)#commit
Commit the candidate configuration to the running
configuration.
SW4(config-ether-cfm-mpls-ma-mep)#end
Exit config 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)#commit
Commit the candidate configuration to the running
configuration.
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)#commit
Commit the candidate configuration to the running
configuration.
SW5(config-if)#exit
Exit config mode.
Commands to initiate/abort delay measurement
delay-measurement type proactive profile-name WORD rmep (mac-address MAC|mep-id MEPID) mep MEPID domain DOMAIN_NAME ma <MA_NAME>
 
abort delay-measurement mep MEPID domain DOMAIN_NAME ma <MA_NAME>
Validation
SW2# delay-measurement type proactive profile-name DM rmep mac-address 3c2c.9926.e683 mep 200 domain 12345
SW2# show ethernet cfm delay-measurement mep 200 domain 12345
MD : 12345
MA : 43981
MEP : 200
VLAN ID : 0
VC Name : ETH-2001
Peer MAC Address : b86a.97d2.27d0
CURRENT:
======================
RMEP ID : 100
Measurement ID : 3
Measurement Type : DMM
Elapsed time(sec) : 25
Start Time : 2019 Nov 06 10:57:33
Suspect Flag : TRUE
Min Frame Delay(usec) : 37
Max Frame Delay(usec) : 65
Avg Frame Delay(usec) : 51
Min Inter FD Variation(usec): 13
Max Inter FD Variation(usec): 15
Avg Inter FD Variation(usec): 14
FRAME DELAY BINS
Bin Number Bin Threshold(usec) Bin Counter
==================================================
1 0 - < 4999 3
2 5000 - < 9999 0
3 10000 - < 14999 0
4 15000 - < Inf 0
INTER-FRAME DELAY BINS
Bin Number Bin Threshold(usec) Bin Counter
==================================================
1 0 - < 4999 2
2 5000 - < 9999 0
3 10000 - < Inf 0
HISTORY STATISTICS
======================
MD : 12345
MA : 43981
MEP : 200
VLAN ID : 0
VC Name : ETH-2001
RMEP ID : 100
Measurement ID : 1
Measurement Type : DMM
Elapsed time(sec) : 60
End Time : 2019 Nov 06 10:50:19
Suspect Flag : FALSE
Min Frame Delay(usec) : 14
Max Frame Delay(usec) : 75
Avg Frame Delay(usec) : 47
Min Inter FD Variation(usec): 53
Max Inter FD Variation(usec): 53
Avg Inter FD Variation(usec): 24
FRAME DELAY BINS
Bin Number Bin Threshold(usec) Bin Counter
==================================================
1 0 - < 4999 5
2 5000 - < 9999 0
3 10000 - < 14999 0
4 15000 - < Inf 0
INTER-FRAME DELAY BINS
Bin Number Bin Threshold(usec) Bin Counter
==================================================
1 0 - < 4999 4
2 5000 - < 9999 0
3 10000 - < Inf 0
RMEP ID : 100
Measurement ID : 2
Measurement Type : DMM
Elapsed time(sec) : 60
End Time : 2019 Nov 06 10:51:20
Suspect Flag : FALSE
Min Frame Delay(usec) : 13
Max Frame Delay(usec) : 70
Avg Frame Delay(usec) : 37
Min Inter FD Variation(usec): 52
Max Inter FD Variation(usec): 52
Avg Inter FD Variation(usec): 21
FRAME DELAY BINS
Bin Number Bin Threshold(usec) Bin Counter
==================================================
1 0 - < 4999 6
2 5000 - < 9999 0
3 10000 - < 14999 0
4 15000 - < Inf 0
INTER-FRAME DELAY BINS
Bin Number Bin Threshold(usec) Bin Counter
==================================================
1 0 - < 4999 5
2 5000 - < 9999 0
3 10000 - < Inf 0
SW1# abort delay-measurement mep 2 domain mdnam
EVPN-ELINE (Y1731) Sub-Interface on Single Homing
To route traffic between two routers, create two sub interfaces within the physical interface, assign each sub interface an IP address within each subnet and then route the data between two subnets. Y.1731 is an enhancement of Connectivity Fault Management (CFM) and is used to monitor service performance.It provides a standard Ethernet ELINE function that includes Delay Measurement (DM) and Synthetic Loss Measurement (SLM).
As shown in the topology single-homing has a single ISP that provides static or dynamic routes to the customer edge router.
 
The following topology, configurations and validation section describe EVPN-ELINE Y1731 Sub-Interface on Single Homing devices.
Topology
This topology consists of customer edge routers. CE1 and CE2 with IPv2 Provider Edge routers PE1, PE2. These devices are all interconnected through the core router P in the IPv4 MPLS provider network.
(Y1731) Sub-interface on Single Homing Devices
Prerequisite
Configure the following 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
Configuration
The following content provides configuration and validation information on CFM over sub-interfaces.
PE1: Loopback Interface
Configure loopback Interface on PE1.
PE1#configure terminal
Enter the configure mode
PE1(config)#interface lo
Enter the interface mode for the loopback interface
PE1(config-if)#ip address 7.7.7.7/32 secondary
Configure IP address on loopback interface
PE1(config-if)#exit
Exit the interface mode
PE1(config)#commit
Commit the candidate configuration to the running configuration
PE1: Global EVPN MPLS Command
Configure Global EVPN MPLS command on PE1.
PE1#configure terminal
Enter the configuration mode
PE1(config)#evpn mpls enable
Enable EVPN MPLS
PE1(config-evpn-mpls)#evpn mpls vtep-ip-global 7.7.7.7
Configure the VTEP global IP to loopback IP
 
PE1(config)#commit
Commit candidate configuration to the running configuration.
Note: Reload is required after enabling or disabling EVPN MPLS
PE1: Global LDP
Configure Global EVPN LDP on PE1.
PE1(config)#router ldp
Enter the Router LDP mode
PE1(config-router)#router-id 7.7.7.7
Set the router ID to IP address 7.7.7.7
PE1(config-router)#targeted-peer ipv4 8.8.8.8
Configure the targeted peer 8.8.8.8
PE1(config-router-targeted-peer)#exit
Exit the targeted peer
PE1OcNOS(config-router)#exit
Exit from the LDP mode
PE1(config)#commit
Commit the candidate configuration to the running configuration
PE1: Interface Configuration Network Side
Configure the interface network side. on PE1.
PE1(config)#interface xe21
Enter the interface mode for xe21
PE1(config-if)#ip address 123.1.1.2/24
Configure the IP address on the interface
PE1(config-if)#enable-ldp ipv4
Enable LDP on the physical interface
PE1(config-if)#label-switching
Enable label switching on the interface
PE1(config-if)#exit
Exit the interface mode
PE1(config)#commit
Commit the candidate configuration to the running configuration
PE1: OSPF Configuration
Configure OSPF on PE1.
PE1(config)#router ospf 1
Enter the router OSPF mode
PE1(config-router)#ospf router-id 7.7.7.7
Configure the Router-ID
PE1(config-router)#network 7.7.7.7/32 area 0.0.0.0
Advertise the loopback address in OSPF
PE1(config-router)#network 123.1.1.0/24 area 0.0.0.0
Advertise xe21 network address in OSPF
PE1(config-router)#exit
Exit the router OSPF mode and return to Configure mode
PE1(config)#commit
Commit the candidate configuration to the running configuration
PE1: BGP Configuration
Configure BGP on PE1.
PE1(config)#router bgp 1
Enter the router BGP mode, AS number 1
PE1(config-router)#neighbor 8.8.8.8 remote-as 65010
Configure PE2 as iBGP neighbor using its loopback IP
PE1(config-router)#neighbor 8.8.8.8 update-source lo
Source of routing updates as loop-back
PE1(config-router)#address-family l2vpn evpn
Enter the address family mode as EVPN
PE1(config-router-af)#neighbor 8.8.8.8 activate
Enable the EVPN address family for the neighbor
PE1(config-router-af)#exit
Exit the address family mode
PE1(config-router)#commit
Commit the candidate configuration to the running configuration
PE1: MAC VRF Configuration
Configure MAC VRF on PE1.
PE1(config)#mac vrf vrf2
Enter the VRF mode
PE1(config-vrf)#rd 7.7.7.7:2
Configure the Route-Distinguisher (rd) value as 7.7.7.2
PE1(config-vrf)#route-target both 2:2
Configure the import and export value as 2:2
PE1(config-vrf)#exit
Exit the VRF mode
PE1(config)#commit
Commit the candidate configuration to the running configuration
PE1: EVPN and VRF Mapping
Configure EVPN and VRF Mapping on PE1.
PE1(config)#evpn mpls id 2 xconnect target-mpls-id 52
Configure the EVPN VPWS identifier with source identifier 2 and target identifier 52
PE1(config)#host-reachability-protocol evpn-bgp vrf2
Map VRF "VRF2" to the EVPN VPWS identifier
PE1(config)#commit
Commit candidate configuration to the running configuration
PE1: Access Port Configuration
Configure the Access Port Configuration on PE1.
PE1(config)#interface xe5
Enter the interface mode for xe5
PE1(config-if)#description access-side-int
Provide an Interface description
PE1(config-if)#interface xe5.2 switchport
Create the L2 subinterface for the physical interface xe6
PE1(config-if)#encapsulation dot1q 2
Set the encapsulation to dot1q with VLAN ID 2
Supported Encapsulation: dot1ad, dot1q, untagged, default
PE1(config-if)#access-if-evpn
Enter the access mode for EVPN MPLS ID configuration
PE1(config-access-if)#map vpn-id 2
Map VPN-id 252 to interface xe2.2 (VPWS)
PE1(config-access-if)#exit
Exit the access interface mode
PE1(config-if)#commit
Commit the candidate configuration to the running configuration
PE1: CFM Configuration
Configure CFM Configuration on PE1.
PE1(config)#hardware-profile filter cfm-domain-name-str enable
Configure the CFM-domain-name-SRR profile to enable CFM
PE1(config)#ethernet cfm domain-type character-string domain-name evpn1 level 7 mip-creation none
Create the CFM domain for EVPN ELINE with type as character string and set MIP creation to none
PE1(config-ether-cfm-mpls-md)#service ma-type string ma-name evp1
Create MA type with string and set MIP creation to none
PE1(config-ether-cfm-mpls-ma)# evpn2
Configure EVPN <EVPN-id>
PE1(config-ether-cfm-mpls-ma)#ethernet cfm mep up mpid 10 active true evpn 2
Create up-MEP for local EVPN id 2
PE1(config-ether-cfm-mpls-ma-mep)#cc multicast state enable
Enable CC multicast
PE1(config-ether-cfm-mpls-ma-mep)#exit-ether-ma-mep-mode
Exit Ethernet MA-MEP-MEP-mode
PE1(config-ether-cfm-mpls-ma)#mep crosscheck mpid 20
Configure cross check remote MPID
PE1(config-ether-cfm-mpls-ma)#cc interval 100
Enable CC interval with value 2 that is 100 milliseconds
PE1(config-ether-cfm-mpls-ma)#exit-ether-ma-mode
Exit the Ethernet MA mode
PE1(config-ether-cfm-mpls-md)#exit
Exit the Ethernet CFM mode
PE1(config)#commit
Commit the candidate configuration to the running configuration
P1: Loopback nterface
Configure loopback interface on P1.
P1#configure terminal
Enter the configure mode
P1(config)#interface lo
Enter the interface mode for the loopback interface
P1(config-if)#ip address 2.2.2.2/32 secondary
Configure the IP address for the loopback interface
P1(config-if)#exit
Exit the interface mode
P1(config)#commit
Commit the candidate configuration to the running configuration
P1: Global LDP
Configure Global LDP on P1.
P1(config)#router ldp
Enter the router LDP mode
P1(config-router)#router-id 2.2.2.2
Set the router ID to IP address 2.2.2.2
P1(config-router)#exit
Exit from the LDP mode
P1(config)#commit
Commit the candidate configuration to the running configuration
P1: Interface Configuration
Configure Interface Configuration on P1.
P1(config)#interface xe21
Enter the interface mode for xe21
P1(config-if)#ip address 123.1.1.1/24
Configure the IP address on the interface
P1(config-if)#enable-ldp ipv4
Enable LDP on the physical interface
P1(config-if)#label-switching
Enable label switching on the interface
P1(config-if)#exit
Exit the interface mode
P1(config)#interface Se14
Enter the interface mode for xe14
P1(config-if)#ip address 100.1.0.1/30
Configure the IP address on the interface
P1(config-if)#enable-ldp ipv4
Enable LDP on the physical interface
P1(config-if)#label-switching
Enable label switching on the interface
P1(config-if)#exit
Exit the interface mode
P1(config)#commit
Commit the candidate configuration to the running configuration
P1: OSPF Configuration
Configure the OSPF Configuration on P1 for more information refer the Topology
P1(config)#router ospf 1
Enter the router OSPF mode
P1(config-router)#ospf router-id 2.2.2.2
Set the Router ID as the loopback IP
P1(config-router)#network 2.2.2.2/32 area 0.0.0.0
Advertise the loopback address in OSPF
P1(config-router)#network 100.1.0.0/16 area 0.0.0.0
Advertise the xe5 network address in OSPF
P1(config-router)#network 123.1.1.0/24 area 0.0.0.0
Advertise xe3 network address in OSPF
P1(config-router)#exit
Exit the router OSPF mode and return to configure mode
P1(config)#commit
Commit the candidate configuration to the running configuration
P2: Loop-back Interface
Configure the loop-back Interface P2.
P2#configure terminal
Enter configuration mode.
P2(config)#interface lo
Enter the interface mode for the loop-back interface
P2(config-if)#ip address 3.3.3.3/32 secondary
Configure the IP address on loop-back interface
P2(config-if)#exit
Exit interface mode
P2(config)#commit
Commit the candidate configuration to the running configuration
P2: Global LDP
Configure Global LDP on P2.
P2(config)#router ldp
Enter the router LDP mode
P2(config-router)#router-id 3.3.3.3
Set the router ID to IP address 10.143.73.3
P2(config-router)#exit
Exit from router target peer and LDP mode
P2(config)#commit
Commit the candidate configuration to the running configuration
P2: Interface Configuration
Configure Interface Configuration on P2.
P2(config)#interface xe2
Enter the Interface mode for xe2
P2(config-if)# ip address 100.1.0.1/30
Configure IP address on the interface
P2(config-if)#enable-ldp ipv4
Enable LDP on the physical interface
P2(config-if)#label-switching
Enable label switching on the interface
P2(config-if)#exit
Exit interface mode
P2(config)#interface xe22
Enter the Interface mode for xe22
P2(config-if)# ip address 124.1.1.1/24
Configure the IP address on the interface
P2(config-if)#enable-ldp ipv4
Enable LDP on the physical interface
P2(config-if)#label-switching
Enable label switching on the interface
P2(config-if)#exit
Exit the interface mode
P2(config)#commit
Commit the candidate configuration to the running configuration
P2: OSPF Configuration
Configure OSPF Configuration on P2.
P2(config)#router ospf 1
Enter the Router OSPF mode.
P2(config-router)#ospf router-id 3.3.3.3
Setting the Router ID as Loop-back IP
P2(config-router)#network 3.3.3.3/32 area 0.0.0.0
Advertise the loop-back address in OSPF
P2(config-router)#network 100.1.0.0/16 area 0.0.0.0
Advertise xe5 network address in OSPF
(config-router)#network 124.1.1.0/24 area 0.0.0.0
Advertise xe3 network address in OSPF
P2(config-router)#exit
Exit Router OSPF mode and return to Configure mode.
P2(config)#commit
Commit the candidate configuration to the running configuration
PE2: Loop-back Interface
Configure Loop-back Interface on PE2.
PE2#configure terminal
Enter the configuration mode
PE2(config)#interface lo
Enter the Interface mode for the loop-back interface
PE2(config-if)#ip address 8.8.8.8/32 secondary
Configure the IP address on loop-back interface
PE2(config-if)#exit
Exit the Interface mode
PE2(config)#commit
Commit the candidate configuration to the running configuration
PE2: Global LDP
Configure Global LDP on PE2.
PE2(config)#router ldp
Enter the Router LDP mode.
PE2(config-router)#router-id 8.8.8.8
Set the router ID to IP address 8.8.8.8
PE2(config-router)#targeted-peer ipv4 7.7.7.7
Configure targeted peer
PE2(config-router)#exit
Exit from the router target peer and LDP mode
PE2(config)#commit
Commit the candidate configuration to the running configuration
PE2: Global EVPN MPLS Command
Configure Global EVPN MPLS Command on PE2.
PE2(config)#evpn mpls enable
Enable EVPN MPLS
PE2(config)#commit
Commit the candidate configuration to the running configuration
Note: Reload is required after Enabling or Disabling EVPN MPLS
PE2(config-evpn-mpls)#evpn mpls vtep-ip-global 8.8.8.8
Configure the VTEP global IP to loop-back IP.‘
PE2(config-evpn-mpls)#commit
Commit the candidate configuration to the running configuration
PE2: Interface Configuration Network Side
Configure Interface Network Side on PE2.
PE2(config)#interface xe18
Enter the interface mode for xe18
PE2(config-if)#enable-ldp ipv4
Configure IP address on the interface
PE2(config-if)#label-switching
Enable label switching on the interface
PE2(config-if)#exit
Exit the interface mode
PE2(config)#commit
Commit the candidate configuration to the running configuration
PE2: OPSF Configuration
Configure OSPF on PE2.
PE2(config)#router ospf 1
Enter the interface mode for xe2
PE2(config-router)#ospf router-id 8.8.8.8
Router-ID configurations
PE2(config-router)#network 8.8.8.8/32 area 0.0.0.0
Advertise loop-back address in OSPF.
PE2(config-router)#network 124.1.1.0/24 area 0.0.0.0
Advertise the xe5 network address in OSPF
 
PE2(config-router)#exit
Exit the router OSPF mode and return to configure mode
PE2(config)#commit
Commit the candidate configuration to the running configuration
PE2: BGP Configuration
Configure BGP on PE2.
PE2(config)#router bgp 1
Enter the router BGP mode, ASN: 65010
PE2(config-router)#neighbor 7.7.7.7 remote-
as 65010
Configure PE1 as iBGP neighbor using it's loopback IP address
PE2(config-router)#neighbor 7.7.7.7 update- source lo
Source of routing updates as loop-back
PE2(config-router)#address-family l2vpn evpn
Enter the address family mode as EVPN
PE2(config-router-af)#neighbor 7.7.7.7 activate
Enable the EVPN Address family for neighbor
PE2(config-router-af)#exit
Exit the address family mode
PE2(config-router)#commit
Commit the candidate configuration to the running configuration
PE2: MAC VRF Configuration
Configure MAC VRF on PE2.
PE2(config)#mac vrf vrf2
Enter the VRF mode
PE2(config-vrf)#rd 8.8.8.8:2
Configure the rd value 8.8.8.8:2
PE2(config-vrf)#route-target both 2:2
Configure the import and export value as 2:2
PE2(config-vrf)#exit
Exit the VRF Mode
PE2(config)#commit
Commit the candidate configuration to the running configuration
PE2: EVPN and VRF Mapping
Configure EVPN and VRF Mapping PE2.
PE2(config)#evpn mpls id 52 xconnect target- mpls-id 2
Configure the EVPN-ELINE identifier with source identifier 52 and target identifier 2
PE2(config-evpn-mpls)#host-reachability- protocol evpn-bgp vrf2
Map VFRF "VRF2" to EVPN-ELINE identifier
PE2(config-evpn-mpls)#commit
Commit the candidate configuration to the running configuration
PE2: Access Port Configuration
Configure Access Port on PE2.
PE2(config)#interface xe4
Enter the interface mode for xe4
PE2(config-if)#description access-side-int
Provide an interface description
PE2(config-if)#interface xe2 switchport
Create L2 subinterface of physical interface xe2
PE2(config-if)#encapsulation dot1q 2
Set encapsulation to dot1q with VLAN ID 2
Supported encapsulation is dot1ad, dot1q, untagged, default
PE2(config-if)#access-if-evpn
Enter the access mode for EVPN MPLS ID configuration
PE2(config-access-if)#map vpn-id 52
Map VPN-id 52 to interface xe2.2 (VPWS)
PE2(config-access-if)#exit
Exit out of the access interface mode
PE2(config-if)#commit
Commit the candidate configuration to the running configuration
PE2: CFM Configuration
Configure CFM on PE2 CFM.
PE2(config)#hardware-profile filter cfm-domain- name-str enable
Configure the CFM-domain-name-str profile to enable CFM
PE2(config)# ethernet cfm domain-type character-string domain-name evpn1 level 7 mip-creation none
Create CFM domain for EVPN ELINE with type as character string and set MIP creation to none
PE2(config-ether-cfm-mpls-md)# service ma-type string ma-name evp1
Create MA type with string and set MIP creation to none
PE2(config-ether-cfm-mpls-ma)# evpn 52
Configure EVPN <EVPN-id>
PE2(config-ether-cfm-mpls-ma)# ethernet cfm mep up mpid 20 active true evpn 52
Create up-MEP for local EVPN id 52
PE2s(config-ether-cfm-mpls-ma-mep)#cc multicast state enable
Enable CC multicast
Validation
The following is the validations for PE1 and PE2.
PE1
PE1#show evpn mpls xconnect id 2
EVPN-MPLS Xconnect Info
========================
AC-AC: Local-Cross-connect
AC-NW: Cross-connect to Network AC-UP: Access-port is up
AC-DN: Access-port is down NW-UP: Network is up
NW-DN: Network is down
NW-SET: Network and AC both are up
 
Local Remote Connection-Details
================================ ============
===================================================================================
VPN-ID EVI-Name MTU VPN-ID Source Destination PE-IP MTU Type NW-Status
===================================================================================
2 ---- 1500 52 xe5.2 --- Single Homed Port --- 8.8.8.8 1500 AC-NW NW-SET
 
Total number of entries are 1
PE1#show ethernet cfm errors domain evpn1
Domain Name Level MEPID Defects
------------------------------------------
evpn1 2 10 .....
 
 
1. defRDICCM 2. defMACstatus 3. defRemoteCCM
defErrorCCM 5. defXconCCM
 
PE1#show ethernet cfm ma status domain evpn1 ma-name evp1
MA NAME STATUS
-------------------------------
evp1 Active
 
PE1#show ethernet cfm maintenance-points local mep domain evpn1 ma-name evp1
MPID Dir Lvl CC-Stat HW-Status CC-Intvl MAC-Address Def Port MD Name
---------------------------------------------------------------------------
10 Up 2 Enable Installed 100 ms 00aa.bb00.0002 F xe5.2 evpn1
 
PE1#show ethernet cfm maintenance-points remote domain evpn1 ma-name evp1
MEPID RMEP ID LEVEL Rx CCM RDI PEER-MAC TYPE
----------------------------------------------------------------------
10 20 2 Yes False 00cc.dd00.0034 Configured
 
LMM
Loss Measurement Management (LMM) is a loss monitoring feature developed to monitor the loss and delay traffic measurement data on the router.
PE2(config)#ethernet cfm loss-measurement profile-name lmm
Configure LM profile
PE2(config-cfm-lm)#measurement-type lmm
Configure measurement type as LMM
PE2(config-cfm-lm)#measurement-interval 1
 
Configure measurement interval
PE2(config-cfm-lm)#intervals-stored 3
Configure number of interval to be stored
PE2(config-cfm-lm)#commit
Commit the candidate configuration to the running
configuration.
PE2(config-cfm-lm)#end
Exit configure mode
PE2: CFM Responder Configuration
Configure CFM Responder on PE2.
Prerequisite
hardware-profile filter cfm-domain-name-str enable
hardware-profile statistics cfm-lm enable
hardware-profile statistics cfm-ccm enable
 
PE2(config)#hardware-profile filter cfm-domain- name-str enable
Configure the CFM-domain-name-STR profile to enable CFM
PE2(config)# ethernet cfm domain-type character-string domain-name evpn1 level 7 mip-creation none
Create the CFM domain for EVPN ELINE with type as character string and set MIP creation to none
PE2(config-ether-cfm-mpls-md)# service ma-type string ma-name evp1
Create the MA type with string and set MIP creation to none
PE2(config-ether-cfm-mpls-ma)# evpn 52
Configure EVPN <EVPN-id>
PE2(config-ether-cfm-mpls-ma)# ethernet cfm mep up mpid 20 active true evpn 52
Create up-MEP for local EVPN id 52
PE2(config-ether-cfm-mpls-ma)# ethernet cfm loss-measurement reply lmm
Enable the LM responder
PE2(config-ether-cfm-mpls-ma-mep)#cc multicast state enable
Enable CC multi cast
 
PE2(config-ether-cfm-mpls-ma-mep)#exit-ether- ma-mep-mode
Exit Ethernet MA-MEP-mode
PE2(config-ether-cfm-mpls-ma)# mep crosscheck mpid 10
Configure cross check to remote MEP for VLAN 2
PE2(config-ether-cfm-mpls-ma)#cc interval 100
Enable the CC interval with value 2 that is 10 milliseconds
PE2(config-ether-cfm-mpls-ma)#exit-ether-ma- mode
Exit the Ethernet MA mode
PE2(config-ether-cfm-mpls)#exit
Exit the Ethernet CFM mode
PE2(config)#exit
Exit the configure mode
PE2(config)#commit
Commit the candidate configuration to the running configuration
Commands to Initiate/Abort Loss Measurement
The following are the commands to initiate/abort loss measurement.
loss-measurement type on-demand profile-name <WORD> rmep mac-address <HHHH.HHHH.HHHH> start-time <immediate|relative|absolute> stop-time <none|absolute|relative> repetition-period <REP-TIME> mep <MEPID> domain < DOMAIN_NAME> ma <MA_NAME>
 
loss-measurement type proactive profile-name <WORD> rmep mac-address <HHHH.HHHH.HHHH>mep <MEPID> domain < DOMAIN_NAME> ma <MA_NAME>
 
abort loss-measurement mep <MEPID> domain <DOMAIN_NAME> ma <MA_NAME>
 
clear ethernet cfm loss-measurement mep <MEPID> domain <DOMAIN_NAME> ma <MA_NAME>
Validation
The following are the validations for PE1.
PE1 ping ethernet mac 00cc.dd00.0034 unicast source 10 domain evpn1 ma evp1
success rate is 100 (5/5)
 
PE1# traceroute ethernet 00cc.dd00.0034 mepid 10 domain evpn1 ma evp1
MP Mac Hops Relay-action Ingress/Egress Ingress/Egress action
00cc.dd00.0034 1 RlyHit Ingress IngOK
PE1# loss-measurement type proactive profile-name lmm rmep 20 mep 10 domain evpn1 ma evp1
 
PE1# show ethernet cfm loss-measurement mep 10 domain evpn1 ma-name evp1
MEP: 10 MA: evp1
CURRENT:
Measurement ID : 48
Suspect : True
Measurement Type : lmm
Elapsed time(sec) : 14
Start Time : 2023 Oct 16 15:51:24
Near End loss : 0
Far End loss : 0
Near End accumulated loss : 0
Far End accumulated loss : 0
Near End frame loss ratio : 0
Far End frame loss ratio : 0
 
HISTORY:
 
Measurement ID : 45
Suspect : True
Measurement Type : lmm
Elapsed time(sec) : 60
End Time : 2023 Oct 16 15:49:24
Near End loss : 0
Far End loss : 0
Near End accumulated loss : 0
Far End accumulated loss : 0
Near End frame loss ratio : 0
Far End frame loss ratio : 0
Near End frame loss ratio min : 0
Far End frame loss ratio min : 0
Near End frame loss ratio max : 0
Far End frame loss ratio max : 0
 
PE1# abort loss-measurement mep 10 domain evpn1 ma evp1
 
PE1#ping ethernet mac 00cc.dd00.0034 unicast source 10 domain evpn1 ma evp1
success rate is 100 (5/5)
PE1#traceroute ethernet 00cc.dd00.0034 mepid 10 domain evpn1 ma evp1
MP Mac Hops Relay-action Ingress/Egress Ingress/Egress action
00cc.dd00.0034 1 RlyHit Ingress IngOK
PE1#sh ethernet cfm statistics mep 10 domain evpn1 ma-name evp1
 
CFM Statistics for MEP 10 of MD evpn1
=====================================
Continuity Check Messages
CCM Sent : 481375
CCM Received : 559371
 
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 : 2
LTR Sent : 0
LTR Received(Valid) : 2
LTR Received(unexpected): 0
7023-mh1#
SLM
SLM is a software for managing the maintenance and repair products.
PE1: CFM Initiator Configuration
Configure SLM CFM Initiator on PE1.
PE2(config)#ethernet cfm loss-measurement profile-name slm
Configure the LM profile
PE2(config-cfm-lm)#measurement-type lmm
Configure measurement type as LMM
PE2(config-cfm-lm)#message-period 3
Configure the message period
PE2(config-cfm-lm)#measurement-interval 1
Configure the measurement interval
PE2(config-cfm-lm)#intervals-stored 3
Configure the number of interval to the stored
PE2(config-cfm-lm)#commit
Commit the candidate configuration to the running
configuration
PE2(config-cfm-lm)#end
Exit the configure mode
PE2: CFM Responder Configuration
Configure SLM CFM Responder on PE2.
Prerequisite
Configure below hardware-profile commands related to CFM in configure mode and reboot the nodes.
hardware-profile filter cfm-domain-name-str enable
hardware-profile statistics cfm-slm enable
hardware-profile statistics cfm-ccm enable
 
PE2(config)#hardware-profile filter cfm-domain- name-str enable
Configure CFM-domain-name-str profile to enable CFM
PE2(config)# ethernet cfm domain-type character-string domain-name evpn1 level 7 mip-creation none
Create CFM domain for EVPN ELINE with type as character string and set MIP creation to none
PE2(config-ether-cfm-mpls-md)# service ma-type string ma-name evp1
Create MA type with string and set MIP creation to none
PE2(config-ether-cfm-mpls-ma)# evpn 52
Configure EVPN <EVPN-id>
PE2(config-ether-cfm-mpls-ma)# ethernet cfm mep up mpid 20 active true evpn 52
Create up-MEP for local EVPN id 52
PE2(config-ether-cfm-mpls-ma)# ethernet cfm loss-measurement reply slm
Enable SLM responder
PE2(config-ether-cfm-mpls-ma-mep)#cc multicast state enable
Enable CC multi cast
 
PE2(config-ether-cfm-mpls-ma-mep)#exit-ether- ma-mep-mode
Exit Ethernet MA-MEP-mode
PE2(config-ether-cfm-mpls-ma)# mep crosscheck mpid 10
Configure cross check to remote MEP for VLAN 2
PE2(config-ether-cfm-mpls-ma)#cc interval 100
Enable CC interval with value 2 that is 100 milliseconds
PE2(config-ether-cfm-mpls-ma)#exit-ether-ma- mode
Exit the Ethernet MA mode
PE2(config-ether-cfm-mpls)#exit
Exit the Ethernet CFM mode
PE2(config)#exit
Exit from configure mode
PE2(config)#commit
Commit the candidate configuration to the running configuration
SLM Initiation/Abort
The following is the SLM Initiation/Abort.
================================
PE1#loss-measurement type proactive profile-name slm rmep 10 mep 20 domain evpn1 ma evp1
PE1#show ethernet cfm loss-measurement mep 20 domain evpn1 ma-name evp1
MEP: 20 MA: evp1
CURRENT:
Measurement ID : 2
Suspect : False
Measurement Type : slm
Elapsed time(sec) : 10
Start Time : 2023 Sep 30 07:08:56
Near End loss : 0
Far End loss : 0
Near End accumulated loss : 0
Far End accumulated loss : 0
Near End frame loss ratio : 0
Far End frame loss ratio : 0
HISTORY:
Measurement ID : 1
Suspect : False
Measurement Type : slm
Elapsed time(sec) : 60
End Time : 2023 Sep 30 07:08:56
Near End loss : 0
Far End loss : 0
Near End accumulated loss : 0
Far End accumulated loss : 0
Near End frame loss ratio : 0
Far End frame loss ratio : 0
Near End frame loss ratio min : 0
Far End frame loss ratio min : 0
Near End frame loss ratio max : 0
Far End frame loss ratio max : 0
PE1#
PE1# abort loss-measurement mep 10 domain evpn1 ma evp1
 
DMM
DMM) specifies solutions for IP networks, the traffic between mobile and correspondent nodes takes an optimal route. DMM aims for the transparency above the IP layer.
PE1: CFM Initiator Configuration
Configure DMM CFM Initiator on PE1.
PE1(config)# ethernet cfm delay-measurement profile-name dmm
Create the loss-measurement profile for DM
PE1(config-cfm-dm)# measurement-interval 1
Specify the measurement-interval in minutes
PE1(config-cfm-dm)# intervals-stored 3
Specify the number of history interval to be stored
PE1(config-cfm-dm)# message-period 1s
Specify the message period interval time
PE1(config-cfm-dm)# bins-per-fd-interval 4
Specify the number of measurement bins per Measurement Interval for Frame Delay measurements
PE1(config-cfm-dm)# bins-per-ifdv-interval 3
 
Specify the number of measurement bins per Measurement Interval for Inter-Frame Delay Variation measurements
PE1(config-cfm-dm)#commit
Commit the candidate configuration to the running
configuration
PE2: CFM Responder Configuration
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
 
PE2(config)#hardware-profile filter cfm-domain- name-str enable
Configure CFM-domain-name-str profile to enable CFM
PE2(config)# ethernet cfm domain-type character-string domain-name evpn1 level 7 mip-creation none
Create CFM domain for EVPN-ELINE with type as character string and set MIP creation to none
PE2(config-ether-cfm-mpls-md)# service ma-type string ma-name evp1
Create MA type with string and set MIP creation to none
PE2(config-ether-cfm-mpls-ma)# evpn 52
Configure EVPN <EVPN-id>
PE2(config-ether-cfm-mpls-ma)# ethernet cfm mep up mpid 20 active true evpn 52
Create up-MEP for local EVPN id 52
PE2(config-ether-cfm-mpls-ma)# ethernet cfm delay-measurement reply dmm
Enable DMM responder
PE2(config-ether-cfm-mpls-ma-mep)#cc multicast state enable
Enable the CC multicast
 
PE2(config-ether-cfm-mpls-ma-mep)#exit-ether- ma-mep-mode
Exit Ethernet MA-MEP-mode
PE2(config-ether-cfm-mpls-ma)# mep crosscheck mpid 10
Configure cross check to remote MEP for VLAN 2
PE2(config-ether-cfm-mpls-ma)#cc interval 100
Enable CC interval with value 2 that is 10 milliseconds
PE2(config-ether-cfm-mpls-ma)#exit-ether-ma- mode
Exit the Ethernet MA mode
PE2(config-ether-cfm-mpls)#exit
Exit the Ethernet CFM mode
PE2(config)#exit
Exit from the configure mode
PE2(config)#commit
Commit the candidate configuration to the running configuration
Validation
The following output validates the DMM configuration validations for PE1 and PE2.
PE1#delay-measurement type proactive profile-name dmm rmep 10 mep 20 domain evpn1 ma evp1
PE1#show ethernet cfm delay-measurement mep 20 domain evpn1 ma-name evp1
MD : evpn1
MA :
MEP : 20
VC Name :
Peer MAC Address : 00cc.dd00.0034
CURRENT:
RMEP ID : 10
Measurement ID : 1
Measurement Type : DMM
Elapsed time(sec) : 2
Start Time : 2023 Oct 12 04:11:56
Suspect Flag : FALSE
Min Frame Delay(usec) : 40
Max Frame Delay(usec) : 74
Avg Frame Delay(usec) : 57
Min Inter FD Variation(usec): 34
Max Inter FD Variation(usec): 34
Avg Inter FD Variation(usec): 34
FRAME DELAY BINS
Bin Number Bin Threshold(usec) Bin Counter
1 0 - < 4999 2
2 5000 - < 9999 0
3 10000 - < 14999 0
4 15000 - < 4294967295 0
INTER-FRAME DELAY BINS
Bin Number Bin Threshold(usec) Bin Counter
1 0 - < 4999 1
2 5000 - < 9999 0
3 10000 - < 4294967295 0