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 table default
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

IPv6 Default Route Example:

tnsr(config)# route table default
tnsr(config-route-table)# route ::/0
tnsr(config-rttbl6-next-hop)# next-hop 0 via 2001:db8:0:2::1
tnsr(config-rttbl6-next-hop)# exit
tnsr(config-route-table)# exit