Skip to content

Instantly share code, notes, and snippets.

@coffman21
Last active January 24, 2019 09:33
Show Gist options
  • Save coffman21/a8df8d4667de3cb91d5cd86ce3ee0c52 to your computer and use it in GitHub Desktop.
Save coffman21/a8df8d4667de3cb91d5cd86ce3ee0c52 to your computer and use it in GitHub Desktop.
ifcfg-eth0-example
# vim /etc/sysconfig/network-scripts/ifcfg-eth0
# For static IP
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.2
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
HWADDR=XX:XX:XX:XX:XX:XX
# For DHCP
DEVICE=eth0
BOOTPROTO=dhcp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment