Tip

This is the documentation for the 19.12 version. Looking for the documentation of the latest version? Have a look here.

Default RouteΒΆ

In TNSR, the default route, sometimes called a default gateway, is the gateway of last resort. Meaning, traffic that is not local and does not have any other route specified will be sent using that route. There is no default keyword in TNSR; Instead, the special network 0.0.0.0/0 is used for IPv4 and ::/0 is used for IPv6.

In this example, the gateway from Example Configuration is added using the WAN interface:

IPv4 Default Route Example:

tnsr(config)# route ipv4 table ipv4-VRF:0
tnsr(config-route-table-v4)# route 0.0.0.0/0
tnsr(config-rttbl4-next-hop)# next-hop 0 via 203.0.113.1 GigabitEthernet0/14/1
tnsr(config-rttbl4-next-hop)# exit
tnsr(config-route-table-v4)# exit

IPv6 Default Route Example:

tnsr(config)# route ipv6 table ipv6-VRF:0
tnsr(config-route-table-v6)# route ::/0
tnsr(config-rttbl6-next-hop)# next-hop 0 via 2001:db8:0:2::1 GigabitEthernet0/14/1
tnsr(config-rttbl6-next-hop)# exit
tnsr(config-route-table-v6)# exit