Step 1 |
enable
|
Enables
privileged EXEC mode.
|
Step 2 |
configure
terminal
Router# configure terminal
|
Enters global
configuration mode.
|
Step 3 |
ethernet
cfm
global
Router(config)# ethernet cfm global
|
Enables
Ethernet CFM globally.
|
Step 4 |
link-protection
enable
Router(config)# link-protection enable
|
Enables link
protection globally on the router.
|
Step 5 |
link-protection
group
management
vlan
vlan-id
Router(config)# link-protection group management vlan 51
|
Defines the
management VLAN used for link protection.
|
Step 6 |
link-protection
group
group-number
pccm
vlan vlan-id
Router(config)# link-protection group 2 pccm vlan 16
|
Specifies an
ODU-to-ODU continuity check message (P-CCM) VLAN.
|
Step 7 |
ethernet
cfm
domain
domain-name
level
level-id
[direction
outward ]
Router(config)# ethernet cfm domain eccm1 level 0
|
Configures the
CFM domain for ODU 1 and enters Ethernet CFM configuration mode.
|
Step 8 |
id
{mac-address
domain-number
|
dns
dns-name |
null }
Router(config-ecfm)# id null
|
Configures a
maintenance domain identifier (MDID).
|
Step 9 |
service
{ma-name |
ma-num |
vlan-id
vlan-id |
vpn-id
vpn-id }
[port |
vlan
vlan-id
[direction
down ]]
Router(config-ecfm)# service 1 vlan 14 direction down
|
Defines a
maintenance association for ODU 1 and enters Ethernet CFM service instance
configuration mode.
|
Step 10 |
mep
mpid
mpid
Router(config-ecfm-srv)# mep mpid 1
|
Defines the
local MEP ID.
|
Step 11 |
mep
mpid
mpid
Router(config-ecfm-srv)# mep mpid 2
|
Defines the
remote MEP ID.
|
Step 12 |
continuity-check
[interval
time |
loss-threshold
threshold |
static
rmep ]
Router(config-ecfm-srv)# continuity-check interval 100ms
|
Enables
transmission of continuity check messages (CCMs) within the ODU 1 maintenance
association and defines a continuity-check interval.
|
Step 13 |
exit
Router(config-ecfm-srv)# exit
|
Exits
Ethernet CFM service instance configuration mode.
|
Step 14 |
exit
Router(config-ecfm)# exit
|
Exits
Ethernet CFM configuration mode.
|
Step 15 |
ethernet
cfm
domain
domain-name
level
level-id
[direction
outward ]
Router(config)# ethernet cfm domain eccm2 level 0
|
Configures
the CFM domain for ODU 2 and enters CFM configuration mode.
|
Step 16 |
id
{mac-address
domain-number
|
dns
dns-name |
null }
Router(config-ecfm)# id null
|
Configures a
maintenance domain identifier (MDID).
|
Step 17 |
service
{ma-name |
ma-num |
vlan-id
vlan-id |
vpn-id
vpn-id }
[port |
vlan
vlan-id
[direction
down ]]
Router(config-ecfm)# service 2 vlan 15 direction down
|
Defines a
maintenance association for ODU 2 and enters Ethernet CFM service configuration
mode.
|
Step 18 |
mep
mpid
mpid
Router(config-ecfm-srv)# mep mpid 1
|
Defines the
local MEP ID.
|
Step 19 |
mep
mpid
mpid
Router(config-ecfm-srv)# mep mpid 2
|
Defines the
remote MEP ID.
|
Step 20 |
continuity-check
[interval
time |
loss-threshold
threshold |
static
rmep ]
Router(config-ecfm-srv)# continuity-check interval 100ms
|
Enables
transmission of CCMs within the ODU 2 maintenance association and defines a
continuity-check interval.
|
Step 21 |
exit
Router(config-ecfm-srv)# exit
|
Exits
Ethernet CFM service instance configuration mode.
|
Step 22 |
exit
Router(config-ecfm)# exit
|
Exits
Ethernet CFM configuration mode.
|
Step 23 |
interface
type
slot
/
port
Router(config)# interface gigabitethernet 1/1
|
Configures
the interface to be connected to ODU 1 and enters interface configuration mode.
|
Step 24 |
switchport
mode
{access |
dot1q-tunnel |
dynamic
{auto |
desirable } |
private-vlan
|
trunk }
Router(config-if)# switchport mode trunk
|
Sets the
switching characteristics of the Layer 2-switched interface.
|
Step 25 |
spanning-tree
portfast
{disable |
trunk }
Router(config-if)# spanning-tree portfast trunk
|
Enables
PortFast on the interface when it is in trunk mode.
|
Step 26 |
ethernet
cfm
mep
domain
domain-name
mpid
mpid
{port |
vlan
vlan-id }
Router(config-if)# ethernet cfm mep domain eccm1 mpid 1 vlan 14
|
Configures a
CFM MEP domain for ODU 1.
|
Step 27 |
link-protection group
group-number
Router(config-if)# link-protection group 1
|
Configures a
link-protection group for ODU 2.
|
Step 28 |
exit
|
Exits
interface configuration mode.
|
Step 29 |
interface
type
slot
/
port
Router(config)# interface GigabitEthernet 3/2
|
Configures
the interface to be connected to ODU 2 and enters interface configuration mode.
|
Step 30 |
switchport
mode
{access |
dot1q-tunnel |
dynamic
{auto |
desirable } |
private-vlan
|
trunk }
Router(config-if)# switchport mode trunk
|
Sets the
switching characteristics of the Layer 2-switched interface.
|
Step 31 |
spanning-tree
portfast
{disable |
trunk }
Router(config-if)# spanning-tree portfast trunk
|
Enables
PortFast on the interface when it is in trunk mode.
|
Step 32 |
ethernet
cfm
mep
domain
domain-name
mpid
mpid
{port |
vlan
vlan-id }
Router(config-if)# ethernet cfm mep domain eccm2 mpid 1 vlan 15
|
Configures a
CFM MEP domain for ODU 2.
|
Step 33 |
link-protection group
group-number
Router(config-if)# link-protection group 1
|
Configures a
link-protection group for ODU 2.
|
Step 34 |
end
|
Returns the
CLI to privileged EXEC mode.
|
Step 35 |
service
instance
trunk
id
ethernet
Router(config-if)# service instance trunk 1 ethernet
|
Configures an
Ethernet service instance on an interface and enters Ethernet service
configuration mode.
|
Step 36 |
encapsulation
dot1q
vlan-id [,
vlan-id [-
vlan-d]]
Device(config-if-srv)# encapsulation dot1q 1-5, 7, 9-12
|
Defines the matching criteria to map 802.1Q frames ingress on an
interface to the appropriate service instance.
|
Step 37 |
rewrite
ingress
tag
pop
1
symmetric
Device(config-if-srv)# rewrite ingress tag pop 1 symmetric
|
Specifies the encapsulation adjustment to be performed on a frame
that is entering a service instance.
|
Step 38 |
bridge-domain
from-encapsulation
Device(config-if-srv)# bridge-domain from-encapsulation
|
Creates a list of bridge domains for an EFP trunk port using the
bridge-domain IDs derived from the encapsulation VLAN numbers.
|
Step 39 |
show
ethernet
cfm
maintenance-points
remote
detail
Router# show ethernet cfm maintenance-points remote detail
|
(Optional)
Displays remote maintenance endpoints in the continuity check database.
|