ifcfg-ethx example

 

ifcfg-eth0 options

  1. SSH to system

  2. open up the ethernet connetion we need to modify.  Generally this will be eth0

  3. 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

 

Unable to render {include} The included page could not be found.