Only when the physical switch is configured with the trunk VLAN for the management network, you need to refer to the following procedure to configure a subinterface for the management network port of the nodes to be added. Otherwise, skip this section.
Log in to the ACOS system of the nodes to be added using the default root account.
Run the cd /etc/sysconfig/network-scripts/ command to navigate to the port configuration file directory.
Run the ip a command to view the port information of all NICs, and then run the ethtool <port> command to view the speed of each NIC to determine which port is used for the management network, where <port> represents the actual name of the port.
Run the following command in the port configuration file directory to create a VLAN subinterface for the port, and then configure the IP address, gateway, and subnet mask for it.
network-preconfig create-vlanif --iface <iface> --ipaddr <ipaddr> --netmask <netmask> --gateway <gateway> --vlanid <vlanid>The fields with the <> symbol represent the parameters of the management network.
| Parameter | Description |
|---|---|
iface |
The name of the port.
|
ipaddr |
The actually planned IP address. |
netmask |
The actually planned subnet mask. |
gateway |
The actually planned gateway. |
vlanid |
The actually planned VLAN ID. |
If the following information is displayed, the VLAN subinterface has been created and the management network port has been successfully configured with the subinterface.
create vlan interface success