[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:
-----BEGIN PGP SIGNED MESSAGE-----
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
       address 192.168.3.3
       netmask 255.255.255.0
       network 192.168.3.0
       broadcast 192.168.3.255
       gateway 192.168.3.1
       # dns-* options are implemented by the resolvconf package, if installed
       dns-nameservers 192.168.2.30
       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
ghe@slsware.com

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

iEYEARECAAYFAkogfZgACgkQ04yQfZbbTLY65QCgssdk7a8FeRn78NCXxSVPRl/1
ZWkAn3W/xH3o+npSY8M+iDTaDMUgCr8b
=qKn9
-----END PGP SIGNATURE-----


--
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: