XenServer Administrator's Guide 4.1.0

Networking
35
xe pif-list
4. Use the bond-create command to create the bond by specifying the newly created network UUID and
the UUIDs of the PIFs to be bonded separated by commas. The UUID for the bond is returned:
xe bond-create network-uuid=<network UUID> pif-uuids=<PIF UUID 1>,<PIF UUID 2>
Note
See Section 4.2.4.2, “Controlling the MAC address of the bond” for details on controlling the
MAC address used for the bond PIF.
5. Use the pif-list command to determine the UUID of the new bond PIF:
xe pif-list device=bond0
6. Use the pif-reconfigure-ip command to configure the desired management interface IP address set-
tings for the bond PIF. See Chapter 5, 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-reconfigure command to move the management interface from the exist-
ing physical PIF to the bond PIF. This step will activate the bond:
xe host-management-reconfigure pif-uuid=<bond PIF UUID>
8. Use the pif-reconfigure-ip command to remove the IP address configuration from the non-bonded PIF
previously used for the management interface. This step is not strictly necessary but might help reduce
confusion when reviewing the host networking configuration.
xe pif-reconfigure-ip uuid=<old mgmt PIF UUID> mode=None
9. Move existing VMs to the bond network using the vif-destroy and vif-create commands. This step can
also be completed via XenCenter by editing the VM configuration and connecting the existing VIFs of
a VM to the bond network.
10. Restart the VMs shut down in step 1.
4.2.4.2. Controlling the MAC address of the bond
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. If DHCP is used to supply IP addresses to the host in most cases