[Gllug] roaming problem

Chris Bell chrisbell at overview.demon.co.uk
Sat Oct 26 17:19:12 UTC 2002


On Sat 26 Oct, Alain Williams wrote:
> 
> 
> 
> I take my laptop all sorts of places, plug it into a customer's network, run a script
> (set up IP address, /etc/resolv.conf, ..., default printer, perhaps NFS mount somethin
> g) & off I go.
> 
> But it means that I need to: boot it, switch to VT1, login as root, back to VT7, Ctl-A
> lt-Backspace
> (to kill X), wait for X to restart & then login.
> 
> I was wondering is there an easy way of determining where I am & running the appropria
> te
> script to do the config ? The obvious way is to try them all, one after the other, and
> see what works (setup eth0, try to ping/nslookup or something, try again it I can't se
> e it).
> 
> But it's not that easy: that would mean grabbing an IP address - which is not a very
> nice thing to do. Many people run 192.168.xx.yy, so the chances are that I would grab
> a valid address that is mine (in one location) which corresponds to some important
> server (or worse: the MD's PC) in another.
> 
> DHCP is the obvious answer:
> * in some places this is indeed the answer & my script does get an address via DHCP
> * some places run DHCP, but I have a static address. OK: I could get one, find out whe
> re
>   I was, drop the DHCP address & setup the static one.
> * in some places DHCP is not run on the network (like at home).
> 
> Summary:
> with no input from me, how can my laptop work out (at boot time) where it is & configu
> re
> itself appropriately ?
> 
   I will probably get shot down in flames again, but I think you can run
DHCP (at home?) with some addresses pre-allocated to individual computers.

-- 
Chris Bell


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list