User guide
170 Chapter 5. Command Line Interface Reference
Note: A route change in an IP virtual routing table takes effect immediately. However, the change is lost if it is
not saved before the next reboot.
ipaddr Ethernet LAN IP address (4 decimals separated by periods).
ipnetmask IP network mask (4 decimals separated by periods).
hops Number of routers through which the packet must go to get to its destination.
gateway IP address of the gateway (4 decimals separated by periods).
tablename IP virtual routing table to which the route is added.
interface Ethernet interface through which the packet is sent out. This parameter may be omitted if the
router has only one Ethernet interface.
If the router has two physical Ethernet interfaces (an Ethernet hub router), the port number (0 or
1) must be specified.
To specify a logical interface other than logical interface 0, specify both the port number and the
logical interface number (<port #>:<logical #>, for example, 0:1).
Example:
The following commands add a route for IP address 10.1.2.0/255.255.255.0 to four routing tables: ROSA,
MIGUEL, FRANCISCO, and the default routing table. The first two routes are for Ethernet interface 0:1 and
use gateway 192.168.252.9; the second two are for the default Ethernet interface (0:0) and, therefore, specify
another gateway (192.168.252.7).
eth ip bindRoute 10.1.3.0 255.255.255.0 1 192.168.252.9 ROSA 0:1
eth ip bindRoute 10.1.3.0 255.255.255.0 1 192.168.252.9 MIGUEL 0:1
eth ip bindRoute 10.1.3.0 255.255.255.0 1 192.168.252.7 FRANCISCO
eth ip addRoute 10.1.3.0 255.255.255.0 1 192.168.252.7
ETH IP DEFGATEWAY
Assigns an Ethernet default gateway for packets whose destination address does not have a route defined.
This setting is most useful when IP routing is not enabled, in which case the system acts as an IP host (i.e., an end
system, as opposed to an IP router).
Note: This command requires a save and reboot before it takes effect.
Note: The following command is recommended instead of the eth ip defgateway command. It sends packets for
all IP addresses to the specified gateway:
eth ip addRoute 0.0.0.0 255.255.255.0 <gateway> 1
eth ip bindRoute <ipaddr> <ipnetmask> <hops> [<gateway>] <tablename> [<interface>]
eth ip defgateway <ipaddr> [<interface>]