[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: static IP

On Mon, Jul 02, 2007 at 11:21:57AM -0300, Iuri Sampaio wrote:
> I’m trying to set up a internal static IP to my machine. 
> My /etc/init.d/interfaces is:

You mean /etc/network/interfaces.
> # This file describes the network interfaces available on your system
> # and how to activate them. For more information, see interfaces(5).
> # The loopback network interface
> auto lo
> iface lo inet loopback
> # The primary network interface
> allow-hotplug eth1
> # Static IP
>  iface eth1 inet static
>  address
>  netmask
>  network
>  gateway
> I set the IP but when I restarted the machine to the changes make effect I
> loose internet connection. 
> I already tried other final number to the ip such as but it
> didn’t work out
> Is there anything I’m doing wrong?

Hi iuri

That depends.  How are you connecting to the internet?  You've told the
system that you only have one network interface card (but then why is it
eth1?) and that to get to the internet it should default route to the
gateway at

What exactly do you mean that you loose the internet connection?  Is it
a connectivity thing or that the name doesn't resolve?  Give us the
exact error message you get when you enter: ping debian.org


Reply to: