CFM is used to monitor and maintain Ethernet services. For details on CFM configuration and troubleshooting, see the Configuring Ethernet OAM chapter in the Interface and Hardware Component Configuration Guide for Cisco 8000 Series Routers.
Before you begin
Follow these steps to configure CFM for VPLS services:
Procedure
|
1. |
Enable CFM continuity check for the VPLS service.
Example:
Router# configure
Router# ethernet cfm
Router(config-cfm# domain vpls_bgp level 3 id null
Router(config-cfm-dmn)# service vpls_bgp_1 bridge group vpls bridge-domain vpls-1 id number 1000
Router(config-cfm-dmn-svc)# continuity-check interval 10s
|
|
2. |
Configure MEP cross-check and logging.
Example:
Router(config-cfm-dmn-svc)# mep crosscheck
Router(config-cfm-dmn-svc-xcheck)# mep crosscheck
Router(config-cfm-dmn-svc-xcheck)# exit
Router(config-cfm-dmn-svc)# log continuity-check errors
Router(config-cfm-dmn-svc)# log continuity-check mep changes
Router(config-cfm-dmn-svc)# commit
|
|
3. |
Enable CFM on the interface and configure the Up MEP.
Example:
Router# configure
Router(config)# interface HundredGigE0/0/0/2/0.1000 l2transport
Router(config-subif)# encapsulation dot1q 1000
Router(config-subif)# ethernet cfm
Router(config-if-cfm)# mep domain vpls_bgp service vpls_bgp_1 mep-id 1
Router(config-if-cfm-mep)# commit
|
|
4. |
Review the running configuration.
Example:
ethernet cfm
domain vpls_bgp level 3 id null
service vpls_bgp_1 bridge group vpls bridge-domain vpls-1 id number 1000
continuity-check interval 10s
mep crosscheck
mep-id 8191
!
log continuity-check errors
log continuity-check mep changes
!
!
!
interface HundredGigE0/0/0/2/0.1000 l2transport
encapsulation dot1q 1000
ethernet cfm
mep domain vpls_bgp service vpls_bgp_1 mep-id 1
!
|
|
5. |
Use show ethernet cfm peer meps , show ethernet cfm peer meps detail , and show ethernet cfm local meps verbose commands to verify peer and local MEP status.
Example:
Router(PE1)# show ethernet cfm peer meps
Flags:
> - Ok
I - Wrong interval
R - Remote Defect received
V - Wrong level
L - Loop (our MAC received)
T - Timed out
C - Config (our ID received)
M - Missing (cross-check)
X - Cross-connect (wrong MAID)
U - Unexpected (cross-check)
* - Multiple errors received
S - Standby
Domain id_no (level 3) , Service id_no_vpws_1
Up MEP on TenGigE0/0/0/2/0.1 MEP-ID 1
================================================================================
St ID MAC Address Port Up/Downtime CcmRcvd SeqErr RDI Error
-- ----- -------------- ------- ----------- --------- ------ ----- -----
> 8191 b0c5.3cff.c0c1 Up 00:01:26 9 0 4 0
Router(PE1)# show ethernet cfm peer meps detail
Domain id_no (level 3), Service id_no_vpws_1
Up MEP on TenGigE0/0/0/2/0.1 MEP-ID 1
================================================================================
Peer MEP-ID 8191, MAC b0c5.3cff.c0c1
CFM state: Ok, for 00:01:44
Port state: Up
CCMs received: 11
Out-of-sequence: 0
Remote Defect received: 4
Wrong level: 0
Cross-connect (wrong MAID): 0
Wrong interval: 0
Loop (our MAC received): 0
Config (our ID received): 0
Last CCM received 00:00:04 ago:
Level: 3, Version: 0, Interval: 10s
Sequence number: 8495, MEP-ID: 8191
MAID: NULL, UINT: 1
Chassis ID: Local: Eyrie; Management address: 'Not specified'
Port status: Up, Interface status: Up
Router(PE1)# show ethernet cfm local meps verbose
Domain id_no (level 3), Service id_no_vpws_1
Up MEP on TenGigE0/0/0/2/0.1 MEP-ID 1
================================================================================
Interface state: Up
MAC address: d46a.355c.b808
Peer MEPs: 1 up, 0 with errors, 0 timed out (archived)
Cross-check errors: 0 missing, 0 unexpected
CCM generation enabled: Yes, 10s (Remote Defect detected: No)
AIS generation enabled: No Sending AIS: No Receiving AIS: No
Sending CSF: No Receiving CSF: No
Packet Sent Received
------ ---------- ---------------------------------------------------------
CCM 8508 24 (out of seq: 0)
|