Changing the IP for the Service Console must be done from the physical console or through a remote console session (ILO or DRAC). 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.
- Run the following command to set the IP address:
root@frank root# esxcfg-vswif -i 192.xxx-xx-xx -n 255.255.255.0 vswif0
(Note: In this example, v swif0 is the Service Console adapter that is the interface to which you are applying the IP address change.) - Open the /etc/hosts file with a text editor and modify it so that it reflects the correct IP address and hostname.
- To change the default gateway address and the hostname, edit the /etc/sysconfig/network file and change the GATEWAY and HOSTNAME parameters to the proper values.
- For the changes to take place, reboot the host or restart the network service with the command:
root@frank root# service network restart
Note: This command breaks any current network connections to the Service Console.
0 comments:
Post a Comment