Basic Configuration

This section covers basic configuration for both nodes so they are prepared for the remainder of the process.

Interface Names

The first configuration task is to set up custom interface names on both nodes. In this recipe, the hardware is identical, so the configuration is also identical.

Use the following commands on both nodes:

tnsr(config)# dataplane dpdk dev 0000:06:13.0 network name WAN
tnsr(config)# dataplane dpdk dev 0000:06:14.0 network name LAN
tnsr(config)# dataplane dpdk dev 0000:06:15.0 network name SYNC
tnsr(config)# service dataplane restart

Note

While this is not a required step, it is a best practice. Aside from being more convenient for administrators, VPF high availability state synchronization indexes by interface names. This enables VPF to associate state data with proper interfaces even when the hardware is not identical.

Interface Addresses

Now configure the interface addresses for each node. The interfaces must have IP addresses before they can accept VRRP addresses.

Primary Node

Interface setup for R1:

r1 tnsr(config)# interface WAN
r1 tnsr(config-interface)# ip address 203.0.113.28/24
r1 tnsr(config-interface)# enable
r1 tnsr(config-interface)# exit
r1 tnsr(config)# interface LAN
r1 tnsr(config-interface)# ip address 10.28.0.2/24
r1 tnsr(config-interface)# enable
r1 tnsr(config-interface)# exit
r1 tnsr(config)# interface SYNC
r1 tnsr(config-interface)# ip address 10.28.1.1/30
r1 tnsr(config-interface)# enable
r1 tnsr(config-interface)# exit
r1 tnsr(config)#

Secondary Node

Interface setup for R2:

r2 tnsr(config)# interface WAN
r2 tnsr(config-interface)# ip address 203.0.113.29/24
r2 tnsr(config-interface)# enable
r2 tnsr(config-interface)# exit
r2 tnsr(config)# interface LAN
r2 tnsr(config-interface)# ip address 10.28.0.3/24
r2 tnsr(config-interface)# enable
r2 tnsr(config-interface)# exit
r2 tnsr(config)# interface SYNC
r2 tnsr(config-interface)# ip address 10.28.1.2/30
r2 tnsr(config-interface)# enable
r2 tnsr(config-interface)# exit
r2 tnsr(config)#

Default Route

After configuring the interfaces, both nodes need a default route through the upstream gateway on WAN.

Run the following commands on both nodes:

tnsr(config)# route table default
tnsr(config-route-table)# id 0
tnsr(config-route-table)# route 0.0.0.0/0
tnsr(config-rttbl4-next-hop)# next-hop 0 via 203.0.113.1
tnsr(config-rttbl4-next-hop)# exit
tnsr(config-route-table)# exit
tnsr(config)#

See also

Default Route