ZyXEL Communications VMG1312 Cli Reference Manual page 43

Hide thumbs Also See for VMG1312:
Table of Contents

Advertisement

www.zyxel.com
COMMANDS
add add a new route entry
delete delete a route entry
show show current content of routing table including static and dynamic
route entries
OPTIONS
ipaddress
the destination network or host IP address in dotted decimal notation.
subnetmask
when adding a network route, the netmask must be specified. Target address must have zero matching
with the zero portion in NM. Otherwise,
command will fail and display message "netmask doesn't match route address"
gateway
route packets via a gateway. NOTE: The specified gateway must be reachable first. This usually
means that you have to set up a static route to the gateway beforehand. If you specify the address of
one of your local interfaces, it will be used to decide about the interface to which the packets should
be routed to.
interface
force the route to be associated with the specified device, as the kernel will otherwise try to determine
the device on its own by checking already existing routes and devices.
EXAMPLES
o add a route to the network 192.56.76.x via "br0" interface.
> route add 192.56.76.0 255.255.255.0 br0
o add route to to gateway 10.6.33.129 for network 192.57.66.x.
> route add 192.57.66.0 255.255.255.0 10.6.33.129
OUTPUT
The output of the kernel routing table is organized in the following columns
Destination
The destination network or destination host.
Gateway
The gateway address or * if none set.
Genmask
ZyXEL Confidential
43

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents