虚拟化容器,大数据,DBA,中间件,监控。

How to changing XenServer Management IP Address

29 11月
作者:admin|分类:容器虚拟化

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

浏览2368 评论0
返回
目录
返回
首页
rhel6/RHEL7 yum 源配置 XenServer6 安装与操作VM虚拟机速度极慢 Extremely slow VM install on xenserver 6.0