Configure a static IP: Difference between revisions
Jump to navigation
Jump to search
(Imported from Redmine) |
Devnulling (talk | contribs) (Remove duplicate header) |
||
Line 1: | Line 1: | ||
Edit the section of the file <code>/etc/network/interfaces</code> that configures the wired interface to look like this: | Edit the section of the file <code>/etc/network/interfaces</code> that configures the wired interface to look like this: | ||
Latest revision as of 07:29, 20 March 2017
Edit the section of the file /etc/network/interfaces
that configures the wired interface to look like this:
# Wired or wireless interfaces auto eth0 #iface eth0 inet dhcp iface eth0 inet static address 192.168.2.2 netmask 255.255.255.0 gateway 192.168.2.1 dns-nameservers 8.8.8.8
The dns-nameservers
entry is optional.