You can add one or more static routes
using the Draft network configuration profile. The Draft profile is used to validate
and activate the configuration changes.
-
Create a Draft network configuration profile from the Active
profile.
netconfig
--create_draft_from
active
-
Add a static route.
route
--add
network
--netconfig
name [--gateway
gateway]
-
(Optional) Repeat Step 2 to add more routes.
-
Validate the Draft network configuration profile.
netconfig
--validate
draft
The array OS validates the configuration. If an error exists, array
OS returns an error message. Resolve all errors before proceeding to the next
step.
-
Activate the Draft network configuration profile.
netconfig
--activate
draft
Adding a static route using the Draft network configuration
profile:
$ netconfig --create_draft_from active
$ route --add 192.168.50.0 --netconfig draft --gateway 192.168.50.101
$ netconfig --validate
INFO: Configuration is valid.
$ netconfig --activate