Last active
December 15, 2015 01:28
-
-
Save The-Yoda/5180229 to your computer and use it in GitHub Desktop.
Setting static ip in Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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