beautypg.com

Add ip defaultroute gateway

Page 40

background image

A-2

A

PPENDIX

A: CLI C

OMMAND

D

ESCRIPTION

TFTP to export the updated file to the system’s FLASH file system, and use the
verify filter command to check the filter’s syntax.

add ip defaultroute

gateway

{ metric [1] }

Defines a default gateway IP router, which acts as the default route for IP packets
destined for remote hosts.

add ip network

address [ip_net_address]
frame [ETHERNET_II | SNAP | LOOPBACK]
{ interface [eth:1] }
{ enabled [yes] }

Adds an IP network to the list of IP networks available over the specified interface.

add ip route

gateway [gateway_addr]

metric [hop_count]

Adds an entry to the IP routing table. IP packets destined for networks that match
this network will be routed to this address. The command list ip routes displays
your currently defined routes.

Parameters

Description

Designation of a filter file, up to twenty ASCII characters.

Parameters

Description

IP Address of the gateway router.

metric

Integer representing how far away the default router is, in “hops” through
other routers. Values: 1-15.

Parameters

Description

Name of IP network, consisting of up to 32 unique ASCII characters; space
must be surrounded by double quotes.

address

IP address of the network, in the format nnn.nnn.nnn.nnn, with or
without a mask specifier. The Mask Specifier can be ‘A’, ‘B’, ‘C’, or ‘H’, or
a numeric value from 8 to 30 that describes the number of one bits in the
mask. If you do not specify a mask, the system will gener ate it for you
from the network address.

frame

Frame encapsulation to be used on this IP network. The options are:
ETHERNET_II, LOOPBACK (for diagnostics), or SNAP.

interface

Name of the interface which this IP network will communicate over. The
default is the first LAN interface (eth:1).

enabled

This optional parameter indicates whether the network is enabled (YES) or
disabled (NO). YES is the default.

Parameters

Description

IP address of the remote network, in the format nnn.nnn.nnn.nnn, with or
without a mask specifier. The Mask Specifier can be ‘A’, ‘B’, ‘C’, or ‘H’, or a
numeric value from 8 to 30 that describes the number of one bits in the
mask. If you do not specify a mask, the system will generate it from the
network address.

gateway

IP address of gateway used to reach this remote network.

metric

An integer representing how far away the route is, in “hops” through other
routers. Values are 1-15.