Two consist nets with two redundant ETB nodes HowTo
This document describes how to configure two CN’s managed by two redundant ETBN’s in a single consist.
See Figure 1 below
.---------------------------.
/ UUID \ cst1
'-----------------------------'
.-------. .-------.
--+ +----+ +-- dir1 = (ethX5, ethX6)
<-dir1| etbn1 | | etbn2 |dir2-> dir2 = (ethX7, ethX8)
--+ +----+ +--
'-+--+--' '-------'
| | | |
--+----------------+-- CN1 vlan10 (ethX3)
| |
---+----------+-------- CN2 vlan20 (ethX4)
NOTE:In order to get two ETB nodes to manage two consist nets, they both need to have the exact same configuration with respect to uuid, node and ecn configuration.
Both nodes also need to have VRRP configured and enabled.
Start with ETBN 1 in the consist and configure vlans and the TTDP part.
etbn1:#> configure etbn1:/config/#> vlan 10 Creating new VLAN vid:10 with name: vlan10 etbn1:/config/vlan-10/#> untagged ethX3 etbn1:/config/vlan-10/#> end etbn1:/config/#> vlan 20 Creating new VLAN vid:20 with name: vlan20 etbn1:/config/vlan-20/#> untagged ethX4 etbn1:/config/vlan-20/#> end etbn1:/config/#> iface vlan10 etbn1:/config/iface-vlan10/#> no inet etbn1:/config/iface-vlan10/#> inet static 10.10.0.1/18 etbn1:/config/iface-vlan10/inet-static-10.10.0.1/#> end etbn1:/config/iface-vlan10/#> end etbn1:/config/#> iface vlan20 etbn1:/config/iface-vlan20/#> no inet etbn1:/config/iface-vlan20/#> inet static 10.20.0.1/18 etbn1:/config/iface-vlan20/inet-static-10.20.0.1/#> end etbn1:/config/iface-vlan20/#> end etbn1:/config/#> ttdp Activating TTDP with default settings. DNS Server activated etbn1:/config/ttdp/#> uuid 11111111-1111-1111-1111-111111111111 etbn1:/config/ttdp/#> node 1 ecn 1,2 etbn1:/config/ttdp/#> node 2 ecn 1,2 etbn1:/config/ttdp/#> ecn 1 vlan10 etbn1:/config/ttdp/#> ecn 2 vlan20 etbn1:/config/ttdp/#> dir1 ethX5,ethX6 Remember to manually set mdi/mdi-x mode in port settings for all agg ports. etbn1:/config/ttdp/#> dir2 ethX7,ethX8 Remember to manually set mdi/mdi-x mode in port settings for all agg ports. etbn1:/config/ttdp/#> local-id 1 etbn1:/config/ttdp/#> end TTDP: Created VLAN 492. Note that this VLAN will not be deleted automatically if TTDP is deactivated. etbn1:/config/#> vlan 2 Creating new VLAN vid:2 with name: vlan2 etbn1:/config/vlan-2/#> no multicast-snooping etbn1:/config/vlan-2/#> untagged lag-dir1,lag-dir2 etbn1:/config/vlan-2/#> end etbn1:/config/#> end Applying configuration. Configuration activated. Remember "copy run start" to save to flash (NVRAM**. etbn1:/#>
Now, repeat the exact steps above in the second ETB node. For brevity, only the steps that differs will be shown below.
... etbn2:/config/iface-vlan10/#> inet static 10.10.0.2/18 ... etbn2:/config/iface-vlan20/#> inet static 10.20.0.2/18 ... etbn2:/config/ttdp/#> local-id 2 ...
Note
See Port configuration on how to set MDI/MDIX on the aggregate ports.
Next step is to configure one VRRP instance for each CN on each node. Start with the node that will have the MASTER role for both CN’s. In this example, etbn1 is selected as MASTER.
First, the VRRP instance for CN1:
etbn1:#> configure etbn1:/config/#> router etbn1:/config/router/#> vrrp cn1 Creating new VRRP instance: cn1 Invalid settings: Interface not set. etbn1:/config/router/vrrp-cn1/#> iface vlan10 Warning: No ports have been added to the configured VLAN. VRRP will not work as expected with this configuration. Invalid settings: Invalid IPv4 address. etbn1:/config/router/vrrp-cn1/#> address 10.10.0.100 Invalid settings: VRID invalid. Valid values: 1 to 255. etbn1:/config/router/vrrp-cn1/#> vrid 132 etbn1:/config/router/vrrp-cn1/#> version 3 etbn1:/config/router/vrrp-cn1/#> priority 150 etbn1:/config/router/vrrp-cn1/#> interval 1 etbn1:/config/router/vrrp-cn1/#> preempt delay 1 etbn1:/config/router/vrrp-cn1/#> end etbn1:/config/router/#> end etbn1:/config/#> end Applying configuration. Configuration activated. Remember "copy run start" to save to flash (NVRAM). etbn1:/#>
Now the VRRP instance for CN2:
etbn1:#> configure etbn1:/config/#> router etbn1:/config/router/#> vrrp cn2 Creating new VRRP instance: cn2 Invalid settings: Interface not set. etbn1:/config/router/vrrp-cn2/#> iface vlan20 Warning: No ports have been added to the configured VLAN. VRRP will not work as expected with this configuration. Invalid settings: Invalid IPv4 address. etbn1:/config/router/vrrp-cn2/#> address 10.20.0.100 Invalid settings: VRID invalid. Valid values: 1 to 255. etbn1:/config/router/vrrp-cn2/#> vrid 132 etbn1:/config/router/vrrp-cn2/#> version 3 etbn1:/config/router/vrrp-cn2/#> priority 150 etbn1:/config/router/vrrp-cn1/#> interval 1 etbn1:/config/router/vrrp-cn1/#> preempt delay 1 etbn1:/config/router/vrrp-cn2/#> end etbn1:/config/router/#> end etbn1:/config/#> end Applying configuration. Configuration activated. Remember "copy run start" to save to flash (NVRAM). etbn1:/#>
Repeat the same steps for etbn2 with a lower priority to make it backup for both CN’s.
... etbn2:/config/router/vrrp-cn1/#> priority 100 ... etbn2:/config/router/vrrp-cn2/#> priority 100 ...