← Back to team overview

ubuntuforums-unanswered team mailing list archive

Re: [Question #78606]: changing ip address

 

Question #78606 on Ubuntu changed:
https://answers.launchpad.net/ubuntu/+question/78606

    Status: Open => Answered

actionparsnip proposed the following answer:
you can either use the network manager app (easy) or you can run:

gksudo gedit /etc/network/interfaces and populate it with something like
this:

auto eth0
iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
gateway 192.168.0.1
broadcast 192.168.0.255
network 192.168.0.0


eth0 is the name of the device you are connecting with, if you take this route (pun intended), you will also need to run:

gksudo /etc/resolv.conf

and add your DNS servernames like so:

nameserver 127.0.0.1
nameserver 194.168.4.100
nameserver 194.168.8.100

(I run a local DNS server hence the loopback address). If you use this
method it will supercede any setting in any gui app, the network manager
may also be uninstalled if you wish as the static addressing is managed,
although if you wish to use it in future then you should keep it.

Your call dude, easy gui app for ease, or use config files to make
bootups about half a second faster.

-- 
You received this question notification because you are a member of UF
Unanswered Posts Team, which is an answer contact for Ubuntu.