LinuxQuestions.org
Visit Jeremy's Blog.
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 03-14-2012, 01:23 AM   #1
khym_chanur
LQ Newbie
 
Registered: Jun 2007
Posts: 10

Rep: Reputation: 0
wlan0 and wlan0:9 up, but nothing going through


I have a Mandriva One 2011.0 system with a 2.6.38.7-desktop586-1mnb2 kernel. I'm using a MelCo., Inc. Buffalo WLI-UC-G301N Wireless LAN Adapter USB dongle. When I plug in the dongle it automatically loads the rt2870sta module:

Code:
# lsmod  | grep rt

rt2870sta             401440  0 
crc_ccitt               1367  2 rt2870sta,ppp_async
usbcore               163089  6 rt2870sta,ehci_hcd,uhci_hcd,ohci_hcd,usbhid
ifconfig right after plugging it in shows:

Code:
wlan0     Link encap:Ethernet  HWaddr 00:24:A5:AA:C4:BA
          inet6 addr: fe80::224:a5ff:feaa:c4ba/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:3221 errors:0 dropped:0 overruns:0 frame:0
          TX packets:758 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:899598 (878.5 KiB)  TX bytes:61132 (59.6 KiB)
and iwconfig shows:

Code:
wlan0     Ralink STA  ESSID:""  Nickname:"localhost"
          Mode:Auto  Frequency=2.462 GHz  Access Point: Not-Associated   
          Bit Rate:1 Mb/s   
          RTS thr:off   Fragment thr:off
          Link Quality=100/100  Signal level:0 dBm  Noise level:-85 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
At this point iwlist scan shows the wireless router that I want.

If I wait long enough after that ifconfig also shows:

Code:
wlan0:9   Link encap:Ethernet  HWaddr 00:24:A5:AA:C4:BA
          inet addr:127.255.255.255  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
Once wlan0:9 is up, iwconfig gives:

Code:
wlan0     Ralink STA  ESSID:"******"  Nickname:"localhost"
          Mode:Managed  Frequency=2.462 GHz  Access Point: 00:1D:CF:83:20:60   
          Bit Rate=54 Mb/s   
          RTS thr:off   Fragment thr:off
          Link Quality=77/100  Signal level:-62 dBm  Noise level:-53 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
However, none of my software can use the connection, and route -n shows an empty routing table.

If I use /etc/rc.d/init.d/network to stop and the start networking, I get:

Code:
Bringing up interface wlan0:  Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan0 ; Network is down.
Like some posts I found suggested, I got the rt2870.bin file into the /lib/firmware directory (by installing the rt2870-firmware package) and then blacklisted the rt2870sta driver. However, this results in it telling me "usbcore device wlan0 does not seem to be present, delaying initialization".

My ifcfg-wlan0 file:

Code:
DEVICE=wlan0
BOOTPROTO=dhcp
ONBOOT=yes
METRIC=35
MII_NOT_SUPPORTED=no
USERCTL=yes
RESOLV_MODS=no
WIRELESS_MODE=Managed
WIRELESS_ESSID=*******
WIRELESS_ENC_KEY=s:******
WIRELESS_WPA_DRIVER=wext
WIRELESS_WPA_REASSOCIATE=no
IPV6INIT=no
IPV6TO4INIT=no
ACCOUNTING=yes
NM_CONTROLLED=no
DHCP_CLIENT=dhclient
NEEDHOSTNAME=no
PEERDNS=yes
PEERYP=yes
PEERNTPD=no
My /etc/wpa_supplicant.conf file (minus the comments):

Code:
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=1
fast_reauth=1

blob-base64-exampleblob={
SGVsbG8gV29ybGQhCg==
}

network={
    psk="********"
    priority=1
    scan_ssid=0
    ssid="*********"
}
Relevant lines from /var/log/messages:

Code:
Mar 12 18:26:43 localhost kernel: usb 1-6: new high speed USB device using ehci_hcd and address 4
Mar 12 18:26:43 localhost kernel: usb 1-6: New USB device found, idVendor=0411, idProduct=016f
Mar 12 18:26:43 localhost kernel: usb 1-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar 12 18:26:43 localhost kernel: usb 1-6: Product: 802.11 n WLAN
Mar 12 18:26:43 localhost kernel: usb 1-6: Manufacturer: Ralink
Mar 12 18:26:43 localhost kernel: usb 1-6: SerialNumber: 1.0
Mar 12 18:26:43 localhost mtp-probe: checking bus 1, device 4: "/sys/devices/pci0000:00/0000:00:02.1/usb1/1-6"
Mar 12 18:26:43 localhost mtp-probe: bus: 1, device: 4 was not an MTP device
Mar 12 18:26:43 localhost mtp-probe: checking bus 1, device 4: "/sys/devices/pci0000:00/0000:00:02.1/usb1/1-6"
Mar 12 18:26:43 localhost mtp-probe: bus: 1, device: 4 was not an MTP device
Mar 12 18:26:43 localhost kernel: rt2870sta: module is from the staging directory, the quality is unknown, you have been warned.
Mar 12 18:26:43 localhost kernel: === pAd = f8cdc000, size = 472668 ===
Mar 12 18:26:43 localhost kernel: <-- RTMPAllocAdapterBlock, Status=0
Mar 12 18:26:43 localhost kernel: usbcore: registered new interface driver rt2870
Mar 12 18:26:43 localhost kernel: #
Mar 12 18:26:45 localhost kernel: <-- RTMPAllocTxRxRingMemory, Status=0
Mar 12 18:26:45 localhost kernel: -->RTUSBVenderReset
Mar 12 18:26:45 localhost kernel: <--RTUSBVenderReset
Mar 12 18:26:46 localhost kernel: #
Mar 12 18:26:48 localhost kernel: #
Mar 12 18:26:48 localhost kernel: 1. Phy Mode = 0
Mar 12 18:26:48 localhost kernel: 2. Phy Mode = 0
Mar 12 18:26:48 localhost kernel: RTMPSetPhyMode: channel is out of range, use first channel=1 
Mar 12 18:26:48 localhost kernel: 3. Phy Mode = 0
Mar 12 18:26:48 localhost kernel: MCS Set = 00 00 00 00 00
Mar 12 18:26:51 localhost kernel: RTMPFilterCalibration - can't find a valid value, loopcnt=102 stop calibrating<==== rt28xx_init, Status=0
Mar 12 18:26:51 localhost kernel: ---> RTMPFreeTxRxRingMemory
Mar 12 18:26:51 localhost kernel: <--- RTMPFreeTxRxRingMemory
Mar 12 18:26:54 localhost kernel: #
Mar 12 18:26:55 localhost kernel: <-- RTMPAllocTxRxRingMemory, Status=0
Mar 12 18:26:55 localhost kernel: -->RTUSBVenderReset
Mar 12 18:26:55 localhost kernel: <--RTUSBVenderReset
Mar 12 18:26:57 localhost kernel: #
Mar 12 18:26:58 localhost kernel: #
Mar 12 18:26:59 localhost kernel: 1. Phy Mode = 0
Mar 12 18:26:59 localhost kernel: 2. Phy Mode = 0
Mar 12 18:26:59 localhost kernel: 3. Phy Mode = 0
Mar 12 18:26:59 localhost kernel: MCS Set = 00 00 00 00 00
Mar 12 18:26:59 localhost kernel: <==== rt28xx_init, Status=0
Mar 12 18:26:59 localhost ifplugd(wlan0)[17801]: ifplugd 0.28 initializing.
Mar 12 18:26:59 localhost ifplugd(wlan0)[17801]: Using interface wlan0/00:24:A5:AA:C4:BA with driver <usb> (version: )
Mar 12 18:26:59 localhost ifplugd(wlan0)[17801]: Using detection mode: wireless extension
Mar 12 18:26:59 localhost ifplugd(wlan0)[17801]: Initialization complete, link beat not detected.
Mar 12 18:26:59 localhost kernel: IOCTL::unknown IOCTL's cmd = 0x00008947
Mar 12 18:27:04 localhost kernel: ===>rt_ioctl_giwscan. 2(2) BSS returned, data->length = 350
Mar 12 18:27:04 localhost kernel: ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Mar 12 18:27:05 localhost ifplugd(wlan0)[17801]: Link beat detected.
Mar 12 18:27:06 localhost ifplugd(wlan0)[17801]: Executing '/etc/ifplugd/ifplugd.action wlan0 up'.
Mar 12 18:27:07 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
Mar 12 18:27:13 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
Mar 12 18:27:16 localhost kernel: #
Mar 12 18:27:17 localhost kernel: #
Mar 12 18:27:20 localhost kernel: ===>rt_ioctl_giwscan. 4(4) BSS returned, data->length = 627
Mar 12 18:27:20 localhost kernel: ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Mar 12 18:27:25 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 19
Mar 12 18:27:28 localhost kernel: #
Mar 12 18:27:35 localhost kernel: ===>rt_ioctl_giwscan. 4(4) BSS returned, data->length = 627
Mar 12 18:27:35 localhost kernel: ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Mar 12 18:27:44 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 21
Mar 12 18:27:46 localhost kernel: #
Mar 12 18:27:51 localhost kernel: ===>rt_ioctl_giwscan. 3(3) BSS returned, data->length = 524
Mar 12 18:27:51 localhost kernel: ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Mar 12 18:28:05 localhost dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
Mar 12 18:28:06 localhost kernel: ===>rt_ioctl_giwscan. 3(3) BSS returned, data->length = 453
Mar 12 18:28:06 localhost kernel: ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Mar 12 18:28:08 localhost dhclient: No DHCPOFFERS received.
Mar 12 18:28:08 localhost zcip[17929]: interface: wlan0 (00:24:A5:AA:C4:BA)
Mar 12 18:28:08 localhost zcip[17929]: Retrieved address 127.255.255.255 for wlan0:9
Mar 12 18:28:08 localhost zcip[17929]: probing for 127.255.255.255
Mar 12 18:28:08 localhost kernel: device wlan0 entered promiscuous mode
Mar 12 18:28:08 localhost zcip[17929]: sending probe 1 for 127.255.255.255
Mar 12 18:28:10 localhost zcip[17929]: sending probe 2 for 127.255.255.255
Mar 12 18:28:12 localhost zcip[17929]: sending probe 3 for 127.255.255.255
Mar 12 18:28:14 localhost zcip[17929]: sending probe 4 for 127.255.255.255
Mar 12 18:28:16 localhost kernel: device wlan0 left promiscuous mode
Mar 12 18:28:16 localhost zcip[17929]: claiming ownership of address 127.255.255.255
Mar 12 18:28:20 localhost zcip[17929]: Stored address 127.255.255.255 for wlan0:9
Mar 12 18:28:20 localhost zcip[17959]: watching for collisions
Mar 12 18:28:20 localhost ifplugd(wlan0)[17801]: client: Determining IP information for wlan0... done.
Mar 12 18:28:20 localhost ifplugd(wlan0)[17801]: Program executed successfully.
Mar 12 18:28:22 localhost kernel: ===>rt_ioctl_giwscan. 3(3) BSS returned, data->length = 453
Mar 12 18:28:22 localhost kernel: ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Mar 12 18:28:29 localhost kernel: #
Mar 12 18:28:38 localhost kernel: ===>rt_ioctl_giwscan. 3(3) BSS returned, data->length = 524
Mar 12 18:28:38 localhost kernel: ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Mar 12 18:28:53 localhost kernel: ===>rt_ioctl_giwscan. 4(4) BSS returned, data->length = 627
Mar 12 18:28:53 localhost kernel: ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Mar 12 18:29:08 localhost kernel: ===>rt_ioctl_giwscan. 4(4) BSS returned, data->length = 627
Mar 12 18:29:08 localhost kernel: ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
Mar 12 18:29:24 localhost kernel: ===>rt_ioctl_giwscan. 3(3) BSS returned, data->length = 453
Mar 12 18:29:24 localhost kernel: ==>rt_ioctl_siwfreq::SIOCSIWFREQ[cmd=0x8b04] (Channel=1)
 
Old 03-15-2012, 01:32 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,400

Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
Mnadrake.

Have you run 'dhclient wlan0' or 'dhcpcd wlan0'. If you run one of those, you should be assigned an ip (Presuming your router does dhcp), and you're away.
 
Old 03-15-2012, 11:42 PM   #3
khym_chanur
LQ Newbie
 
Registered: Jun 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by business_kid View Post
Mnadrake.

Have you run 'dhclient wlan0' or 'dhcpcd wlan0'. If you run one of those, you should be assigned an ip (Presuming your router does dhcp), and you're away.
I think the networking scripts are doing that for me, since /var/log/messages shows

Code:
dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
However, I tried waiting until after wlan0:9 was up, then ran dhclient -v wlan0. The ouput was:

Code:
Internet Systems Consortium DHCP Client 4.2.1-P1
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/00:24:a5:aa:c4:ba
Sending on   LPF/wlan0/00:24:a5:aa:c4:ba
Sending on   Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
I tried doing it again with the added option -s 127.255.255.255, since this is the bcast address that's listed for wlan0:9, but that didn't work either.
 
Old 04-03-2012, 07:07 AM   #4
WizadNoNext
Member
 
Registered: Nov 2009
Posts: 140

Rep: Reputation: 9
First: get rid of any sta drivers - they are old and unsupported!
Second: get rt2800usb driver!
Third: everything will be working

And actually your setup is broken! Do you really need alias? If you don't need it or you don't know what it is, then remove everything about wlan0:9 from configuration!
 
Old 04-03-2012, 08:31 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,400

Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
DHCPDISCOVER = "Is anyone out there?"
DHCPOFFERS = "I am!"

There's a few other steps along the way. Try these commands
ifconfig wlan0 up
iwconfig
iwlist wlan0 scan |less check for your local essid, and check if you are associated. It sounds like your wifi router is turned off.
 
Old 04-03-2012, 04:00 PM   #6
WizadNoNext
Member
 
Registered: Nov 2009
Posts: 140

Rep: Reputation: 9
Wait the sec. If you tried IP 127.255.255.255 you can't get answer - no way - every device, every IP implementation is expected to DROP every packet to/from 127.0.0.0/8 IP, if it is not locally generated AND locally destined! It is loopback address and cannot be used on any interface (apart from lo - local-loopback).

business_kid - you are bit wrong!

DHCPDISCOVER = can anybody lease me some IP?
DHCPOFFER = ask me for this IP with settings
DHCPREQUEST = ok, I am asking you for this IP
DHCPACK = ok, it is yours for stated amount of time

This is how it work - it is NOT ARP - it is DHCP and leases IPs, not helps to discover free IPs.
 
Old 04-04-2012, 01:33 AM   #7
khym_chanur
LQ Newbie
 
Registered: Jun 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by WizadNoNext View Post
First: get rid of any sta drivers - they are old and unsupported!
Second: get rt2800usb driver!
Third: everything will be working
I tried blacklisting the sta driver. Doing that gets me the response: "Device wlan0 does not seem to be present, delaying initialization". This happens even if I've already loaded the rt2800usb driver via modprobe before trying to start the wireless connection.

Quote:
And actually your setup is broken! Do you really need alias? If you don't need it or you don't know what it is, then remove everything about wlan0:9 from configuration!
As far as I can tell, the wlan0:9 isn't mentioned in any configuration files. Also, my DSL connection works just fine when I have both the eth1 and eth1:9 devices listed by ifconfing.


Quote:
Originally Posted by business_kid View Post
iwlist wlan0 scan |less check for your local essid, and check if you are associated. It sounds like your wifi router is turned off.
iwlist wlan0 scan shows my desired ESSID:

Code:
          Cell 02 - Address: 00:1D:CF:83:20:60
                    
                    ESSID:"[REDACTED]"
                    Mode:Managed
                    Channel:1
                    Quality:81/100  Signal level:-58 dBm  Noise level:-53 dBm
                    Encryption key:on
                    Bit Rates:130 Mb/s
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : TKIP CCMP
                        Authentication Suites (1) : PSK
 
Old 04-04-2012, 02:00 AM   #8
WizadNoNext
Member
 
Registered: Nov 2009
Posts: 140

