You are on page 1of 3

#shut down spanning tree protocol#

!
sh spanning-tree
end

#configuring the interfaces#


!
int prot 1
desc "To CTR-11, MainRing"
switchport
map sw default
no shut
end
!
int gi 0/11
desc "To CTR-9, MainRing"
switchport
map sw default
no shut
end

#configuring the ECFM/ERPS Vlan#


!
vlan 10
po add prot 1 gi 0/11
exit
vlan 100
po add prot 1 gi 0/11
exit
vlan 200
po add prot 1 gi 0/11
exit
vlan 20
po add prot 1 gi 0/11
end

#activating ECFM protocol#


!
ethernet cfm start
ethernet cfm enable
ethernet cfm y1731 enable
end

#ring 1 configuration#
#Creating domain name service name and level#
!
ethernet cfm domain name erp2 level 6
service name me2 vlan 10
mep crosscheck mpid 3 vlan 10
mep crosscheck mpid 4 vlan 10
end
!
ethernet cfm domain name erp3 level 6
service name me3 vlan 10
mep crosscheck mpid 5 vlan 10
mep crosscheck mpid 6 vlan 10
end

#ECFM global parameters#


!
ethernet cfm cc level 6 vlan 10 interval one-sec
ethernet cfm cc enable level 6 vlan 10
end

#Associating the MPID to the interface#


!
interface gi 0/11
ethernet cfm mep level 6 mpid 5 vlan 10 active
end
!
interface prot 1
ethernet cfm mep level 6 mpid 4 vlan 10 active
end

#ring 2 configuration#
#Creating domain name service name and level#
!
ethernet cfm domain name erp22 level 6
service name me22 vlan 20
mep crosscheck mpid 23 vlan 20
mep crosscheck mpid 24 vlan 20
end
!
ethernet cfm domain name erp23 level 6
service name me23 vlan 20
mep crosscheck mpid 25 vlan 20
mep crosscheck mpid 26 vlan 20
end

#ECFM global parameters#


!
ethernet cfm cc level 6 vlan 20 interval one-sec
ethernet cfm cc enable level 6 vlan 20
end

#Associating the MPID to the interface#


!
interface gi 0/11
ethernet cfm mep level 6 mpid 25 vlan 20 active
end
!
interface prot 1
ethernet cfm mep level 6 mpid 24 vlan 20 active
end
#configuring the ERPS#
#Configuring the ERPS protocol#
!
no shutdown aps ring
aps ring enable
end

#creating the Vlan group#


!
aps ring vlan-group-manager erps
aps ring map vlan-group 1 add 10
aps ring map vlan-group 2 add 100,200
aps ring map vlan-group 3 add 20
end

#configuring the ring1#


#associating the interfaces to the ring#
!
aps ring group 1
aps working interface prot 1 gi 0/11 vlan 10
aps working meg 1 me 1 mep 4 meg 2 me 1 mep 5
aps ma vlan-group-list 1,2
aps protection-type service-based
aps revert 60000
aps group active
end

#configuring the ring2#


#associating the interfaces to the ring#
!
aps ring group 2
aps working interface prot 1 gi 0/11 vlan 20
aps working meg 1 me 1 mep 24 meg 2 me 1 mep 25
aps ma vlan-group-list 3
aps protection-type service-based
aps revert 60000
aps group active
end

You might also like