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

Re: Going from DHCP -> Static IP network config



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

"S. Salman Ahmed" <ssahmed@pathcom.com> writes:

> What config files do I need to modify to change this box's networking
> setup from DHCP-based to one using a static IP address ? Or is there
> some to rerun the networking scripts that were part of the Debian
> installation ?

Simplest solution?  Get your network admin to put you static IP address
in his DHCP config.  That way, your system will still work with DHCP, but
it'll always pick up the same address.

Otherwise, look at /etc/network/interfaces.  For recent versions of potato,
it's well documented.  You're going to want something along the lines of:

iface eth0 inet static
        address 192.168.54.1
        netmask 255.255.255.0
        network 192.168.54.0
        broadcast 192.168.54.255
        gateway 192.168.54.254

- -- 
Graeme.
graeme+sig@mathie.cx

"Life's not fair," I reply. "But the root password helps." - BOFH
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)

iD8DBQE5IXKxPjGH3lNt65URApvxAKCmLeYfzX22yQ7eQADlFjE9M0sZJACgl8/W
4dqTSySYyg8HEnO+Og7kEKE=
=Pn9/
-----END PGP SIGNATURE-----



Reply to: