Skip to content

Instantly share code, notes, and snippets.

@vjaro
Created June 9, 2015 06:51
Show Gist options
  • Save vjaro/c4c86b515af5226fff4c to your computer and use it in GitHub Desktop.
Save vjaro/c4c86b515af5226fff4c to your computer and use it in GitHub Desktop.
CENTOS STATIC IP
DEVICE=eth0
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static
IPADDR=192.168.1.44
NETMASK=255.255.255.0
Setup NAT and Host Only adapter
When adding static ip configuration check the following
Verify your Virtualbox Preferences -> Network -> Host-only Networks Ethernet Adapter
Verify your vm -> Settings -> Network then the host only adapter and the name should be equal to the virtualbox host only adapter's ip address. Configure your ip based on that ip sequence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment