LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-25-2012, 05:11 PM   #1
sgtzim
LQ Newbie
 
Registered: Feb 2012
Posts: 4

Rep: Reputation: Disabled
Ubuntu and wireless NIC


I have a dual-boot Ubuntu - desktop on one side, server 11.10 on the other.

My wireless works just fine on the desktop side, but not on the server.

The relevant part of the interfaces file:
auto wlan0
iface wlan0 inet static
address 192.168.1.6
netmask 255.255.255.0
gateway 192.168.1.1
network 192.168.1.0
broadcast 192.168.1.255
dns-nameservers 192.168.1.1
wpa-driver wext
wpa-ssid NETWORKNAME
wpa-ap-scan 1 (yeah, I'm broadcasting)
wpa-proto RSN (yeah, WAP is WPA2)
wpa-pairwise CCMP
wpa-group CCMP
wpa-key-mgmt WPA-PSK
wpa-psk PASSWORD

iwconfig produces:
wlan0 802.11b/g ESSID:"NETWORKNAME"
Mode: Managed Frequency=2.412 GHz Access Point: Not-Associated
Bit Rate: 11 Mb/s
Retry: on RTS: off Fragment thr: off
Encryption key: off
Link Quality=0/100 Signal level=0dBm Noise level=0 dBm
Rx invalid nwid: 0 Rx invalid crypt: 0 Rx invalid frag: 0
Tx excessive retries: 0 Invalid misc: 0 Missed beacon: 0

routing table is empty (duh)

iwlist scan produces:
wlan0 No scan results

when I run ifup -v wlan0, all of the wpa_supplicant checks come back "OK" on everything that I configured in "interfaces," but at the very end, I get the message "Failed to bring up wlan0" even though I had just run ifdown wlan0.

Am I missing some configuration setting, or is there some problem with Ubuntu 11.10 that doesn't exist with the desktop version?

On the wpa-psk, I've tried it as ASCII text and as the hex conversion of the ASCII, and neither of them work.

Last edited by sgtzim; 02-25-2012 at 05:14 PM. Reason: added spaces between colons and zeroes
 
Old 02-25-2012, 07:24 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,361
Blog Entries: 12

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
The most likely cause is that you have a wireless chip that requires proprietary drivers, which are not in the standard software repository; instead they are in another repo that is easily enabled with about four mouse-clicks.

What kind of wireless chipset does your computer have? If you're not sure, you can run the command lspci in a terminal; the output should identify the wireless chip.

Post the relevant output here.
 
Old 02-25-2012, 07:32 PM   #3
sgtzim
LQ Newbie
 
Registered: Feb 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Realtek RTL8187SE Wireles LAN Controller (rev 22)

Like I said, the wireless NIC works just fine with the desktop side, it just isn't working with the server side.

So that makes me think it's something with boot up, or with a config file, or wpa_supplicant.

Last edited by sgtzim; 02-25-2012 at 07:37 PM.
 
Old 03-01-2012, 09:45 AM   #4
sgtzim
LQ Newbie
 
Registered: Feb 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Well, I finally figured out the problem. I had a eth0 profile in my interfaces file, and all traffic was being routed to it. I deleted the eth0 portion of interfaces, and now everything works. Well, I imagine it was working before, but eth0 was acting as primary interface so everything was failing.
 
Old 03-01-2012, 09:11 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,361
Blog Entries: 12

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Glad you're working. Sorry I missed your previous post but thanks for the rest of the story. It's likely to help some future visitor.
 
Old 03-02-2012, 12:27 AM   #6
sgtzim
LQ Newbie
 
Registered: Feb 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
For someone that might be totally new to all of this, I meant to add that I do have two NICs...one is wireless and the other is ethernet. Both NICs have statically assigned IP addresses within the same subnet. When I had Cat-5 connected to the ethernet port, both the ethernet and the wireless NIC were visible on the network. When I disconnected the ethernet, obviously that IP address was going nowhere, but I also lacked connectivity on the wireless NIC even though all of the configuration settings for it were correct

eth0 was configured with 192.168.1.5
wlan0 was configured with 192.168.1.6

I didn't really pay attention at first, but I noticed that even when I had the ethernet unplugged, all PINGs sent from my server were being sent through the 192.168.1.5 NIC and kept returning "Destination host unreachable."

I'm certain there's a config file that would give the "first look" to the wireless NIC, or would make communication attempts with the wireless NIC if communications with the ethernet NIC failed.

There are a variety of reasons why you might want 2 or even more network cards on a server. I've not got this completely solved, but at least I know where to start looking now.

How can I force wlan0 to be the "primary" NIC, or at least have a config file set to iterate through all NICs on a given machine?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Which wireless NIC PCI card works good with Ubuntu? abefroman Linux - Hardware 3 08-06-2008 02:47 PM
Need a wireless NIC card for UBUNTU (latest version) armvblan Linux - Newbie 2 07-10-2008 09:27 AM
Good wireless nic card (pcmcia) for ubuntu/nubuntu mikey6705 Linux - Wireless Networking 5 05-19-2007 09:49 AM
Which wireless NIC's does Linux (ubuntu) support best? nickk Linux - Hardware 2 09-06-2006 01:08 AM
Ubuntu Wireless Nic Help embsupafly Linux - Wireless Networking 1 04-28-2005 06:57 AM


All times are GMT -5. The time now is 06:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration