How To Install an Additional Physical Network Interface Card in a XenServer Host

How To Install an Additional Physical Network Interface Card in a XenServer Host

Document ID: CTX116112 / Created On: Feb 1, 2008 / Updated On: Feb 4, 2010
Average Rating:
View products this document applies to

Summary

This article describes how to install an additional network interface card (NIC) in a XenServer host. When you add an additional NIC, it is not detected automatically by the XenServer Host software-you must manually detect and configure the NIC.

Note: The procedure described in this article does not apply to XenServer 4.1 or later.

Procedure

1. Install the NIC as described by the manufacturer's documentation.

2. Restart the XenServer Host and log on.

3. Detect the device using the following command:
# kudzu

4. When the device is detected, select Configure in the kudzu window.

5. Confirm that the new device is created and detected properly by using the following commands:
# lspci
# mii-tool

You will find the new NIC is created as ethn, where n is the next available integer for labeling NICs. That is, if originally there was a single NIC, eth0, this newly added one should be eth1 (the rest of this procedure assumes this is the case).

6. To get the MAC address of the network card, specify a temporary IP address for the NIC.
# ifconfig eth1 IP_Address
# ifconfig

The output shows the MAC address of the NIC.

7. Copy the file ifcfg-eth0 to ifcfg-eth1 and ifcfg-xenbr0 to ifcfg-xenbr1 in directory /etc/sysconfig/network-scripts.

8. Edit the name eth0 to eth1 and xenbr0 to xenbr1 in file ifcfg-eth1and ifcfg-xenbr1 and also change the MAC address in file ifcfg-eth1.

9. If you want to specify a static IP for the network interface, read CTX116372 - How to Assign a Static IP Address to a XenServer Host.

This document applies to:

XenServer 3.1
XenServer 3.2
XenServer 4.0

Virtualization Servers and Hosts: 
Powered by Drupal