OcNOS-SP : Carrier Ethernet Guide : Carrier Ethernet Configuration Guide : 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