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

Re: change IP and default route.



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

On Thursday, 04.11.2004 at 19:16 +0000, Joe wrote:

> In message <2WV0i-4Rp-39@gated-at.bofh.it>, Dr. David Kirkby 
> <drkirkby@medphys.ucl.ac.uk> writes
> >Hi,
> >  I installed a system on a company network with a fixed IP 
> >(213.78.42.115), but recently bought a small router. The PC will now 
> >have to use the router as the default route, and I will make the IP 
> >private.
> >
> >The following commands do what I want
> >
> ># ifconfig eth0 192.168.123.1 netname 255.255.255.0 # set my IP to 
> >192.168.123.1
> ># route add default gw 192.168.123.254
> >
> >But how do I set this to happen automatically?  I changed the IP in 
> >/etc/hosts, and had an attempt at changing /etc/gateways, but clearly 
> >not successfully, as the routing does work after a reboot - I need to 
> >type these commands again.
> >
> The file you need is /etc/network/interfaces. It's fairly 
> self-explanatory, or man interfaces for the whole story..

You might also like to try:

    dpkg-reconfigure etherconf

    or

    apt-get install etherconf

"This package provides a debconf-based interface to configuring the
Ethernet on your system."

Dave.
- -- 
Dave Ewart - davee@sungate.co.uk - jabber: davee@jabber.org
All email from me is now digitally signed, key from http://www.sungate.co.uk/
Fingerprint: AEC5 9360 0A35 7F66 66E9 82E4 9E10 6769 CD28 DA92

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBior0nhBnac0o2pIRAhhgAKDdfi8fGB99e666vsHiCft2rMHO/wCgu+RS
GjHK0w6Db0bK+L+brobo3j8=
=y19N
-----END PGP SIGNATURE-----



Reply to: