You can add (assign) an iSCSI interface
to a subnet using the Draft network configuration profile to validate and activate the
interface.
-
Create a Draft network configuration profile from the Active
profile.
netconfig
--create_draft_from
active
-
Add an iSCSI interface to a subnet.
nic
--assign
nic
--netconfig
draft [--array {name | serial}] [--subnet
subnet-label] [--tagged
{yes | no}] [--data_ip
addr]
-
Validate the Draft network configuration profile.
netconfig
--validate
draft
The array OS validates the configuration. If an error exists, the
array OS returns an error message. Resolve all errors before proceeding to the
next step.
-
Activate the Draft network configuration profile.
netconfig
--activate
draft
--force_ip_update
Adding the eth1 interface to the sub5 subnet using the Draft network
configuration profile:
$ netconfig --create_draft_from active
$ nic --assign eth1 --netconfig draft --array prod22 --subnet sub5 --tagged yes --data_ip 192.168.50.50
$ netconfig --validate
INFO: Configuration is valid.
$ netconfig --activate