xe vlan-create network-uuid=<network_uuid>pif-uuid=<pif_uuid>vlan=5

5.Attach VM VIFs to the new network. See the section called “Creating networks in a standalone server” for more details.

Creating NIC bonds on a standalone host

Citrix recommends using XenCenter to create NIC bonds. For details, refer to the XenCenter help.

This section describes how to use the xe CLI to create bonded NIC interfaces on a standalone XenServer host. See the section called “Creating NIC bonds in resource pools” for details on using the xe CLI to create NIC bonds on XenServer hosts that comprise a resource pool.

Creating a NIC bond on a dual-NIC host

Creating a bond on a dual-NIC host implies that the PIF/NIC currently in use as the management interface for the host will be subsumed by the bond. The additional steps required to move the management interface to the bond PIF are included.

Bonding two NICs together

1.Use XenCenter or the vm-shutdowncommand to shut down all VMs on the host, thereby forcing all VIFs to be unplugged from their current networks. The existing VIFs will be invalid after the bond is enabled.

xe vm-shutdown uuid=<vm_uuid>

2.Use the network-createcommand to create a new network for use with the bonded NIC. The UUID of the new network is returned:

xe network-create name-label=<bond0>

3.Use the pif-listcommand to determine the UUIDs of the PIFs to use in the bond: xe pif-list

4.Use the bond-create command to create the bond; separated by commas, specify the newly created network UUID and the UUIDs of the PIFs to be bonded. The UUID for the bond is returned:

xe bond-create network-uuid=<network_uuid>pif-uuids=<pif_uuid_1>,<pif_uuid_2>

Note:

See the section called “Controlling the MAC address of the bond” for details on controlling the MAC address used for the bond PIF.

5.Use the pif-listcommand to determine the UUID of the new bond PIF: xe pif-list device=<bond0>

6.Use the pif-reconfigure-ipcommand to configure the desired management interface IP address settings for the bond PIF. See Appendix A, Command line interface for more detail on the options available for the pif-reconfigure-ip command.

xe pif-reconfigure-ip uuid=<bond_pif_uuid> mode=DHCP

7.Use the host-management-reconfigurecommand to move the management interface from the existing physical PIF to the bond PIF. This step will activate the bond:

xe host-management-reconfigure pif-uuid=<bond_pif_uuid>

74

Page 94
Image 94
Citrix Systems 5.6 manual Creating NIC bonds on a standalone host, Creating a NIC bond on a dual-NIC host