April 25, 2009
Install windows wireless lan card drivers on Redhat Enterprise Linux Server (2.6.18-53.el5)
Que:--> What is ndiswrapper ?
Ans:--> NDISwrapper is a free software driver wrapper that enables the use
of Microsoft Windows drivers for wireless network devices (cards,USB modems etc)ndiswrapper is a project that provides a kernel module to load Windows NDIS wireless card drivers under Linux.NDIS stands for Network Driver Interface Specification and is the Windows/DOS driver interface. The ndiswrapper module wraps
around this driver, acting as a translator between it and the Linux Kernel
Steps during this process
1) Download the kernel modules from
ftp://ftp.gac.edu/pub/linux/rpmforge/redhat/el5/en/i386/dag/
repodata/repoview/SystemEnvironment.Kernel.group.html and install on
your system with rpm command
2) Now we are able to run ndiswrapper commands
# Usage Ndiswrapper Option
-i ------> install driver described by .inf extension in
windows wireless lan card driver cd
-r ------> remove driver
-l ------> list installed drivers
-m ----> write configuration for modprobe
-ma----> write module install configuration for all devices.
-v ------> report version information
3) Now install windows x.inf
driver file with following command where x.inf is our driver file/name
[root@server1~]# ndiswrapper -i x.inf
Doing this once, with the correct INF file, copies all necessary files to
/etc/ndiswrapper and creates the config files for your card. After installing you can run
4) To see the status of your installed drivers. If you have installed
the correct driver you should see something like this
wg311v3:driver installed
device (11AB:1FAA) present
Where 'present' means that you have a card that can be used with the
driver installed. In this case, netgear driver wg311v3 is used. If
you see 'cannot locate lspci. Unable to see if hardware is present',
you need to install the pciutils package.
[root@server1~]# ndiswrapper -l
wg311v3:driver installed
device (11AB:1FAA) present
5) You will use ndiswrapper once more:
[root@server1~]# ndiswrapper -m
You should then see a message along the lines of: Adding "alias wlan0
ndiswrapper" to /etc/ modprobe.conf
Before you load the module DO NOT FORGET to type
[root@server1~]# depmod -a
If there is no error (warnings may be OK), continue. To load the
module type
[root@server1~]# modprobe ndiswrapper
If you get no error the driver should now be loaded. You can verify
this by checking system log produced by dmesg. If the driver is loaded
successfully, you should see a message in the system log
6) Use iwconfig to configure wireless network interface. First, see if
the interface is available, with
iwconfig
you can see your access point with following command
[root@server1~]# iwlist wlan0 scan
You may have to set the network name before the scan can find your
Access Point. If the scan does not find your AP, try issuing the
command
[root@server1~]# iwconfig wlan0 essid 'Dlink'
here Dlink is "our access point"
now run the following commands to take ip from wireless router/access
point
[root@server1~]# ifconfig wlan0 up
or
[root@server1~]# dhclient wlan0
or
[root@server1~]# dhcpd wlan0
now we are successfully connected with internet via wi-fi network
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment