Configuring static routes -5, Configuring static routes – Digi PortServer TS8 User Manual
Page 47

Configuring IP Routing
9-5
Configuring Static Routes
This section describes how to configure PortServer TS 8/16 for static routes.
Related Information
See the set route command in the Digi One/PortServer TS Command Reference.
Procedure
To configure a static route over a PPP link, enter the following command:
set route net= addr mask=mask metric=hops wanname=interface gateway=gateway
where
•
addr is either the IP address of a system to be reached over this route or the network address of
the subnet that is to be reached on this route
•
mask is the mask to use for interpreting the IP address.
•
metric is the number of hop to the destination
•
interface is either
ether
if this route is over the Ethernet interface or the name of a user if the
route is over a PPP link
•
gateway is the IP address of the device that is the next hop to the destination
Example: Route Using the Ethernet Interface
In this example, a route to a subnet is created over the Ethernet interface. Key features include the
following:
•
The address on the net field is a subnetwork address, not the IP address of a specific device
•
The wannane=ether, indicating that this route is over the Ethernet interface
•
The metric field indicates that packets to this subnet will pass through two routers
•
The gateway field indicates that all packets using this route are to be forwarded to the device at
IP address 191.21.21.2.
set route net=199.21.33.0 mask=255.255.255.0 metric=2 wannname=ether gateway=199.21.21.2
Example: Route Using a PPP Link
In this example, a route to a subnet is created over the Ethernet interface. Key features include the
following:
•
The address on the net field is IP address of a specific device, not a subnetwork address
•
The wannane is the name of a PPP user.
•
The metric field indicates that packets to this subnet will pass through two routers
•
The gateway field indicates that all packets using this route are to be forwarded to the device at
IP address 191.21.21.2.
set route net=199.21.33.44 mask=255.255.255.255 metric=2 wannname=ppp1 gateway=199.21.21.2