• Bare Metal Server

bms
  1. Help Center
  2. Bare Metal Server
  3. User Guide
  4. Network
  5. XenServer on BMS
  6. Configuring the User-defined VLAN NIC for the BMS

Configuring the User-defined VLAN NIC for the BMS

After the XenServer BMS is created, you need to bond network ports of the user-defined VLAN NIC.

Single-Node Scenario

  1. Log in to the XenServer BMS.
  2. Run the ip link command to query the port information. The following figure shows an example command output.

  3. Select two network ports to be bonded from those displayed in the command output (for example, xenbr4 and xenbr5) and run the following command to configure a temporary IP address for one of the two ports, for example xenbr4 (the temporary IP address is an IP address in the user-defined subnet segment in section Creating a User-defined Network (except x.x.x.1):

    ip addr add 10.10.10.10/24 dev xenbr4

  4. Log in to the XenCenter BMS, open the control panel, and set an IP address of one of the ports to enable the XenCenter BMS to communicate with the XenServer BMS. (The IP address must be in the same network segment as the IP address configured in step 3, for example 10.10.10.11.)

  5. Start XenCenter, choose Server > Add and add the XenServer information.

    User name and password are user root of the XenServer OS and its password, respectively.

  6. After the XenCenter BMS is connected to XenServer, click the Networking tab, select network port NIC 4 (xenbr4), and click Configure in the lower left corner to configure a fixed IP address for the network port.

  7. Bond network ports xenbr4 and xenbr5.

    Right-click NIC 4 and choose Add.

    Select Bonded Network and click Next.

    Select NIC 4 and NIC 5 and click Finish.

  8. After the network ports are bonded, a record of the bonded network ports numbered xapi is displayed on the XenServer.

Cluster Scenario

  1. Log in to the XenServer BMS.
  2. Run the following command to obtain the MAC addresses of the two physical network ports used by the VPC network:

    bash /opt/huawei/GetVpcNicMac.sh

    Information similar to the following is displayed:

  3. Run the ip link command to query the port information.
  4. In the displayed network ports, select two virtual network ports (for example xenbr4 and xenbr5) except for the network ports (xenbr1 and xenbr2) used by the VPC. Configure the user-defined VLAN NIC by following the instructions in steps 3 to 8 in Single-Node Scenario.
  5. Log in to other XenServer BMSs in the cluster one by one and perform the preceding operations to configure the user-defined VLAN NIC.