您的位置:首页 > 其它

How to Replace a Network Interface Card in a XenServer Host

2011-11-29 14:30 495 查看
Summary[/b]

This document described the procedure to replace a NIC (Network Interface Card) in a XenServer Host. This procedure can be used, for example, if you are required to replace a faulty NIC.
Requirements[/b]
Console access to the XenServer host
Basic knowledge of the XenServer’s CLI
Prerequisites[/b]
The XenServer host must be standalone and not joined to a resource pool.
Replacing the NIC used as management interface requires the use of the host console.
Procedure[/b]
The following procedure describes the steps required to replace the management interface. If the NIC you are replacing is not the management interface you can skip steps 2 and 8. Step 7 is only required if you need to assign an IP address to the PIF.

1. Shutdown all the virtual machines on the host using XenCenter or from the console:

xe vm-shutdown uuid=<vm_uuid>[/b]
2. Disable the management interface using the host-management-disable command:

[/b]xe host-management-disable[/b]
3. Remove the PIF records of the NICs being replaced using the pif-forget command:

[/b]xe pif-forget uuid=<pif_uuid>[/b]
4. Shutdown the host and replace the NIC:

[/b]xe host-disable host=<host_name>[/b]
5. Re-introduce the devices using the pif-introduce command:

[/b]xe pif-introduce device=<device_name> host-uuid=<host-uuid> mac=<mac_address>[/b]

Example
:

xe pif-introduce device=eth0 host-uuid=49e1cde9-a948-4f8f-86d5-3b681995566a mac=00:19:bb:2d:7e:7a
6. Verify the new configuration using the pif-list command:

[/b]xe pif-list params=uuid,device,MAC[/b]
7. Reset the interface address configuration using the pif-reconfigure-ip command:

[/b]xe pif-reconfigure-ip uuid=<pif_uuid> mode=static IP=<ip_address> netmask=<netmask> gateway=<gateway> DNS=<dns>[/b]
8. Reset the host management interface using the host management-reconfigure command:

[/b]xe host-management-reconfigure pif-uuid=<pif_uuid>[/b]
本文出自 “憂零的博客” 博客,请务必保留此出处http://sunyu.blog.51cto.com/744725/728937
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: