RFc Networking e Informatica
Pubblicata su RFc Networking e Informatica (https://www.rfc.it)

Home > Il cambio dell'indirizzo IP della Console di un Host ESX

Il cambio dell'indirizzo IP della Console di un Host ESX

Inviato da fabrizio il Lun, 14/02/2011 - 13:49

Il cambio dell'indirizzo IP della Console di un Host ESX è relativamente semplice.
Il comando esxcfg-vswif fa al caso nostro.
[root@esx41 ~]# esxcfg-vswif -l
Name Port Group/DVPort IP Family IP Address Netmask Broadcast Enabled TYPE
vswif0 Service Console IPv4 192.168.1.3 255.255.255.0 192.168.1.255 true STATIC
[root@esx41 ~]#
l'opzione -i consente la modifica
esxcfg-vswif -i <ipaddress> -n <netmask> <interfaccia>

[root@esx41 ~]# esxcfg-vswif -i 192.168.1.3 -n 255.255.255.0 vswif0
Setting IP config
Nothing to flush.
[root@esx41 ~]#
 
vswif0 è la scheda di rete di default per la console.
Il comando modifica anche il file /etc/hosts (almeno nella versione ESX 4.1). In ogni caso è utile un controllo.
 
Il default gateway è configurato nel file (/etc/sysconfig/network. Con vi è semplice modificarlo, come pure è semplice modificare i server DNS nel file /etc/resolve.conf.
 
Alla fine è bene far ripartire il servizio di rete
[root@esx41 ~]# service network restart
Shutting down interface vswif0: [ OK ]
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface vswif0: [ OK ]
[root@esx41 ~]#
 
Attenzione:
Se è attivo un cluster, sull'host interessato, è bene arrestare la migrazione: il cambio di IP è scambiato, dal sistema, come un crash dell'host, e si attiva la migrazione, quasi certamente senza buon fine.
 
E' possibile dover ricreare i certificati di ESX
 
 
 
 
 
 

Forums: 
Virtualizzazione [1]
Categoria: 
configurazione [2]

RFc -Restori Fabrizio Consulenze-  S.da Buffolara, 67 -43126 Parma- Tel. +39 335 240228 Fax +39 0521 940035   P.IVA 01788460341

webmaster: Fabrizio
Note

var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-37939674-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
var _paq = _paq || []; _paq.push(["trackPageView"]); _paq.push(["enableLinkTracking"]); (function() { var u=(("https:" == document.location.protocol) ? "https" : "http") + "://www.rfc.it/piwik/"; _paq.push(["setTrackerUrl", u+"piwik.php"]); _paq.push(["setSiteId", "1"]); var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript"; g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s); })();

URL di origine:https://www.rfc.it/content/il-cambio-dellindirizzo-ip-della-console-di-un-host-esx

Links
[1] https://www.rfc.it/forums/informatica/virtualizzazione [2] https://www.rfc.it/category/categoria/configurazione