From owner-freebsd-mobile Wed Aug 29 11:28:55 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by hub.freebsd.org (Postfix) with ESMTP id 09C6B37B403; Wed, 29 Aug 2001 11:28:49 -0700 (PDT) (envelope-from nate@yogotech.com) Received: from nomad.yogotech.com (yogotech.nokia.com [4.22.66.156]) by ns.yogotech.com (8.9.3/8.9.3) with ESMTP id MAA01201; Wed, 29 Aug 2001 12:28:42 -0600 (MDT) (envelope-from nate@nomad.yogotech.com) Received: (from nate@localhost) by nomad.yogotech.com (8.8.8/8.8.8) id MAA07633; Wed, 29 Aug 2001 12:28:34 -0600 (MDT) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15245.13394.275183.61715@nomad.yogotech.com> Date: Wed, 29 Aug 2001 12:28:34 -0600 To: Toshihiko ARAI Cc: nate@yogotech.com (Nate Williams), freebsd-mobile@FreeBSD.org, imp@FreeBSD.org Subject: Re: Documentation for rc.conf's removable_interfaces? In-Reply-To: <200108281005.f7SA5bR50146.toshi@jp.FreeBSD.org> References: <15228.2988.181554.313833@nomad.yogotech.com> <200108200357.f7K3vMn18594.toshi@jp.FreeBSD.org> <15233.22136.524384.459698@nomad.yogotech.com> <200108211348.f7LDmTh30188.toshi@jp.FreeBSD.org> <15234.48176.6699.983659@nomad.yogotech.com> <200108231653.f7NGrO802605.toshi@jp.FreeBSD.org> <15237.14941.939157.115769@nomad.yogotech.com> <200108251732.f7PHWst26260.toshi@jp.FreeBSD.org> <15240.7812.511063.822660@nomad.yogotech.com> <200108281005.f7SA5bR50146.toshi@jp.FreeBSD.org> X-Mailer: VM 6.95 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Reply-To: nate@yogotech.com (Nate Williams) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > > True. However, it doesn't hurt to leave this route in place if there is > > only one network card, because there can only be one 'default_router' in > > the current configuration setup. > > It is the truth in the simplest case, but we use more than one > cards by a location (office, my home, etc...). Good point. > Of course cards > to use simultaneously are always one. In this case I can employ > more than one default route by environment. I assume a situation > as follows. > > A) ed1: static routing (non DHCP) > > ifconfig_ed1="inet 10.0.4.1 netmask 255.255.255.0" > static_routes_ed1="net1 net2" > route_net1="default 10.0.4.2" > route_net2="-net 10.0.5 10.0.4.3" > > B) aue0: using DHCP > > ifconfig_aue0="DHCP" > > C) wi0: static routing > > ifconfig_wi0="inet 192.168.0.1 netmast 255.255.255.0" > static_routes_wi0="net3" > route_net3="default 192.168.0.2" > and I prepare '/etc/start_if.wi0'. > > In this case, if I put 'removable_route_flush=YES', old route > surely is eliminated including a case of DHCP. Except there is no 'removalble_route_flush' variable in -stable anymore. > >> > In particular, in one situation, I have 2 network cards in my computer. > >> > If one type of card is removed (my test network), the routes should not > >> > be touched. However, if I remove/insert one the other cards (wireless > >> > and/or ethernet for connection to the net), I need the route added > >> > and/or removed. > >> > >> In this case you can use static_routes_ for replacement > >> of defaultrouter. This variable is the thing which I added anew, > >> you replace it in real interface name and describe it in rc.conf as > >> follows. > > > Good idea. I'm so used to hardcoding the default route on my desktop > > boxes I never thought to modify the route. > > 'static_routes_' exists only with /etc/pccard_ether. > 'static_routes' is usable in /etc/rc.network. *duh* I should look more closely. I still think it would be nice if we could 'backout' any routing changes from static_routes_ when a card was removed, which I think would be the 'optimal' solution. > > Very much agreed, but don't feel that it's solely your responsibility to > > document everything. > > Old document exists, but it is a thing about PAO. Contents are > considerably old, too. In addition, good translation is > necessary. Certainly static_routes_ should be documented. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message