This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
virtualization:xenserver:xenserver_networking [2014/02/17 21:44] gcooper |
virtualization:xenserver:xenserver_networking [2019/10/30 12:19] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== XenServer Networking Notes ====== | ====== XenServer Networking Notes ====== | ||
+ | |||
+ | See also **[[virtualization: | ||
+ | |||
+ | See also **[[networking: | ||
+ | |||
+ | http:// | ||
+ | |||
+ | ===== Management Network ===== | ||
+ | |||
+ | * No Jumbo Frames | ||
+ | * No VLANs | ||
+ | |||
+ | ===== Storage Networks ===== | ||
+ | |||
+ | Jumbo Frames are enabled by setting MTU to 9000 on all Storage network interfaces: | ||
+ | |||
+ | * ZFS Storage Server | ||
+ | * Virtualization Hosts | ||
+ | |||
+ | Something like: | ||
+ | |||
+ | - Shutdown all VM's | ||
+ | - Remove the bond | ||
+ | - Set the MTU to 9000 on the NIC's | ||
+ | - Re-create the bond with MTU 9000 | ||
+ | - Start the VM's back up making sure the new bond is listed under the VM's networking | ||
+ | |||
+ | ===== Helpful Commands ===== | ||
+ | |||
+ | < | ||
+ | brctl show | ||
+ | |||
+ | arp -a | ||
+ | |||
+ | ifconfig xenbr0 | ||
+ | </ | ||
+ | |||
+ | ==== '' | ||
+ | |||
+ | ^XenServer “xe” Command | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
===== VLANs ===== | ===== VLANs ===== | ||
http:// | http:// | ||
+ | |||
+ | http:// | ||
* VLANs allow a single physical network to support multiple logical networks. | * VLANs allow a single physical network to support multiple logical networks. | ||
* To use VLANs with XenServer, the host's NIC must be connected to a VLAN trunk port (switch or router). | * To use VLANs with XenServer, the host's NIC must be connected to a VLAN trunk port (switch or router). | ||
+ | * Creating a VLAN in XenServer is done through the process of creating additional virtual interfaces that correspond to a specific VLAN tag. This is done through the XenCenter Host Network tab by adding an External network name and assigning an NIC with a VLAN number. | ||
* XenServer VLANs are represented by additional PIF objects representing VLAN interfaces corresponding to a specified VLAN tag. | * XenServer VLANs are represented by additional PIF objects representing VLAN interfaces corresponding to a specified VLAN tag. | ||
* XenServer networks can then be connected to the PIF representing the physical NIC to see all traffic on the NIC, or to a PIF representing a VLAN to see only the traffic with the specified VLAN tag. | * XenServer networks can then be connected to the PIF representing the physical NIC to see all traffic on the NIC, or to a PIF representing a VLAN to see only the traffic with the specified VLAN tag. | ||
Line 15: | Line 69: | ||
* XenServer will leave 802.1q VLAN tags alone if there are no VLAN networks configured **on top of** your base interface, be that a single physical interface or a logical interface such as a bond. | * XenServer will leave 802.1q VLAN tags alone if there are no VLAN networks configured **on top of** your base interface, be that a single physical interface or a logical interface such as a bond. | ||
+ | ===== Bonding ===== | ||
+ | |||
+ | http:// | ||
+ | |||
+ | http:// | ||
+ | |||
+ | Whenever possible, create NIC bonds as part of initial resource pool creation prior to joining additional hosts to the pool or creating VMs. Doing so allows the bond configuration to be automatically replicated to hosts as they are joined to the pool and reduces the number of steps required. | ||
+ | |||
+ | Adding a NIC bond to an existing pool requires **one** of the following: | ||
+ | |||
+ | * Use the CLI to configure the bonds on the master and then each member of the pool. | ||
+ | * Use the CLI to configure the bonds on the master and then restarting each member of the pool so that it inherits its settings from the pool master. | ||
+ | * Use XenCenter to configure the bonds on the master. XenCenter automatically synchronizes the networking settings on the member servers with the master, so you do not need to reboot the member servers. | ||
+ | |||
+ | If you are not using XenCenter for NIC bonding, the quickest way to create pool-wide NIC bonds is to create the bond on the master, and then restart the other pool members. Alternatively, | ||
+ | |||
+ | ==== XenCenter ==== | ||
+ | |||
+ | **Select Host -> NICs (tab) -> Create Bond** | ||
+ | |||
+ | ==== CLI ==== | ||
+ | |||
+ | < | ||
+ | xe network-list | ||
+ | |||
+ | xe network-create name-label=" | ||
+ | |||
+ | xe pif-list | ||
+ | |||
+ | xe bond-create network-uuid=< | ||
+ | |||
+ | reboot | ||
+ | </ | ||
+ | |||
+ | ==== Storage ==== | ||
+ | |||
+ | If you are using bonding for resiliency for your storage traffic, you may want to consider using LACP instead of the Linux bridge bonding. To use LACP bonding, you must configure the vSwitch as your networking stack. For more information, |