Created
November 7, 2010 14:59
-
-
Save gtzilla/666167 to your computer and use it in GitHub Desktop.
full set of notes needed to set up a static ip address
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
# derived from http://www.jonathanmoeller.com/screed/?p=1669 | |
# and comments, and needed modifications to work on 10.10 | |
sudo cp /etc/network/interfaces /etc/network/interfaces~backup | |
sudo vi /etc/network/interfaces | |
## leave this alone | |
## auto lo | |
## iface lo inet loopback | |
## edit the eth0 to have static ip address 192.168.1.11 | |
auto eth0 | |
iface eth0 inet static | |
address 192.168.1.11 | |
netmask 255.255.255.0 | |
gateway 192.168.1.1 | |
network 192.168.1.0 | |
broadcast 192.168.1.255 | |
### final file looks like (sans comment first character on all lines) | |
# # This file describes the network interfaces available on your system | |
# # and how to activate them. For more information, see interfaces(5). | |
# | |
# # The loopback network interface | |
# auto lo | |
# iface lo inet loopback | |
# | |
# # The primary network interface | |
# auto eth0 | |
# iface eth0 inet static | |
# address 192.168.1.11 | |
# netmask 255.255.255.0 | |
# gateway 192.168.1.1 | |
# network 192.168.1.0 | |
# broadcast 192.168.1.255 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment