Viewing Routes

There are two ways to view the routes: Via the WebGUI, and via the command line.

To view the routes in the WebGUI, navigate to Diagnostics > Routes and output is shown similar to this Figure.

The output from the command line is similar to that seen in the WebGUI:

# netstat -rWn Routing tables   Internet: Destination        Gateway        Flags        Use        Mtu        Netif Expire
default198.51.100.1UGS18221500igb1
10.2.0.0/24link#2U01500igb0
10.2.0.1link#2UHS016384lo0
127.0.0.1link#11UH20416384lo0
198.51.100.0/24link#3U11811500igb1
198.51.100.100:08:a2:09:95:b6UHS27891500igb1
198.51.100.2link#3UHS016384lo0

The columns shown on these screens indicate various properties of the routes, and are explained later in this section.

Destination

This column contains the destination host or network. The default route for the system is simply listed as default. Otherwise, hosts are listed as by IP address, and networks are listed with an IP address and CIDR subnet mask.

Gateway

A gateway is the router through which packets going to a specific destination are sent. If this column shows a link, such as link#1, then that network is directly reachable by that interface and no special routing is necessary. If a host is visible with a MAC address, then it is a locally reachable host with an entry in the ARP table, and packets are sent there directly.

Flags

There are quite a few flags, all of which are covered in the FreeBSD man page for netstat(1), reproduced in Table

Route Table Flags and Meanings with some modifications.

Table 1: Route Table Flags and Meanings

LetterFlagMeaning
1RTF_PROTO1Protocol specific routing flag #1
2RTF_PROTO2Protocol specific routing flag #2
3RTF_PROTO3Protocol specific routing flag #3
BRTF_BLACKHOLEDiscard packets during updates
bRTF_BROADCASTRepresents a broadcast address
DRTF_DYNAMICCreated dynamically by redirect
GRTF_GATEWAYDestination requires forwarding by intermediary
HRTF_HOSTHost entry (net otherwise)
LRTF_LLINFOValid protocol to link address translation
MRTF_MODIFIEDModified dynamically (by redirect)
RRTF_REJECTHost or net unreachable
SRTF_STATICManually added
URTF_UPRoute usable
XRTF_XRESOLVEExternal daemon translates proto to link address

For example, a route flagged as UGS is a usable route, packets are sent via the gateway listed, and it is a static route.

Refs

This column counts the current number of active uses of a given route.

Use

This counter is the total number of packets sent via this route. This is helpful for determining if a route is actually being used, as it will continually increment as packets utilize the route.

Netif

The network interface used for this route.

Expire

For dynamic entries, this field shows how long until this route expires if it is not used again.