10.0.1.101

From Wiki2
Revision as of 17:41, 5 December 2012 by Tim (talk | contribs) (→‎static ip address)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

static ip address

edit /etc/network/interfaces.Get rif of etho entry and add the following bit including the dns-nameserver line

# remove the above line if you edit this file

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.0.1.101
netmask 255.255.255.0
gateway 10.0.1.1
dns-nameservers 8.8.8.8 8.8.8.4.4

auto eth1
iface eth1 inet dhcp