记录日常工作关于系统运维,虚拟化云计算,数据库,网络安全等各方面问题。

How to changing XenServer Management IP Address


 修改XenServer管理IP

Today i am in customer who want to test our XenServer, but they give me a used IP Address, so we must change the XS IP Address. Catuion we can not use the Linux command line to change it, if u use Linux command line i think that is not a good idea,your XS will be crush, so the right way is use XenServer Command line.

1. Login to the XS console as root

2. Use the “xe pif-list” command to list the physical interfaces to find
the management interface and it’s corresponding uuid, in this
example it is eth0.
[root@xenserver-iyheprcl ~]# xe pif-list
uuid ( RO) : eedcd261-5aac-7de6-f032-864d861b926c
device ( RO): eth0
...

3. Use the uuid from the management interface, and enter the “xe
pif-param-list uuid=eedcd261-5aac-7de6-f032-864d861b926c”
command, to verify it is the correct interface that you are about to
change.
[root@xenserver-iyheprcl ~]# xe pif-param-list uuid=eedcd261-5aac-7de6-f032-
864d861b926c
uuid (RO) : eedcd261-5aac-7de6-f032-864d861b926c
device ( RO): eth0
MAC ( RO): 00:15:17:4a:c8:54

IP-configuration-mode ( RO): Static
IP ( RO): 192.168.100.10
netmask ( RO): 255.255.255.0
gateway ( RO): 192.168.100.1

4.Use the “xe pif-reconfigure-ip uuid=eedcd261-5aac-
7de6-f032-864d861b926c mode=static IP=10.217.104.12
netmask=255.255.255.0 gateway=10.217.104.1” command to
reconfigure the IP Address of the management interface, using
the uuid for that interface, supplying the ip address, mask and
gateway.

[root@xenserver-iyheprcl ~]# xe pif-reconfigure-ip uuid=eedcd261-5aac-7de6-
f032-864d861b926c mode=static IP=10.217.104.12 netmask=255.255.255.0
gateway=10.217.104.1

5.Use the “xe pif-param-list uuid=eedcd261-5aac-7de6-f032-
864d861b926c” command, to verify the ip address was changed.
uuid ( RO) : eedcd261-5aac-7de6-f032-864d861b926c
device ( RO): eth0
MAC ( RO): 00:15:17:4a:c8:54

IP-configuration-mode ( RO): Static
IP ( RO): 10.217.104.12
netmask ( RO): 255.255.255.0
gateway ( RO): 10.217.104.1





欢迎访问,本空间由《一佳互联》提供技术支持。

个人博客 http://www.micoder.cc



转载请标明出处【How to changing XenServer Management IP Address】。

《www.micoder.cc》 虚拟化云计算,系统运维,安全技术服务.

网站已经关闭评论