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 Code:
wlan0 Link encap:Ethernet HWaddr 00:24:A5:AA:C4:BA Code:
wlan0 Ralink STA ESSID:"" Nickname:"localhost" If I wait long enough after that ifconfig also shows: Code:
wlan0:9 Link encap:Ethernet HWaddr 00:24:A5:AA:C4:BA Code:
wlan0 Ralink STA ESSID:"******" Nickname:"localhost" 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) : My ifcfg-wlan0 file: Code:
DEVICE=wlan0 Code:
ctrl_interface=/var/run/wpa_supplicant Code:
Mar 12 18:26:43 localhost kernel: usb 1-6: new high speed USB device using ehci_hcd and address 4 |
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. |
Quote:
Code:
dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6 Code:
Internet Systems Consortium DHCP Client 4.2.1-P1 |
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! |
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. |
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. |
Quote:
Quote:
Quote:
Code:
Cell 02 - Address: 00:1D:CF:83:20:60 |
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 Code:
marek@server:~$ sudo iwlist wlan0 scan As you can clearly see I see more then one bit rate (all available by standard). This clearly show, that your router is broken |
Quote:
|
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.
|
Quote:
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 Code:
wlan0 Ralink STA ESSID:"" Nickname:"localhost" |
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.
|
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). |
All times are GMT -5. The time now is 12:16 PM. |