LinuxQuestions.org
Help answer threads with 0 replies.
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 06-28-2004, 01:38 PM   #1
timbaloo
LQ Newbie
 
Registered: Jun 2004
Posts: 7

Rep: Reputation: 0
How to start modprobe ndiswrapper automatically ?


HI there...
Where should I place the command "modprobe ndiswrapper" so it starts automatically ?
I got my RTL8180L wlan chipset up and running, but I have to start it manually every time.

I dumped ndiswrapper -m too early, when it did not work, yet. where can I reset those settings, so I can call ndiswrapper -m again to save my working settings ?

Thanks a lot for helping a total newbie...
 
Old 06-28-2004, 01:56 PM   #2
andrewdodsworth
Member
 
Registered: Oct 2003
Location: United Kingdom
Distribution: SuSE 10.0 - 11.4
Posts: 347

Rep: Reputation: 30
Is this post redundant now - I see you got things working in your other post?
 
Old 06-28-2004, 04:17 PM   #3
timbaloo
LQ Newbie
 
Registered: Jun 2004
Posts: 7

Original Poster
Rep: Reputation: 0
nope... it got it runnining, but whenever I reboot I get the wrong settings (probably the ones I saved with ndiswrapper -m) ... plus I still have to start it manually
so any help will be appreciated..
Thank you.
 
Old 06-28-2004, 05:12 PM   #4
andrewdodsworth
Member
 
Registered: Oct 2003
Location: United Kingdom
Distribution: SuSE 10.0 - 11.4
Posts: 347

Rep: Reputation: 30
The card configuration is stored in the /etc/sysconfig/network/ directory. My wireless card config is called ifcfg-wlan0. This is where you can make the config stick. If you haven't got one of these you can create one using the ifcfg.template file and the wireless file in that directory as templates. You may have something like ifcfg-eth-id-01:23:45:67:89:ab which is a config file for an ethernet device with MAC address 01:23:45:67:89:ab. If so and this is the MAC address of your wireless card then modify that rather than create a new ifcfg-wlan0. For instance the interesting bits of my ifcfg-wlan0 file are as follows:

STARTMODE='hotplug'
BOOTPROTO='dhcp'
DHCLIENT_MODIFY_RESOLV_CONF='yes'
DHCLIENT_SET_DEFAULT_ROUTE='yes'

WIRELESS_ESSID='your_ESSID'
WIRELESS_BITRATE='auto'
WIRELESS_DEFAULT_KEY='0'
WIRELESS_FREQUENCY=''
WIRELESS_KEY_0='your_key'
WIRELESS_KEY_1=''
WIRELESS_KEY_2=''
WIRELESS_KEY_3=''
WIRELESS_KEY_LENGTH='128'
WIRELESS_MODE='Managed'
WIRELESS_POWER='yes'

All the other settings are ''.

Because my laptop has onboard ethernet (which I usually use) and I can't guarantee the wireless card to be in the machine I set STARTMODE='hotplug' which then means that it doesn't load automatically on boot. However, all I then have to do is issue the 'iwconfig wlan0' command as root and it then brings the card up and reads the ifcfg-wlan0 file and works. Once I've brought it up it's then hotpluggable until I shut down.

If you want it to start always on boot then set

STARTMODE='onboot'

Initially I had to manually add default gateway as well but discovered the
BOOTPROTO='dhcp'
DHCLIENT_MODIFY_RESOLV_CONF='yes'
DHCLIENT_SET_DEFAULT_ROUTE='yes'
settings which do that automatically.

If you don't use DHCP then you can set
BOOTPROTO='static'
but you then need values for
BROADCAST='192.168.x.255'
IPADDR='192.168.x.xxx'
NETMASK='255.255.255.0'
NETWORK='192.168.x.0'

The WIRELESS configuration settings depend on your setup - these are the only ones I needed to change for my set up - look at the 'wireless' file in /etc/sysconfig/network/ to see what the defaults and options are.

Hope this helps.
 
  


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
Trying to load module "ndiswrapper" with modprobe; modprobe ndiswrapper doesn't work! Benjamin Linux - Wireless Networking 30 05-25-2008 07:04 AM
ndiswrapper modprobe help barrythai SUSE / openSUSE 30 06-17-2006 02:44 PM
modprobe ndiswrapper Oral_Christie Linux - Wireless Networking 3 09-03-2005 02:36 PM
modprobe ndiswrapper hvtopiwala Linux - Wireless Networking 3 05-12-2005 02:08 PM
modprobe ndiswrapper esher2292 Linux - Newbie 2 05-31-2004 07:03 PM

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

All times are GMT -5. The time now is 08:04 AM.

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