Ubuntu and static IP address

Nils Kassube kassube at gmx.net
Fri Sep 25 06:04:25 UTC 2009


Karl F. Larsen wrote:
> 			Success! I changed the process a bit in that I installed
> wicd instead of just deleting network manager. Wanted
> something that would work...
>
> 	Here is my file now:
> karl at Jaunty:~$ cat /etc/network/interfaces

> auto lo
> auto eth1
> auto eth0
>
> iface lo inet loopback
> iface eth1 inet dhcp
> iface eth0 inet static
>
> address 192.168.2.6
> netmask 255.255.255.0
>
> 	When I run ifconfig I get:
>
> karl at Jaunty:~$ sudo ifconfig
> [sudo] password for karl:
> eth0      Link encap:Ethernet  HWaddr 00:1f:d0:51:a9:21
>            inet addr:192.168.2.2
>
> 	Alas, this is the address the router assigned. So it is still
> not a success.

If I understand it right, you installed wicd and also used the 
interfaces file above. Well, either you use the interfaces file or you 
install some software that manages your connections, i.e. wicd or nm. 
Now wicd obviously ignored your setup in the interfaces file while nm 
would have ignored eth0 and wicd used the default, i.e. DHCP 
configuration. If you want a static IP with wicd you should use the wicd 
GUI and change the configuration for eth0 to a static setup. Furthermore 
you should remove the ethe entries from /etc/network/interfaces.


Nils





More information about the ubuntu-users mailing list