ifcfg-ethx example
ifcfg-eth0 options
SSH to system
open up the ethernet connetion we need to modify. Generally this will be eth0
nano /etc/sysconfig/network-scripts/ifcfg-eth0
For static IP it should look something like this
DEVICE=eth0
BOOTPROTO=static
IPADDR=10.4.0.21
NETMASK=255.255.255.0
GATEWAY=10.4.0.1
HOSTNAME=abc.example.com
HWADDR=XX:XX:XX:XX:XX:XX
For DHCP it should look somethign like this
DEVICE=eth0
BOOTPROTO=dhcp
HOSTNAME=abc.example.com