From owner-freebsd-mobile Wed Mar 7 9: 3: 4 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from blackhelicopters.org (geburah.blackhelicopters.org [209.69.178.18]) by hub.freebsd.org (Postfix) with ESMTP id 4A69737B718 for ; Wed, 7 Mar 2001 09:02:57 -0800 (PST) (envelope-from mwlucas@blackhelicopters.org) Received: (from mwlucas@localhost) by blackhelicopters.org (8.9.3/8.9.3) id MAA72621; Wed, 7 Mar 2001 12:02:23 -0500 (EST) (envelope-from mwlucas) Date: Wed, 7 Mar 2001 12:02:23 -0500 From: Michael Lucas To: David Dooley Cc: freebsd-Mobile@FreeBSD.ORG Subject: Re: your mail Message-ID: <20010307120223.A72551@blackhelicopters.org> References: <200103022301.f22N1hC03361@dribble.lan.raffles-it.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200103022301.f22N1hC03361@dribble.lan.raffles-it.com>; from dpd@raffles-it.com on Fri, Mar 02, 2001 at 11:01:43PM +0000 Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org All I do is have my system boot "unconfigured". I then write a shell script to do the configuration I need for that network. turtledawn~;more bin/gltg #!/bin/sh sudo /sbin/ifconfig ed1 inet 192.168.1.200 sudo /sbin/route add default 192.168.1.1 sudo cp /etc/resolv.conf.gltg /etc/resolv.conf sudo killall -1 sendmail sudo /usr/sbin/sshd /usr/X11R6/bin/startx --nolisten tcp It's ugly, but it works. I suspect that the reason nobody's answered is that nobody has a non-ugly solution. On Fri, Mar 02, 2001 at 11:01:43PM +0000, David Dooley wrote: > Hi, > > I sent this mail to questions a couple of days ago. I figured that I would > give you guys a go a telling me how stupid I am for wanting to try and do > this. I have added the clarification I also sent to the bottom of this posting. > > Just to hammer home the point. I am trying to get different configurations for > different locations, not multipule configs on the same card. The work config > is a wired lan that I want to use a 3com card for. Home is a WaveLan card > connecting via a Residential Gateway, the configuration I use to set up the > card is below (part of the second posting). The wavelan configuration for my > friends place is also below as he has an access point device (second post > below). This why I asked in my original post to be able to configure the > wavelan card dependent on which pcmcia slot it is inserted in. > > Appoligies if you have already seen this on questions, and if this a really > stupid question. > > Thanks for your time. > > David. > > > Hi, > > > > I am wondering if it is at all possible to have multipule lan configurations > > on the same laptop, depending on what card is inserted in which pcmcia slot. > > > > I have a Lucent WaveLan card that I would like to configure for home in the > > top slot - on a residential gateway, if inserted in the bottom slot > > reconfigure for an accesspoint, both DHCP. If I insert a 3com 16 bit card yat > > another configuration but this time static network address and such. > > > > I figure that this will require some hacking of the network setup scripts, but > > I am not sure what would be the best way to approach, or even if it is > > possible to get the slot a card is inserted into. I have been looking at > > rc.network, pccard.conf and start_if.wi0 but I cannot see how I would get the > > slot information as nothing appears to use this information. > > > > I want to do this so I can take my laptop from home to work and to friends > > with out having to spend hours reconfigureing for each location. > > > > Thanks for your time. > > > > Please feel free to tell me that what I want to do is stupid, i just figured > > it would make my life simpler once it was configured. > > > > David. > > And this clarification:- > > Work is using a wired lan, no wave lan, for which I have a 3com card, no dhcp, > need to staticaly reconfigure for DNS, netmask, domain name, router. > > Home, uses dhcp with the WaveLan Card conneted to a residential gateway and > all works here is how i configure the card from /etc/pccard.conf > > # Lucent WaveLAN/IEEE > card "Lucent Technologies" "WaveLAN/IEEE" > config 0x1 "wi" ? > insert /usr/sbin/wicontrol -i $device -s ANY > insert /usr/sbin/wicontrol -i $device -n > insert /usr/sbin/wicontrol -i $device -k -v 1 > insert /usr/sbin/wicontrol -i $device -T 1 > insert /usr/sbin/wicontrol -i $device -e 1 > insert /usr/sbin/wicontrol -i $device -p 1 > insert /etc/pccard_ether $device start > remove /etc/pccard_ether $device stop > > friend also has a wireless lan but uses an access point and this is how I > configure the pccard.conf file when I go round to his place > > card "Lucent Technologies" "WaveLAN/IEEE" > config 0x1 "wi" ? > insert /usr/sbin/wicontrol -i $device -s "Dribble" > insert /usr/sbin/wicontrol -i $device -n "" > insert /usr/sbin/wicontrol -i $device -p 1 > insert /etc/pccard_ether $device start > remove /etc/pccard_ether $device stop > > so I have three distinct configs that I want to run with depending on where I > am. > > Work:- static IP address, work DNS, work default route, work domain name > > Home:- Dhcp configured + home wavelan setup > > Friend:- Dhcp Configured + Friend wavelan setup > > Therefore I want to be able to configure the wavelan depentant on which slot I > stick it in, and a futher confguration for work with a totally diferent NIC. > > But it would appear that I can only have one network interface defined in > rc.conf. > > Hope this clarifies the situation. > > David Dooley > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-mobile" in the body of the message -- Michael Lucas mwlucas@blackhelicopters.org http://www.blackhelicopters.org/~mwlucas/ Big Scary Daemons: http://www.oreillynet.com/pub/q/Big_Scary_Daemons To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message