108
Network
The below example will set the default gateway to the IP address 192.168.0.1. To
configure it follow these steps:
Step 1 - Open the
/etc/network/st_routes
file using the VI editor.
To do this, run the command:
# vi /etc/network/st_routes
Step 2 - Inserting the default route.
Insert into this file the default route using one of the following commands:
# route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.0.1
the same route can be added in the following way:
# route add default gw 192.168.0.1
To add a default route to the 192.168.0.1 IP address, just ONE of the above
commands must be inserted into the file
/etc/network/st_routes
.
Step 3 - Save the changes made.
To save the changes run the following command:
# saveconf
CLI Method - Routes
Basically all configuration regarding the addition of static routes can be done accessing
the following menu of the CLI interface:
cli> config network stroutes
The example below will show how to add a default gateway in the unit:
Step 1 - Open the CLI interface by issuing the command:
# CLI
Step 2 - Inserting the default route. The default gateway of the below example
will be 192.168.0.1
cli> config network stroutes add default gateway 192.168.0.1
Step 3 - Activate the configuration.
cli> config runconfig
Содержание 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...