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

Re: dhclient-script, hooks, and changing the environment

On Fri, Aug 08, 2008 at 03:29:43PM -0300, martin f krafft wrote:
> also sprach Theodore Tso <tytso@mit.edu> [2008.08.08.1453 -0300]:
> > In the past I've used dhclient-enter-hooks.d to work around buggy
> > hotel networks which advertise a gateway for the default route
> > which is outside the local network.
> netconf could handle this internally, and it would be fair to
> include this.
> So assuming yo get a address and the default gateway
> is, what is the best approach? Hacking the netmask seems
> awful. Adding a route that makes link-local seems better,
> no?

Yes, adding a specific link-local route is probably better.  In
practice, the various Awful Hotel Network implementations would give
you an IP configuration that was something like this

IP Addr:

So the simpler thing for me to do was to hack the netmask to be

But I agree, adding IP-specific route for the gateway out to the
interface is the best thing to do.

	     	 				- Ted

Reply to: