Quantum DXi-Series Command Line Interface (CLI) Guide
6-67081-09 Rev B
February 2014
Network CLI Commands
101
Caution:
Changes made with
netcfg
CLI commands might cause the system
to become inoperable or unreachable.
Adding Network
Configurations
syscli --add netcfg --devname <DEVNAME> [--dhcp] |[--ipaddr <IPADDR> -
-netmask <NETMASK> --gateway <GATEWAY>] [--slaves
<DEV1>,<DEV2>,<...>] [--mode RR|AB|LACP] [--mtu <1500|9000>] [--
defaultgw YES] [--segments REP,MGMT,DATA] [--nat <NAT_IPADDR>] [--
hosts <IP1,IP2,IP3>] [--extHostIp YES] [--sure]
This CLI command allows the admin user to add and configure the specified
network device with the specified IP, netmask, and optional gateway.
Note:
The system does not automatically reboot; therefore, after making any
modification to your network configuration, you must manually reboot
the system. You can reboot the system using the
syscli
--nodemanage --reboot
command.
CLI command options:
•
--add
: Adds and configures network device.
•
--devname
: Device name.
Note:
Using the device name of a previously configured device will
override the previous network configuration values.
The general format is <label><devno>[.<vlanid>]:<vifno> where
•
label
: device label, which is an alphabetic string (e.g. bond, eth, ...)
•
devno
: device number, which can range from 1 to possibly 99,
depending on actual systems.
•
vlanid
: VLAN ID is an optional field and can range from 2 to 4094.
•
vifno
: virtual interface number, which is optional and is used to
distinguish each set of network layer (L3) values, i.e. IP address and
netmask values. It can range from 1 to possibly 99, depending on actual
systems. Examples of device names would be
eth0:1
or
bond0:2
.
Note:
Virtual interface numbers are used to configure multiple IP
addresses for an interface.
•
--dhcp
: If specified, use DHCP for network device configuration.
Ipaddr
,
netmask
, and
gateway
are automatically assigned by the DHCP server.
Note:
If
--dhcp
is entered, the IP info will be added by the DHCP server.
Otherwise, you must enter the IP address, netmask and gateway as
shown. When DHCP is used, only one IP address is supported; there
is no VIF number. Also, VLAN support is not provided when using
DHCP
•
--ipaddr
: IP address in decimal dotted notation (e.g. 10.20.30.156).