# Enter the privileged EXEC mode.
Ruijie# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
#Configure the link mode of the Ethernet ring port and the default VLAN.
Ruijie(config)# interface fastEthernet 0/1
Ruijie(config-if)# switchport mode trunk
Ruijie(config-if)# exit
Ruijie(config)# interface fastEthernet 0/2
Ruijie(config-if)# switchport mode trunk
Ruijie(config-if)# exit
# Enter the ERPS configuration mode.
Ruijie(config)# erps raps-vlan 4093
# Add the ports that participate in the ERPS protocol computing to the Ethernet ring.
Ruijie(config-erps4093)# ring-port west fastEthernet 0/1 east fastEthernet
0/2
#Configure the Ethernet subring.
Ruijie(config)# erps raps-vlan 100
Ruijie(config)# interface fastEthernet 0/3
Ruijie(config-if)# switchport mode trunk
Ruijie(config-if)# exit
Ruijie(config)# erps raps-vlan 100
Ruijie(config-erps100)# ring-port west fastEthernet 0/3 east virtual-channel
# Associate the subring with other Ethernet rings.
Ruijie(config-erps100)# sub-ring associate raps-vlan 4093
# Enable the topology changing notification for the subring.
Ruijie(config-erps100)# sub-ring tc-propagation enable