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

Re: static IP

Iuri Sampaio wrote:

I’m trying to set up a internal static IP to my machine.

My /etc/init.d/interfaces is:

# 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





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?


I'll assume that you actually mean /etc/network/interfaces, not /etc/init.d/interfaces. Is your machine plugged into e DSL router? If so, what is it's ethernet ip address set to (should be, since that's how you defined the gateway in Linux)?

What happens when you ping

BTW, you don't need to restart your machine after making network changes, just do (as root):
# /etc/init.d/networking reatsrt

Reply to: