Jump to Navigation

258 - Change IP Address on VMWare ESXi

1. Check the NIC information

# ifconfig

# ifconfig vswif0

2. Change IP Address for a NIC

# vi /etc/sysconfig/network-scripts/ifcfg-vswif0

=======================================
DEVICE=vswif0
MACADDR=00:50:56:40:ee:f2
ONBOOT=yes
PORTGROUP="Service Console"
BOOTPROTO=static
BROADCAST=192.168.17.255  <----- Change
DHCPV6C=no
IPADDR=192.168.17.250  <----- Change
IPV6INIT=no
IPV6_AUTOCONF=no
NETMASK=255.255.255.0
=======================================

* If you are using multi NIC, you should change all of them.

3. Change the Gateway

#vi /etc/sysconfig/network

=======================================
NETWORKING=yes
HOSTNAME=esxbk
GATEWAY=192.168.17.1   <---- Change
GATEWAYDEV=vswif0
IPV6_AUTOCONF=no
NETWORKING_IPV6=no
=======================================

4. Restart the network service

# service network restart

or

# reboot

 



Main menu 2

Story | by Dr. Radut