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

Page 139

Advertising
background image

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

ifconfig -o eth0 inet 192.168.2.185 broadcast 192.168.255.255 netmask
255.255.00.00 mtu 900
Sets the broadcast address, netmask and mtu for the eth0 interface.

1.5

route

Allows the user to add, delete, and change a routing entry or allows the user to get
information about an entry.


route add –o -dest <dest_ip_addr> -gateway <gateway_ip_addr> [-netmask mask] [-mtu value] [-
hopcount value]
route add –o -dest <dest_ip_addr> -interface if_name [-netmask mask] [-mtu value] [-hopcount
value]

route delete –o -dest <dest_ip_addr>

route change –o -dest <dest_ip_addr> -gateway <new_ip_addr>

route get –o -dest <dest_ip_addr>

route flush

list routes


route add
is used to add a routing entry. The destination address and the gateway to reach this
destination address must be specified. The netmask will be computed based upon the class of the
destination address if it is not specified. For example, a netmask of 255.255.255.0 will be taken for
a destination address of 192.168.3.0 since this is a class C address. If the destination is directly
reachable via an interface requiring no intermediary system to act as a gateway, the interface
modifier should be specified. The gateway given is the address of this host on the common

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

Advertising