Skip to content

Instantly share code, notes, and snippets.

@ayaz
Created May 27, 2016 10:17
Show Gist options
  • Save ayaz/d89ec43fcf320561a3a62f5412119ce9 to your computer and use it in GitHub Desktop.
Save ayaz/d89ec43fcf320561a3a62f5412119ce9 to your computer and use it in GitHub Desktop.
# cd /etc/sysconfig/network-scripts/
# echo ifcfg-eth0:0 <<EOF
DEVICE="eth0:0"
IPADDR="172.31.5.75"
ONBOOT=yes
NAME=eth0:0
NETMASK=255.255.255.0
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment