Chapter 10 CFM Commands
Ethernet Switch CLI Reference Guide
55
10.5 Command Examples
This example creates
MD1
(with MD index 1 and level 1) and
MA2
(with MA index 2 and
VLAN ID 2) under
MD1
that defines a CFM domain.
Remember to save new settings using the
write memory
command.
This example deletes
MA2
(with MA index 2) from
MD1
(with MD index 1).
This example creates
MA3
(with MA index 3 and VLAN ID 123) under
MD1
, and associates
port 1 as an MEP port with MEP ID 301 in the specified CFM domain. This also sets MHF
(MIP half function) to
default
to have the Switch automatically create MIPs for this MA and
on the ports belonging to this MA's VLAN when there are no lower configured MD levels or
there is a MEP at the next lower configured MD level on the port. This also sets a remote MEP
in
MA3
.
sysname# config
sysname(config)# ethernet cfm md 1 format string name MD1 level 1
sysname(config)# ethernet cfm ma 2 format string name MA2 md 1 primary-
vlan 2
sysname(config-ma)# exit
sysname(config)# exit
sysname# write memory
sysname# config
sysname(config)# no ethernet cfm ma 2 md 1
sysname(config)# exit
sysname# write mem
sysname# config
sysname(config)# ethernet cfm ma 3 format string name MA3 md 1 primary-vlan
123
sysname(config-ma)# mep 301 interface port-channel 1 direction up priority 2
sysname(config-ma)# mep 301 interface port-channel 1 direction up priority 2
cc-enable
sysname(config-ma)# mhf-creation default
sysname(config-ma)# remote-mep 117
sysname(config-ma)# exit
sysname(config)# exit
sysname# write mem