LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 01-15-2006, 11:50 PM   #1
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Rep: Reputation: 30
Automating Wireless


I have my wireless card working for my laptop. To get it working, I needed to enter the following commands:

rc.pcmcia start (only if the card was not in at boot)
modprobe ndiswrapper
iwconfig wlan0 essid ditelnet
iwconfig wlan0 key open XXXXXXXXXX
ifconfig wlan0
ifconfig wlan0 192.168.111.29 netmask 255.255.255.0
route add default gw 192.168.111.1

Is there anyway I can get all this to go automatically when I stick the card in?
 
Old 01-16-2006, 10:42 AM   #2
Anarchon
LQ Newbie
 
Registered: Mar 2005
Location: Belgium
Distribution: Gentoo stage3 - debian - fedora
Posts: 15

Rep: Reputation: 0
can't you just stick it in a script and you'll need only 1 command to get started ?
 
Old 01-16-2006, 04:55 PM   #3
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
I tried that. Sometimes it works and sometimes not. It depends on if I was connected to a different network previously or not. I am really looking for a solution that will be completely automated: I pop in the card, and I'm connected. I pull out the card, and I am disconnected, ndiswrapper unloaded nicely, etc.
 
Old 01-17-2006, 02:54 AM   #4
Anarchon
LQ Newbie
 
Registered: Mar 2005
Location: Belgium
Distribution: Gentoo stage3 - debian - fedora
Posts: 15

Rep: Reputation: 0
for this different network problem you should define if the routes towards this other network remain in your routing table if it's in the same range. And if not then you could just try to bring down your network interface ? (and eventually bring it back up)

But I think you need to use 'hotplug' to do what you want, read the manpage.

Let me know how things go.
 
Old 01-19-2006, 11:13 AM   #5
mattp
Member
 
Registered: Mar 2004
Location: Chicago, USA
Distribution: Slackware 10.2
Posts: 368

Original Poster
Rep: Reputation: 30
Thanks. Sometimes my laptop freezes when the PCMCIA card is in. As soon as I pull it out it unfreezes. I don't like doing that though because pulling it out without running rc.pcmcia stop can't be good for anything. Any ideas on that?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Automating Pine kaplan71 Linux - Software 1 12-22-2005 03:21 AM
Automating Swaret nny0000 Slackware 2 10-13-2005 06:14 PM
Automating Modprobe gauntalus Linux - Wireless Networking 4 01-14-2005 10:57 AM
Automating modprobe? r_jensen11 Linux - Hardware 3 09-07-2003 08:30 PM
Automating things... DarkSTech Linux - Networking 1 03-06-2003 11:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 03:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration