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

Re: setting a static ip for my lenny box

On Fri, May 29, 2009 at 7:28 PM, ghe <ghe@slsware.com> wrote:
Hash: SHA1

Donald Raikes wrote:
> Hello,
> I installed lenny yesterday on my desktop system. I would like to change
> it so it has a static ip address rather than a dhcp assigned one.
> How do I go about setting the ip address?
> If there is a console-based method I would prefer that since  icannot
> edit the network configuration through the networking tools applet (I
> don't have permissions).

Hey! One I can answer!

vi /etc/network/interfaces

Here's a known working interfaces file from my LAN:

# 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 eth0
auto eth0
iface eth0 inet static
       # dns-* options are implemented by the resolvconf package, if installed
       dns-search slsware.lan

Then reboot. It's possible to get eth0 to reconfig without a reboot, but
I don't remember how...

- --
Glenn English

Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org


To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

You need to have permissions whether you edit the /etc/network/interface or the network manager applet.

"It is human nature to think wisely and act in an absurd fashion."

"Todo el desorden del mundo proviene de las profesiones mal o mediocremente servidas"

Reply to: