Login
Search
Links
Tags
apple art avr bangkok bike canon centennial park dav3 drive email fail feedback food funny howto hua hin humour inspirational international iphone iphoto kick boxing language license lyrics malaysia map micro muay thai music osx photo photos phuket rant review ride shopping singapore squash sydney test thailand tip travel ubuntu video walk wordpress woy woy youtubeArchives
- January 2012 (4)
- October 2011 (3)
- September 2011 (9)
- August 2011 (11)
- July 2011 (2)
- June 2011 (7)
- January 2011 (1)
- September 2010 (4)
- August 2010 (4)
- July 2010 (10)
- May 2010 (1)
- April 2010 (1)
- October 2009 (1)
- September 2009 (2)
- July 2009 (2)
- June 2009 (4)
- March 2009 (1)
- January 2009 (1)
- November 2008 (2)
- October 2008 (1)
- September 2008 (4)
- August 2008 (1)
- April 2008 (8)
- March 2008 (8)
- February 2008 (11)
- January 2008 (16)
- December 2007 (1)
- May 2007 (2)
- March 2007 (1)
- December 2004 (1)
Recent Activity
Tag Archives: dhcp
Ubuntu – changing DHCP to Static
Before jumping in and making the changes, do
ifconfig -a
and note down any particular settings which you may need (if you don’t already know them)
Then edit /etc/network/interfaces
change:
iface eth0 inet dhcp
to:
iface eth0 inet static
address 10.0.0.101
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
gateway 10.0.0.100
May also need to add nameservers to /etc/resolv.conf, eg:
nameserver 10.0.0.100
nameserver 192.122.108.211
Obviously change to suit your network settings.
Once done, don’t forget to restart the networking interface
sudo /etc/init.d/networking restart