AlterPath ACS Command Reference Guide
107
Network
4.4 Routes and Default Gateway
The ACS has a static routing table that can be seen using the commands:
# route
or
# netstat -rn
The file
/etc/network/st_routes
is the ACS method for configuring static routes. Routes
should be added to the file (which is a script run when the ACS is initialized) or at the
prompt (for temporary routes) using the following syntax:
route [add|del] [-net|-host] target netmask nt_msk [gw gt_way] interf
The next lines will show how to configure the default gateway of the ACS .
VI mode
To add routes it is necessary to edit the
/etc/network/st_routes
file using the following
syntax:
route [add|del] [-net|-host]
target
[netmask]
mask
[gw]
gateway
[metric]
metric
Action/Option
Description
[add|del]
One of these tags must be present. Routes can be either added or deleted.
[-net|-host]
Net is for routes to a network and -host is for routes to a single host.
target
Target is the IP address of the destination host or network.
netmask
nt_msk
The tag netmask and nt_mask are necessary only when subnetting is used,
otherwise, a mask appropriate to the target is assumed. nt_msk must be
specified in dot notation.
gw gt_way
Specifies a gateway, when applicable. gt_way is the IP address or
hostname of the gateway.
interf
The interface to use for this route. Must be specified if a gateway is not.
When a gateway is specified, the operating system determines which
interface is to be used.
Table 4.2: Actions and options for the route command
Содержание AlterPath ACS
Страница 16: ...xvi Table of Contents...
Страница 29: ...13 This page has been left intentionally blank...
Страница 30: ...14 Preface...
Страница 68: ...52 Device Access...
Страница 86: ...70 Authentication Step 5 Saving changes To save the configuration run the command saveconf...
Страница 96: ...80 Authentication Save the configuration to flash 2 cli config savetoflash...
Страница 114: ...98 Authentication...
Страница 204: ...188 Administration To exit the CLI mode and return to ACS s shell issue the command cli quit...
Страница 268: ...252 Power Management with AlterPath PM Integration...
Страница 304: ...288 PCMCIA Cards Integration...
Страница 338: ...322 Profile Configuration...
Страница 364: ...348 Additional Features and Applications...
Страница 376: ...360 Appendix A New User Background Information...
Страница 406: ...390 Appendix C Cabling and Hardware Information This page has been left intentionally blank...
Страница 418: ...402 List of Tables...
Страница 420: ...404 List of Figures...