Chapter Two: Command Set

17
Network Controller Configuration

These commands configure the network ports. They can also be used to create virtual bonding netw ork ports

(teams) for high availability and/or load balancing.

Command Argument Description
get network -t/--type {port}
-c/--count
-x/--xml
For example: get –t port –c count network
Gets the number of ports.
get network -t/--type {port / alias}
-n/ --name <name of the adapter >
-i/--info
-x/--xml
Displays the given network port
information.
set network -t/--type {port}
-n/--name <Name of the NIC>
-d/--dhcp
-x/--xml
For example: set –t port –n nic-1 –d network
Configures the given network port
to work with DHCP.
set network -t/--type {port / alias}
-n/--name <Name of the NIC>
-i/--ip <IP Address>
-m/--mask <net mask>
-g/--gate <Gateway> (optional)
-p/--pridns <Primary DNS> (optional)
-s/--secdns <Secondary DNS>(optional)
-f/--dnssuff <DNS suffix>(optional)
-j/--mtu <size> (optional)
Configures the specified network
port to work with the given
STATIC IP configuration.
get network -t/--type {adp}
-c/--count
-x/--xml
Displays the number of network
adapters present.
list network -t/--type {adp} Displays the available network
adapters and their status.
create network -t/--type {team}
-m/--mode {1/2/3}
-p/--pri <primary NIC>
-s/--sec <secondary NIC>
-x/--xml
Creates a team named Team-1, Team-2, and so on,
depending on available NICs in system
For example: create –t team –p nic-1 –s nic-2 –m 1
network
Creates a network team with the
given mode. The supported modes
are:
1 – Balance Round Robin
2 – 802.3 AD (with pre-configured
switch)
3 – Balance TB
delete network -t/--type {team}
-n/--name <name of the Team>
-x/--xml
For example: delete –t team –n Team-1 network
Deletes the network team with the
given name.
get network -t/--type {team}
-i/--info
-n/--name <name of the Team>
-x/--xml
For example: get –t team –i –n Team-1 network
Displays the number of NICs
present in the given team.
get network -t/--type {team}
-i/--info
-n/--name <name of the Team>
-x/--xml
Displays the given network team
information.
list network -t/--type {adp/port}
-x/--xml
Displays various information for
the available network ports
including their status.
add network -t/--type alias
-n/--name <alias name>
Adding an alias adapter for a
specific NIC port