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