Skip to content

Instantly share code, notes, and snippets.

@The-Yoda
Last active December 15, 2015 01:28
Show Gist options
  • Save The-Yoda/5180229 to your computer and use it in GitHub Desktop.
Save The-Yoda/5180229 to your computer and use it in GitHub Desktop.
Setting static ip in Ubuntu
edit etc/network/interfaces
if "iface eth0 inet dhcp" line exists change dhcp to static
else add that line "iface eth0 inet static"
iface eth0 inet static
address 10.0.0.1
netmask 255.255.255.0
gateway 10.0.0.2
broadcast 192.168.1.255
Restart the network:
/etc/init.d/networking restart
Resource : http://www.cyberciti.biz/faq/linux-configure-a-static-ip-address-tutorial/
(Refer it if u need for fedora)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment