Routing IP routing
Digi TransPort WR Routers User Guide
176
3. Set the administrative distance for static routes.
digi.router> ip admin-static 5
4. Save the configuration.
digi.router> save config
Configure a static route
A static route is a manually configured routing entry. Information about the route is manually entered
rather than obtained from dynamic routing traffic. TransPort devices supports up to 32 static routes.
Required configuration items
n Setting the destination network and mask.
n Setting the gateway IP address for routes using LAN and WAN Ethernet interfaces. The
gateway IP address should be on the same subnet as the IP address of the LAN or WAN
Ethernet interface in use.
n Setting the interface name for routes using cellular interfaces.
Optional configuration items
n Setting the metric for the route. The metric defines the order in which routes should be used if
there are two routes to the same destination. In such a case, the smaller metric is used.
Command line
Use the route command to configure IP routes.
Example 1
To configure a static route to the 192.168.47.0/24 network using the lan1 interface, which has an IP
address of 192.168.1.1 and a gateway at IP address of 192.168.1.254:
1. Set the destination network and mask.
digi.router> route 1 destination 192.168.47.0
digi.router> route 1 mask 255.255.255.0
2. Set the gateway IPaddress.
digi.router> route 1 gateway 192.168.1.254
3. Save the configuration.
digi.router> save config
Example 2
To configure a static route to the 44.1.0.0/16 network using the cellular1 interface: