
Chapter 6: Administration Tasks Not Performed in the Web Manager 127
The following example shows a new menu option with a command defined along with a
link to a new subnet identified with the newsubmenu keyword.
b. Add a definition for a submenu using the defined keyword.
4. Save and quit the file.
Configuring Routes With cli
The following procedures give examples for using the cli utility for configuring default, host and
network routes and assigning them to interfaces or to gateways.
NOTE: Setting a gateway IP address automatically creates a default route to the gateway’s IP address.
To configure routes with cli:
1. Log into the console as root.
2. Enter the
cli command.
3. Make sure the interface for which you want to configure a route is active.
4. Set a default route by setting a gateway IP address.
5. Add a host route, if desired, by entering the host’s IP address after the add network
st_routes command.
[main]
Access_Servers = /bin/spshell
Change_Password = /usr/bin/passwd
New_Menu_Option = command_pathname_and_options
New_Submenu = newsubmenu
[newsubmenu]
Submenu_Option1 = command_pathname_and_options
Submenu_Option2 = command_pathname_and_options
cli> set network interface interface_name active
yes
OK
cli> set network interface interface_name gateway gatewayIP
OK
cli> add network st_routes hostIP
Commenti su questo manuale