On Wed, Jul 09, 2014 at 10:14:02AM +0100, Mark Rogers wrote:
On 8 July 2014 15:24, Laurie Brown laurie@brownowl.com wrote:
Ok, static IP by MAC address and custom entries in the hosts file sounds the way to go here...
You beat me to saying the same thing: surely a good old fashioned hosts file solves this?
Not really. My hosts file (on the laptop I carry from place to place) would have to have entries for all the devices at every location.
This would mean that I'd have to firstly think of different names for the same router in different places (yes, I do have the same model of router in more than one place) and secondly I'd have to make sure that the DHCP server in each location used a different range of addresses to make sure that there are no clashes. (I suppose I could make the routers at different locations have the same IP address but 'this way lies madness')
Also, I haven't tried this but I would imagine that there's nothing stopping the real hosts file being stored in (eg) Dropbox and /etc/hosts just being a symlink to it, making it easy to synchronise between systems if you need to.
I think you'd find that would produce all sorts of weird errors at boot time.