From the physical or remote console connection
Changing the IP for the Service Console must be done from the physical console or through a remote console session. If you make changes through a network connection such as SSH, network connectivity to the Service Console disconnects because the Service Console's network interface changes.
For this example, it is assumed that vswif0 is the Service Console adapter that is the interface to which you are applying the IP address change. Running the following command sets the IP address to the value substituted for a.b.c.d and the subnet mask to the value substituted for w.x.y.z:
[root@server root]# esxcfg-vswif -i a.b.c.d -n w.x.y.z vswif0
After running this command, edit the /etc/hosts file with an editor (such as nano or vi) and modify it so that it reflects the proper IP address and hostname.
To change the default gateway address and the hostname for the Service Console edit the /etc/sysconfig/network file and change the GATEWAY and HOSTNAME parameters to the proper values.
After you edit these files, you must reboot the host or restart the network service using the following command:
[root@server root]# service network restart
Note: This command will break any current network connections to the service console.
You can also dynamically change the hostname using the command:
[root@server root]# hostname newname
Note: This command creates a temporary hostname change. This change is lost when the system is rebooted.
To change the DNS server settings, edit the /etc/resolv.conf file, update the nameserver IPs, and search domain if applicable.
Subscribe to
Comments [Atom]
Post a Comment