Skip to content

Instantly share code, notes, and snippets.

@rafzei
Last active May 23, 2018 09:29
Show Gist options
  • Save rafzei/4e41fa895b4ee4ecbe83bfad5e9fde65 to your computer and use it in GitHub Desktop.
Save rafzei/4e41fa895b4ee4ecbe83bfad5e9fde65 to your computer and use it in GitHub Desktop.
RHEL 6/7 static IP - eth0
#eth0 interface configuration
TYPE=Ethernet
NAME=eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.100
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
MTU=1462
PREFIX=23
GATEWAY=192.168.0.1
NETMASK=255.255.255.0
DNS1=8.8.8.8
DNS2=4.4.4.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment