Posted by: isaraffee | August 29, 2009

Configuring Wireless in Mandrivia 2009

Configuring Wireless in Mandrivia 2009

I inserted my USB Wifi device and Mandrivia was able to detect it but you will need to configure the device, which requires you to install the drivers. So I decided to launch the Mandrivia Linux Control Center (click Network and Internet) to configure the device. But before we do that, let’s see how we can use the command line to configure Wifi connections.

Plug in the USB wireless network adapter and type :

[root@localhost Desktop]# lsusb

Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 001 Device 002: ID 0930:6545 Toshiba Corp. Kingston DataTraveler 2.0 USB Stick (4GB)

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 003 Device 002: ID 148f:2573 Ralink Technology, Corp. RT2501USB Wireless Adapter

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

You will see that Mandrivia detected an USB Wireless Adapter which is manufactured by Ralink.

Next it’s good practice to see the modules loaded by Manndrivia. Type:

# lsmod

This will list all modules that were used. We are interested in the rt73usb module. SO type:

[root@localhost Desktop]# lsmod | grep rt73usb

rt73usb 24704 0

crc_itu_t 1820 1 rt73usb

rt2x00usb 11292 2 rt2500usb,rt73usb

rt2x00lib 28892 3 rt2500usb,rt73usb,rt2x00usb

usbcore 179248 7 rt2500usb,rt73usb,rt2x00usb,usb_storage,ohci_hcd,ehci_hcd

To view the module information, type:

[root@localhost Desktop]# modinfo rt73usb

You will get a long list of information. But we are only interested in some of the details like the ones shown below:

[root@localhost Desktop]# modinfo rt73usb |more

filename: /lib/modules/2.6.29.1-desktop-4mnb/kernel/drivers/net/wireless/rt2x00/rt73usb.ko.gz

license: GPL

firmware: rt73.bin

description: Ralink RT73 USB Wireless LAN driver.

version: 2.2.3

author: http://rt2x00.serialmonkey.com

srcversion: B59CF4B7B47F0507C4CF5B3

You would only know that this module provides the module for wireless LAN when you read the details from the modinfo command.

Another way to know the which module is responsible for the wireless LAN is to go to the

Mandrivia Control Center via the “Configure Your Computer” icon.

You will see that eventhough the module is loaded, the USB Network adapter is still not working and you would not be able to surf the Internet. Look at the follwoing output results from the network tools command:

[root@localhost ~]# iwconfig

lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 no wireless extensions.

wlan1 IEEE 802.11bg ESSID:””

Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated

Tx-Power=0 dBm

Retry min limit:7 RTS thr:off Fragment thr=2352 B

Encryption key:off

Power Management:off

Link Quality:0 Signal level:0 Noise level:0

Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0

Tx excessive retries:0 Invalid misc:0 Missed beacon:0

root@localhost ~]# iwlist scan

lo Interface doesn’t support scanning.

eth0 Interface doesn’t support scanning.

wmaster0 Interface doesn’t support scanning.

wlan1 Interface doesn’t support scanning : Network is down

The solution is to download and install the firmware.

[root@localhost Desktop]# rpm -ivh rt73-firmware-1.8-2mdv2007.1.noarch.rpm

Preparing… ########################################### [100%]

1:rt73-firmware ########################################### [100%]

After you have install the firmware let’s configure the USB wieless network adapater via the Mandrivia Control Center.

module7

Lauch the web browser. You will be able to surt the Internet

Let’s look at the output of some of the network tools command.

[root@localhost Desktop]# ip route show

192.168.1.0/24 dev wlan1 proto kernel scope link src 192.168.1.101 metric 35

169.254.0.0/16 dev wlan1 scope link metric 35

default via 192.168.1.1 dev wlan1 metric 35

The IP address of this machine is assigned as 192.168.1.101 and the gateway address which is the IP address of the broadband modem is 192.168.1.1.

Next command is the iwconfig:

[root@localhost ~]# iwconfig

lo no wireless extensions.

eth0 no wireless extensions.

wmaster0 no wireless extensions.

wlan1 IEEE 802.11bg ESSID:”gateway1″

Mode:Managed Frequency:2.462 GHz Access Point: 00:1E:10:09:8D:58

Bit Rate=1 Mb/s Tx-Power=14 dBm

Retry min limit:7 RTS thr:off Fragment thr=2352 B

Encryption key:676F-7469-74 Security mode:open

Power Management:off

Link Quality=69/100 Signal level:-64 dBm

Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0

Tx excessive retries:0 Invalid misc:0 Missed beacon:0

The ifconfig also reveals the IP address of the wireless interface, wlan1

[root@localhost ~]# ifconfig

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

inet6 addr: ::1/128 Scope:Host

UP LOOPBACK RUNNING MTU:16436 Metric:1

RX packets:2952 errors:0 dropped:0 overruns:0 frame:0

TX packets:2952 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:162456 (158.6 KiB) TX bytes:162456 (158.6 KiB)

wlan1 Link encap:Ethernet HWaddr 00:19:E0:18:6F:D8

inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0

inet6 addr: fe80::219:e0ff:fe18:6fd8/64 Scope:LinkExploring IP routing and network device configuration tools

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:661 errors:0 dropped:0 overruns:0 frame:0

TX packets:315 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:267950 (261.6 KiB) TX bytes:50203 (49.0 KiB)

wmaster0 Link encap:UNSPEC HWaddr 00-19-E0-18-6F-D8-20-35-00-00-00-00-00-00-00-00

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

Check the resolv.conf file

[root@localhost ~]# more /etc/resolv.conf

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)

# DO NOT EDIT THIS FILE BY HAND — YOUR CHANGES WILL BE OVERWRITTEN

nameserver 192.168.1.1

To scan for teh available wireless networks aroud you, type:

[root@localhost ~]# iwlist scan

lo Interface doesn’t support scanning.

eth0 Interface doesn’t support scanning.

wmaster0 Interface doesn’t support scanning.

wlan1 Scan completed :

Cell 01 – Address: 00:18:39:27:02:40

ESSID:”Tiger”

Mode:Master

Channel:6

Frequency:2.437 GHz (Channel 6)

Quality=48/100 Signal level:-72 dBm

Encryption key:on

IE: Unknown: 00055469676572

IE: Unknown: 010482848B96

IE: Unknown: 030106

IE: WPA Version 1

Group Cipher : TKIP

Pairwise Ciphers (1) : TKIP

Authentication Suites (1) : PSK

IE: Unknown: 0406000200000000

IE: Unknown: 2A0100

IE: Unknown: 32080C1218243048606C

Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s

9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s

48 Mb/s; 54 Mb/s

Extra:tsf=00000000df37fd6f

Extra: Last beacon: 526ms ago

Cell 02 – Address: 00:23:51:56:25:A1

ESSID:”2WIRE338″

Mode:Master

Channel:6

Frequency:2.437 GHz (Channel 6)

Quality=46/100 Signal level:-82 dBm

Encryption key:on

IE: Unknown: 00083257495245333338

IE: Unknown: 010882848B0C12961824

IE: Unknown: 030106

IE: Unknown: 0706534720010D14

IE: Unknown: 2A0100

IE: Unknown: 32043048606C

Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s

9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s

48 Mb/s; 54 Mb/s

Extra:tsf=0000000b50b5d181

Extra: Last beacon: 508ms ago

<output truncated for brevity>

Find out the ESSID:

[root@localhost ~]# iwgetid

wlan1 ESSID:”gateway1″

FInd out the other details:

[root@localhost ~]# iwgetid –freq

wlan1 Frequency:2.462 GHz

[root@localhost ~]# iwgetid –channel

wlan1 Channel:11

[root@localhost ~]# iwgetid –mode

wlan1 Mode:Managed

[root@localhost ~]# iwspy

lo Interface doesn’t support wireless statistic collection

eth0 Interface doesn’t support wireless statistic collection

wmaster0 Interface doesn’t support wireless statistic collection

wlan1 Interface doesn’t support wireless statistic collection

Executing /sbin/iwevent will take you a long time. I decided to abort it.

[root@localhost ~]# iwpriv

lo no private ioctls.

eth0 no private ioctls.

wmaster0 no private ioctls.

wlan1 no private ioctls.

Check out the command:

[root@localhost ~]# more /proc/net/wireless

Inter-| sta-| Quality | Discarded packets | Missed | WE

face | tus | link level noise | nwid crypt frag retry misc | beacon | 22

wlan1: 0000 69. -64 -256 0 0 0 0 0 0

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: