Skip to content

Instantly share code, notes, and snippets.

@prashanthpai
Last active July 15, 2016 09:33
Show Gist options
  • Save prashanthpai/9087508 to your computer and use it in GitHub Desktop.
Save prashanthpai/9087508 to your computer and use it in GitHub Desktop.
Set Static IP in Fedora VM

Set Static IP

vim /etc/sysconfig/network-scripts/ifcfg-p7p1
TYPE=Ethernet
BOOTPROTO=static
NAME=p7p1
UUID=acd05c7f-20a5-4cf7-86f7-25a24e264620
ONBOOT=yes
HWADDR=08:00:27:81:DA:67
IPADDR=192.168.56.100
NETMASK=255.255.255.0
NETWORK=192.168.56.0
systemctl restart network.service

Configure DNS (optional)

vim /etc/resolv.conf
nameserver 192.168.56.1
nameserver 8.8.8.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment