connectorctl network config
To configure the network, use the connectorctl network config command.
When updating the network configuration, include the fields you want to change. If the existing network configuration is insufficient, you are prompted to enter necessary details to complete a correct configuration.
Note |
The system will reboot to apply all changes. Consequently, you lose connectivity and are be logged out. Ensure that you save any important work before proceeding with the configuration update. |
connectorctl network config { -p ip-network-stack | -i ip-address | -m netmask | -g gateway | -o domain | -n interface-name | -d dns-servers }
Syntax Description
Keywords and Variables | Description |
---|---|
-p ip-network-stack |
Network Stack. Use one of the following:
|
-i ipaddress[/prefix] |
IPv4 or IPv6 address formatted as: ip[/prefix]. |
-m netmask |
Netmask for IPv4 or prefix length IPv6 |
-g gateway |
Gateway address (IPv4 or IPv6) |
-o domain |
Search domain name |
-d dns-servers |
Comma-separated IP (IPv4 or IPv6) address list for multiple servers |
-n interface-name |
Interface name. Use one of the following:
|
Command History
Release 3 |
This command is introduced. |
Usage Guidelines
You can configure various settings for the network by specifying the right parameters. You can use this command to reconfigure the network entities in case of network change or network disruption.
Caution |
After you complete the network configuration, the system is automatically rebooted. After this, you lose connectivity and are logged out of the connector GUI. |
Examples
The following example shows how to configure the PRIMARY interface on an IPv4 stack, with details such as IP address, stack, search domain name, and DNS:
[spacesadmin@connector ~]$ connectorctl network config -p ipv4 -i 10.22.244.7/24 -n PRIMARY -g 10.22.244.1 -o cisco.com -d 171.70.168.183
Executing command:network
Command execution status:Success
-----------------------
Network setup completed with given configuration.
System reboot will happen in 10 seconds. Do not execute any other command...
Examples
The following example shows how to configure the SECONDARY interface on an IPv4 stack, with details such as IP address, stack, search domain name, and DNS:
[spacesadmin@connector ~]$ connectorctl network config -p ipv4 -i 10.7.0.11/24 -g 10.7.0.1 -o test.com -d 192.168.168.183 -n SECONDARY
Executing command:network
Command execution status:Success
-----------------------
Connection SECONDARY (5e970417-13b4-4ad8-af12-d125ce407c49) successfully added.
Network setup completed with given configuration.
Secondary interface - Added routes.
Secondary interface - Configured firewall zone.
System reboot will happen in 10 seconds. Do not execute any other command...