Jump to content

Ubuntu and Wireless


keylime

Recommended Posts

I need some assistance for a new Ubuntu user (me) to configure my wireless correctly.

 

I am using a NC4200 HP laptop with an Intel 2200BG wireless chipset. Everything else on the machine is working the way I expect it to, except the wireless.

 

I have attempted to follow the directions, but admittedly they are very confusing to me since I'm not an UNIX guru at all.

 

I'm a little frustrated right now, and getting the wireless to work correctly will allow me to start testing the software and clones thereof for work purposes.

 

Anyone out there have a clue?

Link to comment
Share on other sites

I had problems with my wireless modem and Ubuntu as well. This link helped me out. My problem was that the newest Ununtu image had an outdated driver for my modem. You may have to download an up-to-date driver from Intel.

 

That said I still have problems with many wireless networks. Often Ubuntu persists in defining a LAN domain which I have to delete manually. And sometimes the DNS must be entered manually.

 

As a true Linux apostel I found comfort in the fact that the situation was even worse under Windows :) (I have dual boot on one of my computers because Jack is a Windows program)

Link to comment
Share on other sites

Usage: iwlist [interface] scanning

[interface] frequency

[interface] channel

[interface] bitrate

[interface] rate

[interface] encryption

[interface] key

[interface] power

[interface] txpower

[interface] retry

[interface] ap

[interface] accesspoints

[interface] peers

[interface] event

That's when I type it in Terminal.

 

In the GUI, it does show as a "wireless connection". I do have wpa_supplicant installed I believe.

 

Edit: Performed an ifconfig -a and got this:

 

eth0 Link encap:Ethernet HWaddr 00:0F:B0:76:10:7C

inet addr:172.21.30.40 Bcast:172.21.255.255 Mask:255.255.0.0

inet6 addr: fe80::20f:b0ff:fe76:107c/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

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

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

collisions:0 txqueuelen:1000

RX bytes:667378 (651.7 KiB) TX bytes:195519 (190.9 KiB)

Interrupt:16

 

eth1 Link encap:Ethernet HWaddr 00:15:00:13:C0:D0

inet6 addr: fe80::215:ff:fe13:c0d0/64 Scope:Link

UP BROADCAST 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:1

collisions:0 txqueuelen:1000

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

Interrupt:21 Base address:0x6000 Memory:d8000000-d8000fff

 

eth1:avah Link encap:Ethernet HWaddr 00:15:00:13:C0:D0

inet addr:169.254.7.95 Bcast:169.254.255.255 Mask:255.255.0.0

UP BROADCAST MULTICAST MTU:1500 Metric:1

Interrupt:21 Base address:0x6000 Memory:d8000000-d8000fff

 

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:101 errors:0 dropped:0 overruns:0 frame:0

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

collisions:0 txqueuelen:0

RX bytes:8879 (8.6 KiB) TX bytes:8879 (8.6 KiB)

Link to comment
Share on other sites

You have 2 ethernet connections:

 

eth0 172.21.30.40

eth1 169.254.7.95

 

I bet one of these is your wireless lan. I think it is eth1.

It is connected and should work, but maybe your system tries to contact the net on the other interface.

 

I also think that your default route points to eth0, so if you don't have a cable in there, you won't get a data transfer.

 

So please check that using the 'route' command at the command prompt.

Perhaps 'route -n' will give enough information about it.

Link to comment
Share on other sites

here's my route table:

 

Destination Gateway Genmask Flags Metric Ref Use Iface

169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1

169.254.0.0 0.0.0.0 255.255.0.0 U 1000 0 0 eth0

172.21.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0

0.0.0.0 172.21.1.1 0.0.0.0 UG 0 0 0 eth0

0.0.0.0 0.0.0.0 0.0.0.0 U 1000 0 0 eth1

 

I also have verified my wpasupplicant is installed, has it set to dhcp. There is a listing for wlan0 evidently.

 

Iwconfig states this:

 

lo no wireless extensions.

 

eth1 IEEE 802.11g ESSID:off/any

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

Bit Rate=54 Mb/s

RTS thr=1600 B Fragment thr=2304 B

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

 

eth0 no wireless extensions.

 

When I try to configure my wireless I only see WEP; no indication of WPA.

Link to comment
Share on other sites

eth1      IEEE 802.11g  ESSID:off/any 

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

          Bit Rate=54 Mb/s 

          RTS thr=1600 B  Fragment thr=2304 B 

          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

 

This proves that eth1 is your WLAN card and that it got it's IP-Address from a DHCP-Server.

 

here's my route table:

 

Destination    Gateway        Genmask        Flags Metric Ref    Use Iface

169.254.0.0    0.0.0.0        255.255.0.0    U    0      0        0 eth1

169.254.0.0    0.0.0.0        255.255.0.0    U    1000  0        0 eth0

This is bad, because you should not access the same subnet on both interfaces.

172.21.0.0      0.0.0.0        255.255.0.0    U    0      0        0 eth0

0.0.0.0        172.21.1.1      0.0.0.0        UG    0      0        0 eth0

0.0.0.0        0.0.0.0        0.0.0.0        U    1000  0        0 eth1

0.0.0.0 172.21.1.1 0.0.0.0 UG 0 0 0 eth0

This line means:

Any IP that is not in the subnets above, should be accessed using the gateway 172.21.1.1 using interface eth0.

 

This often happens if you use automated services with 2 network cards.

The generated routing commands are wrong.

 

Since i don't use Ubuntu and i can't access a linux machine right now, i don't know where you need to change the routing.

 

Manually you can delete any routing entry using:

route del ....

and add new ones using:

route add ....

 

The commands you have to use must be something like:

route del -net 169.254.0.0/24

route del default gw 172.21.1.1

route add default gw IP_OF_YOUR_WLAN_GATEWAY

 

There must be some sort of linux routing howto somewhere ......

Link to comment
Share on other sites

Firstly, 169.254.x.x is NOT a working address, but shows a failed attempt to contact a DHCP server to obtain an address.

 

Helene, the DHCP server rewrites by default /etc/resolv.conf if the DHCP server gives DNS servers and domains to search, unless told otherwise.

 

Dwayne, "iwlist scanning" lists all the Access Points it sees.

 

you can use the CLI to configure it (/etc/wpa_supplicant.conf) or the GUI,

NetworkManager (apt-get network-manager-gnome), if already there, should show an icon in the tray, letting you choose between wired or wireless network, and then, which wireless network between those available. It will ask authentication method (be sure to pick the right one) and password.

Link to comment
Share on other sites

K update time.

 

After much help from Gerardo, Dan, Gert, and others, I have been able to get the device nearly functional.

 

The only issue I am having is the fact that I am getting a lot of reception errors. It's dropping a lot of packets. This is causing me not to be able to access the wireless here at work.

 

I am currently using wicd manager which is helping immensely.

 

Any thoughts?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...