View previous topic :: View next topic |
Author |
Message |
wokno the sane n00b

Joined: 18 Dec 2002 Posts: 20
|
Posted: Mon Oct 20, 2003 5:59 pm Post subject: wlan question--multple AP/IP addresses |
|
|
I have a linksys WPC11v3 card (prism 2 chipset) in my laptop, and want to be able to have it automaitcally configure it to work with both my AP at home, and the one at school.
The card works fine if i configure everything manually, but it's a pain to switch between the two networks. At home I have DHCP running, so i can get an IP/default gateway/etc through it, but at school I need to use a static IP, with a different gateway and nameservers.
I was thinking of writing a script that would run at boot that would try setting up each type, and pinging out to see which one works, but I wanted to see if there was a better solution.
Any help is appreciated. Thanks in advance. |
|
Back to top |
|
 |
wokno the sane n00b

Joined: 18 Dec 2002 Posts: 20
|
Posted: Tue Oct 21, 2003 3:39 pm Post subject: |
|
|
If I missed this in documentation somewhere, would someone please point me to it. I would think someone would have come across this trouble before. |
|
Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6838 Location: Blighty
|
Posted: Wed Oct 22, 2003 1:33 pm Post subject: |
|
|
According to the docs....
Assuming you've set scheme names up correctly in wireless.ops you can append SCHEME="<scheme name>" to your grub kernel line or somewhere in LILO.
This claims to work, but I can't get it to. So this is what I do
login as root
cardctl scheme <scheme name>
insert pcmcia card and voila - correct settings! |
|
Back to top |
|
 |
wokno the sane n00b

Joined: 18 Dec 2002 Posts: 20
|
Posted: Wed Oct 22, 2003 3:48 pm Post subject: |
|
|
That's not exactly what i was looking for, and i don't think it will work with the wlan-ng drivers as they don't fully support wireless extensions. I was looking more for something which would automatically set up my IP address/gateway/dns settings when I switch from home to school or vice versa. |
|
Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6838 Location: Blighty
|
Posted: Wed Oct 22, 2003 4:39 pm Post subject: |
|
|
AFAIK no such tool exists
If there is, then please let me know  |
|
Back to top |
|
 |
ozonator Guru


Joined: 11 Jun 2003 Posts: 591 Location: Ontario, Canada
|
Posted: Wed Oct 22, 2003 5:47 pm Post subject: |
|
|
It doesn't do quite what you're asking for (i.e. figure out at boot time automatically what network you're using), but "quickswitch" nevertheless might do the trick for you, by making it relatively easy to juggle the settings for multiple networks. It's in portage, where it's described as a "utility to switch network profiles on the fly." |
|
Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6838 Location: Blighty
|
Posted: Wed Oct 22, 2003 7:46 pm Post subject: |
|
|
All that needs to be changed is the SSID used.
cardctl scheme <scheme name> takes care of that - which i would imagine is like the network profile changing tool. |
|
Back to top |
|
 |
ozonator Guru


Joined: 11 Jun 2003 Posts: 591 Location: Ontario, Canada
|
Posted: Wed Oct 22, 2003 11:10 pm Post subject: |
|
|
UberLord wrote: | All that needs to be changed is the SSID used.
cardctl scheme <scheme name> takes care of that - which i would imagine is like the network profile changing tool. |
Good point, and sounds like a good suggestion. My wireless is built in (iBook, no PCMCIA), so cardctl isn't an available option for me. |
|
Back to top |
|
 |
wokno the sane n00b

Joined: 18 Dec 2002 Posts: 20
|
Posted: Thu Oct 23, 2003 2:22 pm Post subject: |
|
|
ozonator wrote: | It doesn't do quite what you're asking for (i.e. figure out at boot time automatically what network you're using), but "quickswitch" nevertheless might do the trick for you, by making it relatively easy to juggle the settings for multiple networks. It's in portage, where it's described as a "utility to switch network profiles on the fly." |
Aha! that's exactly what I was looking for! with this and cardctrl schemes, I'll be able to switch between networks easily. Thanks again for all your help |
|
Back to top |
|
 |
|