networking

Change VM from DHCP to Static IP

Steps to change DHCP configuration to a static IP, if the VM was originally configured using DHCP. I’ve had to look this up a few times so I’m documenting it here. Edit the network adapter Edit the following file as root user /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=static HWADDR=00:1A:A0:B2:B2:5B ONBOOT=yes IPADDR=192.168.0.xxx NETMASK=255.255.255.0 NETWORK=192.168.0.255… Read More »Change VM from DHCP to Static IP