Difference between revisions of "Networking notes"
From Noah.org
Jump to navigationJump to searchLine 7: | Line 7: | ||
It is probably device eth0 or eth1. | It is probably device eth0 or eth1. | ||
Say you are on a 192.168.1.0 network and you want to | Say you are on a 192.168.1.0 network and you want to | ||
− | set your static IP to 192.168.1.66 | + | set your static IP to 192.168.1.66. These values are typical. |
auto eth0 | auto eth0 | ||
iface eth0 inet static | iface eth0 inet static | ||
Line 15: | Line 15: | ||
gateway 192.168.1.1 | gateway 192.168.1.1 | ||
broadcast 192.168.1.255 | broadcast 192.168.1.255 | ||
− |
Revision as of 12:34, 3 November 2006
How to permanently set static IP in Ubuntu
Edit the file:
/etc/network/interfaces
Edit the section for your primary network interface. It is probably device eth0 or eth1. Say you are on a 192.168.1.0 network and you want to set your static IP to 192.168.1.66. These values are typical.
auto eth0 iface eth0 inet static address 192.168.1.66 network 192.168.1.0 netmask 255.255.255.0 gateway 192.168.1.1 broadcast 192.168.1.255