From owner-freebsd-mobile Fri Mar 2 15: 2:27 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from raffles-it.com (raffles.demon.co.uk [158.152.17.201]) by hub.freebsd.org (Postfix) with ESMTP id 60B6137B718 for ; Fri, 2 Mar 2001 15:02:09 -0800 (PST) (envelope-from dpd@raffles-it.com) Received: from dribble.lan.raffles-it.com (dribble.lan.raffles-it.com [192.168.100.50]) by raffles-it.com (8.11.2/8.11.1) with ESMTP id f22N20x87742 for ; Fri, 2 Mar 2001 23:02:00 GMT (envelope-from dpd@lan.raffles-it.com) Received: from dribble.lan.raffles-it.com (localhost [127.0.0.1]) by dribble.lan.raffles-it.com (8.11.2/8.11.1) with ESMTP id f22N1hC03361 for ; Fri, 2 Mar 2001 23:01:43 GMT (envelope-from dpd@lan.raffles-it.com) Message-Id: <200103022301.f22N1hC03361@dribble.lan.raffles-it.com> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: freebsd-Mobile@FreeBSD.ORG Subject: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 02 Mar 2001 23:01:43 +0000 From: David Dooley Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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