Rep: Reputation: 9
Every interface which is typed like eth0:1 eth1:2 wlan0:9 is alias - another IP address for NIC. You don't need two addresses, so your config is definitely broken.
And actually your router is broken as well - it should report more then one Bit Rate. When you start to talk with it, it is done on Bit Rate 1mb/s and not 130mb/s (I know - I have two APs in two servers).
Code:
marek@bridge:~$ sudo iwlist wlan0 scan
wlan0     Scan completed :
          Cell 01 - Address: 1C:BD:B9:xx:xx:xx
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=67/70  Signal level=-43 dBm  
                    Encryption key:on
                    ESSID:"Abbey"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
                              18 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=0000009b28af70c6
                    Extra: Last beacon: 470ms ago
                    IE: Unknown: 00054162626579
                    IE: Unknown: 010882848B961224486C
                    IE: Unknown: 03010B
                    IE: Unknown: 2A0104
                    IE: Unknown: 32040C183060
                    IE: Unknown: 2D1AEE1117FFFF0000010000000000000000000000000C0000000000
                    IE: Unknown: 3D160B070700000000000000000000000000000000000000
                    IE: Unknown: 3E0100
                    IE: WPA Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
                    IE: Unknown: 7F0101
                    IE: Unknown: DD07000C4307000000
                    IE: Unknown: 0706474220010D10
                    IE: Unknown: DD1E00904C33EE1117FFFF0000010000000000000000000000000C0000000000
                    IE: Unknown: DD1A00904C340B070700000000000000000000000000000000000000
          Cell 02 - Address: 00:11:50:xx:xx:xx
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=0/70  Signal level=-128 dBm  
                    Encryption key:on
                    ESSID:"Cloud7.org"
                    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
                    Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=0000005cbf6fd0e0
                    Extra: Last beacon: 890ms ago
                    IE: Unknown: 000A436C6F7564372E6F7267
                    IE: Unknown: 010802848B960C121824
                    IE: Unknown: 030106
                    IE: Unknown: 0706554B20010B14
                    IE: Unknown: 2A0100
                    IE: Unknown: 32043048606C
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
Abbey is wireless provided by our home (really bad) router and Cloud7.org is my private AP running on other server.
Code:
marek@server:~$ sudo iwlist wlan0 scan
wlan0     Scan completed :
          Cell 01 - Address: 00:C0:CA:xx:xx:xx
                    Channel:1
                    Frequency:2.412 GHz (Channel 1)
                    Quality=70/70  Signal level=-26 dBm  
                    Encryption key:on
                    ESSID:"Cloud7"
                    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
                    Bit Rates:24 Mb/s; 36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=0000000003c7559d
                    Extra: Last beacon: 1270ms ago
                    IE: Unknown: 0006436C6F756437
                    IE: Unknown: 010802848B960C121824
                    IE: Unknown: 030101
                    IE: Unknown: 0706554B20010B14
                    IE: Unknown: 2A0100
                    IE: Unknown: 32043048606C
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD180050F2020101000003A4000027A4000042435E0062322F00
          Cell 02 - Address: 1C:BD:B9:xx:xx:xx
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=70/70  Signal level=-32 dBm  
                    Encryption key:on
                    ESSID:"Abbey"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
                              18 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 12 Mb/s; 24 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=0000009b3561b6b7
                    Extra: Last beacon: 460ms ago
                    IE: Unknown: 00054162626579
                    IE: Unknown: 010882848B961224486C
                    IE: Unknown: 03010B
                    IE: Unknown: 2A0104
                    IE: Unknown: 32040C183060
                    IE: Unknown: 2D1AEE1117FFFF0000010000000000000000000000000C0000000000
                    IE: Unknown: 3D160B070700000000000000000000000000000000000000
                    IE: Unknown: 3E0100
                    IE: WPA Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
                    IE: Unknown: 7F0101
                    IE: Unknown: DD07000C4307000000
                    IE: Unknown: 0706474220010D10
                    IE: Unknown: DD1E00904C33EE1117FFFF0000010000000000000000000000000C0000000000
                    IE: Unknown: DD1A00904C340B070700000000000000000000000000000000000000
And now scan from the other server.
As you can clearly see I see more then one bit rate (all available by standard).
This clearly show, that your router is broken
 
Old 04-04-2012, 03:11 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,400

Rep: Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336Reputation: 2336
Quote:
Originally Posted by WizadNoNext View Post
Wait the sec. If you tried IP 127.255.255.255 you can't get answer -
business_kid - you are bit wrong!

