Ubuntu and static IP address

Nils Kassube kassube at gmx.net
Thu Sep 24 22:03:48 UTC 2009


Karl F. Larsen wrote:
> 	I tried this and it failed on my computer. Here is what I
> tried with the static settings # out so I can again get Internet
>
> karl at Jaunty:~$ cat /etc/network/interfaces
>   auto lo
>   iface lo inet loopback
> # iface eth0 inet static
> # address 192.168.2.6
> # netmask 255.255.255.0
> #gateway 192.168.0.1
>
> #auto eth0

You should have your address and gateway in the same subnet, i.e. change 
your gateway to 192.168.2.1 or your address to 192.168.0.6 depending on 
your router settings.


Nils





More information about the ubuntu-users mailing list