Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jul 2000 19:46:34 +0000
From:      Tony Finch <dot@dotat.at>
To:        Dag-Erling Smorgrav <des@flood.ping.uio.no>
Cc:        Assar Westerlund <assar@sics.se>, Warner Losh <imp@village.org>, mobile@FreeBSD.ORG
Subject:   Re: Configuration profiles
Message-ID:  <20000729194634.B11416@hand.dotat.at>
In-Reply-To: <xzpg0otdsco.fsf@flood.ping.uio.no>
References:  <xzpd7jxdi5d.fsf@flood.ping.uio.no> <200007290000.SAA61365@harmony.village.org> <xzp3dktf8qi.fsf@flood.ping.uio.no> <5lk8e5xhir.fsf@assaris.sics.se> <xzpg0otdsco.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Smorgrav <des@flood.ping.uio.no> wrote:
>
>If you have a DHCP server available and either control it yourself or
>are very friendly with the admin, yes. But DHCP servers aren't always
>available (or practical), and even when they are, you don't always
>control them.

I didn't set up a dhcp server at home because it would have had to run
on my very old very badly set up Linux box so I considered it to be
too much pain. I worked around the problem with this dhclient.conf:

# DHCP configuration for hand.dotat.at
# handles the lack of a DHCP server on the dotat network
#
# $Header: /cvs/fanf/conf/hand.dotat.at/dhclient.conf,v 1.6 2000/07/13 09:36:38 fanf Exp $

# better timeouts when using a static lease
initial-interval	1;	# default 10
timeout 		10;	# default 60
retry			30;	# default 300

# always use self as a domain name server
supersede domain-name-servers 127.0.0.1;

# always use this domain search list
supersede domain-name "sfo.covalent.net lnk.covalent.net covalent.net dotat.at .";

# define a static lease for the dotat network
lease {
	interface "ed0";
	fixed-address 212.240.134.135;
	option subnet-mask 255.255.255.240;
	option routers 212.240.134.129;
	renew	3 2003/01/01 00:00:00;
	rebind	3 2003/01/01 00:00:00;
	expire	3 2003/01/01 00:00:00;
}

>In addition, there's a bunch of environment variables and shell
>aliases I need to set depending on where I am, such as CVS root,
>HTTP and FTP proxies, etc.

I always type in the CVSROOT as a -d option to cvs rather than using
the environment variable because I deal with too many repositories,
and once you have done the initial checkout you don't have to type it
again. But I agree about the proxy problem...

I'd be inclined to set up a proxy on the laptop itself which is
intelligent enough to do the right thing in different locations. (You
can force it to be intelligent by frobbing the configuration file in
the dhclient-exit-hooks and HUPping it.) I've done something like this
with the named on my laptop which has special handling for Covalent's
internal DNS: usually it does full name resolution, but when looking
up Covalent addresses it first tries a specific forwarding server on
the office network.

zone "covalent.net" {
        type forward;
        forward first;
        forwarders {
                10.0.0.2;
                63.161.32.2;
        };
};

Tony.
-- 
en oeccget g mtcaa    f.a.n.finch
v spdlkishrhtewe y    dot@dotat.at
eatp o v eiti i d.    fanf@covalent.net


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000729194634.B11416>