DHCPDISCOVER = can anybody lease me some IP?
DHCPOFFER = ask me for this IP with settings
DHCPREQUEST = ok, I am asking you for this IP
DHCPACK = ok, it is yours for stated amount of time

This is how it work - it is NOT ARP - it is DHCP and leases IPs, not helps to discover free IPs.
You are correct in every way. But some of those stages are not reported on stdout at low debug levels. I wasn't giving a lecture on DHCP, but explaining his output.
 
Old 04-05-2012, 01:13 AM   #10
WizadNoNext
Member
 
Registered: Nov 2009
Posts: 140

Rep: Reputation: 9
Oh, I didn't read documentation for DHCP. What is the point - I know how it works and I don't need super-duper advanced features, then I just stay with amount of knowledge I already have. I just understand internals of many protocols and its mostly to extend needed by my at moment and sometimes even beyond that extend. It is simply another language and I am good with languages.
 
Old 04-06-2012, 12:27 AM   #11
khym_chanur
LQ Newbie
 
Registered: Jun 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by WizadNoNext View Post
And actually your router is broken as well - it should report more then one Bit Rate.
I can connect to the router and use the Internet just fine if I reboot to use Windows Vista.

Also, I just noticed that if after I blacklist rt2870sta I remove and the re-insert the USB device, iwconfig now shows:

Code:
wlan1     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
instead of:

Code:
wlan0     Ralink STA  ESSID:""  Nickname:"localhost"
          Mode:Auto  Frequency=2.412 GHz  Access Point: 00:1D:CF:83:20:60   
          Link Quality=100/100  Signal level:-62 dBm  Noise level:-85 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
And I'm curious: does the "Ralink" given by iwconfig mean that I need to set WIRELESS_WPA_DRIVER to "ralink" rather than "wext"? I tried that, but got "RALINK: Driver does not support wpa_supplicant".
 
Old 04-06-2012, 01:10 AM   #12
khym_chanur
LQ Newbie
 
Registered: Jun 2007
Posts: 10

Original Poster
Rep: Reputation: 0
Ooops, once I had iwconfig showing me a wlan1 instead of wlan0 (as a result of blacklisting rt2870sta), I forgot to rename the DEVICE variable in /etc/sysconfig/network-scripts. Once I did that, everything worked, except that I had to disable the shorewall firewall to not block my output.
 
Old 04-06-2012, 11:53 PM   #13
WizadNoNext
Member
 
Registered: Nov 2009
Posts: 140

Rep: Reputation: 9
Have a look in /etc/udev/rules.d/70-persistent-net.rules and remove line with wlan0 and change the other line contents from wlan1 to wlan0 - DONE.
P.S. shorewall is slow and it is not flexible. If you want to add any new rule, you have to restart it, which means, flushing all IPtables (loosing all connections) and putting new rules (along with old ones) to IPtables - simply not flexible. I can give you script, which you should put in /etc/init.d/ and make symlinks in /etc/rd.x. Shorewall is good start, but with lets say 2000 rules it takes forever to finish, my script is instant (you can even try say 1M rules - should be pretty much instant and shorewall would still hour of your life with such amount of rules). I started with shorewall and my iptables still bares traces of it (but it is only because it is easy to read). Shorewall actually makes a lot of rules, which with simple change could be completely avoided and make tables a lot smaller (faster). I consider shorewall to be more like joke, then professional solution (I do not blame you, but laziness of authors).
 
  


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
What is wlan0:9? Viper Chief Linux - Wireless Networking 1 06-10-2008 12:44 AM
No Wlan0 eel250 Linux - Wireless Networking 1 07-29-2006 05:58 PM
dhclient wlan0 - wlan0: not found nickleus Linux - Networking 1 05-10-2005 09:06 PM
wlan0 Patbuzz86 Linux - Wireless Networking 8 04-28-2004 02:45 PM
Broadcom wireless with ndiswrapper: ifconfig wlan0 works; ifup wlan0 fails orangechicken Linux - Wireless Networking 2 04-17-2004 05:39 PM

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

All times are GMT -5. The time now is 12:11 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