Skip to content

Instantly share code, notes, and snippets.

@lpf23
Created May 3, 2014 16:31
Show Gist options
  • Save lpf23/db5d6860347192905138 to your computer and use it in GitHub Desktop.
Save lpf23/db5d6860347192905138 to your computer and use it in GitHub Desktop.
Set Static IP in CentOS VM
# vi /etc/sysconfig/netwokr-scripts/ifcfg-eth0
DEVICE=eth0
...
BOOTPROTO=static
IPADDR=192.168.1.123
NETMASK=255.255.255.0
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment