USRobotics U.S. Robotics SureConnect ADSL Ethernet/USB Router User Manual

Page 140

Advertising
background image

U.S. Robotics SureConnect ADSL Ethernet/USB Router User Guide

network, indicating the interface to be used for transmission. Alternately if the interface is point-to-
point, the name of the interface itself may be given. In this case the route remains valid even if the
local or remote addresses change.

route delete is used to remove routing entries.

route change is used to change the gateway for the specified destination address.

route get
is used to get information for routes to the specified destination.

route flush
will erase all routing table entries.

list routes
will list all routing table entries.

Examples:
route add -o -dest 192.168.3.0 -gateway 192.168.2.1
Adds a route entry with destination IP address 192.168.3.0 and gateway as 192.168.2.1.

route add –o -dest 192.168.3.101 -gateway 192.168.2.1 -interface eth0 -netmask
255.255.255.255 -mtu 1500 -hopcount 2
Adds a route entry with destination ip address set to 192.168.3.101, gateway as 192.168.2.1 and
interface name to be used for this route as eth0, netmask as 255.255.255.255, mtu as 1500 and
hopcount to 2.

route delete -o -dest 192.168.3.0
Deletes the route entry whose destination IP address is 192.168.3.0.

route change –o -dest 192.168.3.0 -gateway 192.168.2.4
Changes the gateway to 192.168.2.4 for the entry whose destination addresses match with
192.168.3.0.

route get –o -dest 192.168.3.0
Lists the route entry whose destination IP address is 192.168.3.0.

file:///P|/T_WRITER/Documentation/Released/9003%20(Guinness)/User%20Guide/9003%20(Guiness)%20prac%20template/cli.htm (16 of 71) [11/6/2002 8:58:45 AM]

Advertising