Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-02 Rev A
July 2011
Netcfg CLI Commands
77
Caution:
Changes made with
netcfg
CLI commands might cause the system
to become inoperable or unreachable.
Adding Custom
Network
Configurations
syscli --add netcfg --devname <DEVNAME> --ipaddr <IPADDR> --netmask
<NETMASK> [--gateway <GATEWAY>] [--policy REP] [--slaves
<DEV1>,<DEV2>,<...>] [--restart [--sure]]
Before adding new configurations, you must delete the existing or default
bonds. This CLI command allows the admin user to add and configure the
specified network device with the specified IP, netmask, and optional gateway.
Note:
After you restore a previously backed up netcfg configuration, the
system does not automatically reboot; you must manually reboot the
system.
CLI command options:
•
--devname
: Device name. The general format is
<label><devno>[:<vifno>] where
•
label
: device label, which is an alphabetic string (e.g. bond, eth, ...)
•
devno
: device number, which can range from 0 to possibly 99,
depending on actual systems.
•
vifno
: virtual interface number, which is optional and can range from 1
to possibly 99, depending on actual systems.
•
--ipaddr
: IP address in decimal dotted notation (e.g. 10.20.30.156).
•
--netmask
: Netmask in decimal dotted notation (e.g. 255.255.255.0)
•
--gateway
: If specified, IP address of gateway
•
--policy
: If specified, the policy to set
•
--slaves
: If --slaves is specified, specify one or more slave device names
separated by commas.
•
--restart
: Specifies whether to restart the system after adding custom
network configuration.
•
--sure
: if specified, the command will execute and restart without asking for
confirmation.
Note that this command creates a custom network configuration and renders
the following network commands unusable:
•
•
•
•
Setting Up a Segmented Network
•