天天看点

ESX的VSWITCH坏了,如何转移到新建的虚拟交换机上?

其间,涉及一个平称切换的问题。我在这个问题时栽过一个跟头。

导致和美国同事在远程互换作两三个小时。

他出现什么界面,就手机拍图过来,然后,我根据他的照片,再指导他下一步的操作。

关键就出在没有平称过渡用于管理端口service console的vswif上。

默认值其为0,在未将所有实体网卡附加到新的vsiwth之前,要留一个实体网卡给原vswith,

然后,在打开ssh下,将gatewaydev切换。

然后,再将全部网卡转移。。

切记切记。。。

相关命令:

esxcfg-vswif -l

esxcfg-vswitch -l

esxcfg-nics -l

service network restart

相关文档如下:

<a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_us&amp;cmd=displaykc&amp;externalid=8375637">http://kb.vmware.com/selfservice/microsites/search.do?language=en_us&amp;cmd=displaykc&amp;externalid=8375637</a>

<a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_us&amp;cmd=displaykc&amp;externalid=1000266">http://kb.vmware.com/selfservice/microsites/search.do?language=en_us&amp;cmd=displaykc&amp;externalid=1000266</a>

<a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_us&amp;cmd=displaykc&amp;externalid=1007630">http://kb.vmware.com/selfservice/microsites/search.do?language=en_us&amp;cmd=displaykc&amp;externalid=1007630</a>

the esx service console connection relies on one default gateway address set in cat /etc/sysconfig/network:

networking=yes gatewaydev=vswif0 hostname=pa-tse-h25.vmware.com gateway=10.21.3.254

when a second service console default gateway is set, it overrides the gateway in cat /etc/sysconfig/network:

networking=yes gatewaydev=vswif1 hostname=pa-tse-h25.vmware.com gateway=10.20.1.1

to resolve this issue, edit /etc/sysconfig/network and point to the proper gateway interface. alternatively, change the gateway device to auto.

继续阅读