Ring with two nodes HowTo
This document describes how to configure two nodes in a ring. See Figure 1.
.-------.
| | dir1 = (eth3)
<-dir1-+ RICH1 +-dir2-> dir2 = (eth4)
| |
'-+---+-'
| |
.-+---+-.
| | dir1 = (eth3)
<-dir1-+ RICH2 +-dir2-> dir2 = (eth4)
| |
'-------'
NOTE: In order to get two nodes to manage a single ring, they both need to have the exact same configuration with respect to iface and uuid in the ring chaining context.
RICH1:#> configure RICH1:/config/#> iface vlan10 RICH1:/config/iface-vlan10/#> no inet RICH1:/config/iface-vlan10/#> inet static 10.0.0.1/18 RICH1:/config/iface-vlan10/inet-static-10.0.0.1/#> end RICH1:/config/iface-vlan10/#> end RICH1:/config/#> ring RICH1:/config/ring/#> frntv2 1 RICH1:/config/ring/frnt-1/#> port eth1 RICH1:/config/ring/frnt-1/port-eth1/#> end RICH1:/config/ring/frnt-1/#> port eth2 RICH1:/config/ring/frnt-1/port-eth2/#> end RICH1:/config/ring/frnt-1/#> end RICH1:/config/ring/#> RICH1:/config/ring/#> coupling 1 RICH1:/config/ring/coupling-1/#> coupling-port eth3 RICH1:/config/ring/coupling-1/coupling-port-eth3/#> priority 100 RICH1:/config/ring/coupling-1/coupling-port-eth3/#> end RICH1:/config/ring/coupling-1/#> end RICH1:/config/ring/#> coupling 2 RICH1:/config/ring/coupling-2/#> coupling-port eth4 RICH1:/config/ring/coupling-2/coupling-port-eth4/#> priority 100 RICH1:/config/ring/coupling-2/coupling-port-eth4/#> end RICH1:/config/ring/coupling-2/#> end RICH1:/config/ring/#> chaining Activating RiCh with default settings. RICH1:/config/ring/chaining/#> uuid 11111111-1111-1111-1111-111111111111 RICH1:/config/ring/chaining/#> address 225.1.2.3 RICH1:/config/ring/chaining/#> iface vlan10 RICH1:/config/ring/chaining/#> dir1 1 RICH1:/config/ring/chaining/#> dir2 2 RICH1:/config/ring/chaining/#> mode active RICH1:/config/ring/chaining/#> end RICH1:/config/ring/#> end RICH1:/config/#> end Applying configuration. Configuration activated. Remember "copy run start" to save to flash (NVRAM). RICH1:/#>
Repeat the same steps for RICH2 with a lower priority for the coupling ports to make them work as backups.
To enable SNMP-traps create an action and connect a trigger to it according to the example below.
RICH1:#> configure RICH1:/config/#> alarm RICH1:/config/alarm/#> action RICH1:/config/alarm/action-3/#> target snmp RICH1:/config/alarm/action-3/#> end RICH1:/config/alarm/#> trigger RiCh RICH1:/config/alarm/trigger-3/#> action 3 RICH1:/config/alarm/trigger-3/#> end RICH1:/config/alarm/#> end RICH1:/config/#> end Applying configuration. Configuration activated. Remember "copy run start" to save to flash (NVRAM). RICH1:/#>