On Mon, 2002-11-18 at 09:52, Michael Lake wrote:

> How do I setup again at a different location ? I Dont want to re install
> - just setup networking so I can then run apt-setup.

Michael, below is an example of a static IP configuration from
/etc/network/interfaces. When you change locations, merely change the
components that are no longer correct and run "/etc/init.d/networking
restart" - you will then need to restart any network services /
applications that are also running.

# The first ethernet port
auto eth0
iface eth0 inet static
        address nnn.nnn.nnn.nnn
        netmask nnn.nnn.nnn.nnn
        network nnn.nnn.nnn.nnn
        broadcast nnn.nnn.nnn.nnn
        gateway nnn.nnn.nnn.nnn

You will still have to have a correct /etc/resol.conf for the new
location. DHCP is your friend if both locations run it and it suits your
purposes. Failing that, there are a number of location detection
utilities in Debian that will configure your system on boot after
detecting where it it is. 

Some of these will automatically edit / replace "interfaces" and
"resolv.conf" to suit the location prior to starting network services to
minimise (remove?) the need to manually configure your network as you
change locations.

I've not got any of these to work to my satisfaction but I'm lazy.

-- 

Cheers,
      Craige.

GPG Key fingerprint = C206 904F 5231 2F2E 8DAA  F094 5879 71B5 0960 CF37

http://arseclown.tv/

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to