Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wlan question--multple AP/IP addresses
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
wokno the sane
n00b
n00b


Joined: 18 Dec 2002
Posts: 20

PostPosted: Mon Oct 20, 2003 5:59 pm    Post subject: wlan question--multple AP/IP addresses Reply with quote

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
View user's profile Send private message
wokno the sane
n00b
n00b


Joined: 18 Dec 2002
Posts: 20

PostPosted: Tue Oct 21, 2003 3:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6838
Location: Blighty

PostPosted: Wed Oct 22, 2003 1:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
wokno the sane
n00b
n00b


Joined: 18 Dec 2002
Posts: 20

PostPosted: Wed Oct 22, 2003 3:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6838
Location: Blighty

PostPosted: Wed Oct 22, 2003 4:39 pm    Post subject: Reply with quote

AFAIK no such tool exists :(

If there is, then please let me know :!:
Back to top
View user's profile Send private message
ozonator
Guru
Guru


Joined: 11 Jun 2003
Posts: 591
Location: Ontario, Canada

PostPosted: Wed Oct 22, 2003 5:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6838
Location: Blighty

PostPosted: Wed Oct 22, 2003 7:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
ozonator
Guru
Guru


Joined: 11 Jun 2003
Posts: 591
Location: Ontario, Canada

PostPosted: Wed Oct 22, 2003 11:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
wokno the sane
n00b
n00b


Joined: 18 Dec 2002
Posts: 20

PostPosted: Thu Oct 23, 2003 2:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum