Adding a NIC
Scenarios
If more NICs are required for your HECSs, perform the following steps to add a NIC to the HECS:
Procedure
- Log in to the management console.
- Click
in the upper left corner and select the desired region and project. - Under Computing, click Halo ECS.
- Click the name of the HECS to which a NIC is to be added.
- Click the NICs tab. Then, click Add NIC.
- Select the security group and subnet to be added on the page shown in the following figure. Select the subnet and security group to be added. Figure 1 Selecting the security group and subnet
- Security Group: You can select multiple security groups at a time. In this case, the access rules of all the selected security groups apply to the HECS.
- Private IP Address: If you need to add a NIC with a specified IP address to the HECS, enter a private IP address.
- Click OK.
Follow-up Operations
Some OSs cannot identify newly added NICs. In this case, you must manually activate the NICs. Ubuntu is used as an example in the following NIC activation procedure. Required operations may vary among systems. For additional information, see the documentation for your OS.
- Locate the row that contains the HECS, and click Remote Login in the Operation column.
Log in to the HECS.
- Run the following command to view the NIC name:
In this example, the NIC name is eth2.
- Run the following command to switch to the target directory:
- Run the following command to open the interfaces file:
vi interfaces
- Add the following information to the interfaces file:
auto eth2
iface eth2 inet dhcp
- Run the following command to save and exit the interfaces file:
:wq
- Run either the ifup eth2 command or the /etc/init.d/networking restart command to make the newly added NIC take effect.
X in the preceding command indicates the NIC name and SN, for example, ifup eth2.
- Run the following command to check whether the NIC name obtained in step 2 is displayed in the command output:
ifconfig
For example, check whether eth2 is displayed in the command output.
- If yes, the newly added NIC has been activated, and no further action is required.
- If no, the newly added NIC failed to be activated. Go to step 9.
- Log in to the management console, locate the row that contains the HECS. In the Operation column, click More and then click Restart.
- Run the following command to check whether the NIC name obtained in step 2 is displayed in the command output:ifconfig
- If they are the same, no further action is required.
- If no, contact customer service.
Last Article: Overview
Next Article: Deleting an Extension NIC
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.