LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
LinkBack Search this Thread
Old 02-04-2006, 12:51 PM   #1
maddogdelta
Member
 
Registered: Nov 2003
Location: tonawanda, NY
Posts: 32

Rep: Reputation: 15
Installing broadcom, but I think there is a different issue ....


I posted this on another thread, so my apologies for this cross post, but it may get lost being on page 2....

I'm installing the broadcom driver using ndiswrapper. Everything seems to work, except I can't get dhcp to get an address.
On top of that, when I assign a static address, it doesn't connect to anything either.

here is the sequence of installing using ndiswrapper:

OK, trying to get the built in 802.11g network card working with my compaq presario laptop (v5005us)
in winders it works fine
in linux, i have compiled ndiswrapper, installed ndiswrapper (both no problems)
i checked the proper driver, and installed that.. (using the ndiswrapper instructions)
Then i installed, after i do ndiswrapper -l i get
bcmwl5 driver present, hardware present
Then I did ndiswrapper -m, no problem
depmod -a, no problem
modprobe ndiswrapper, no problem
dmesg after the modprobe, i get

ndiswrapper version 1.8 loaded (preempt=no,smp=no)
ndiswrapper: driver bcmwl5 (Broadcom,07/21/2005, 3.140.16.0) loaded
ndiswrapper: using irq 10
wlan0: ndiswrapper ethernet device 00:14:a5:2d:33:1a using driver bcmwl5, 14E4:4
318.5.conf

so far, so good
iwconfig gives me
[root@localhost ~]# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

wlan0 IEEE 802.11g ESSIDff/any Nickname:"localhost.localdomain"
Mode:Managed Frequency:2.462 GHz Access Point: 00:00:00:00:00:00
Bit Rate=54 Mb/s Tx-Power:25 dBm
RTS thr=2347 B Fragment thr=2346 B
Encryption keyff
Power Managementff
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

sit0 no wireless extensions.
iwlist then gives me:
[root@localhost ~]# iwlist wlan0 scan
wlan0 Scan completed :
Cell 01 - Address: 00:11:95:53:8E:FB
ESSID:"hubbardhouse"
Protocol:IEEE 802.11g
Mode:Managed
Frequency:2.412 GHz (Channel 1)
Quality:0/100 Signal level:-59 dBm Noise level:-256 dBm
Encryption keyff
Bit Rate:1 Mb/s
Bit Rate:2 Mb/s
Bit Rate:5.5 Mb/s
Bit Rate:11 Mb/s
Bit Rate:6 Mb/s
Bit Rate:12 Mb/s
Bit Rate:24 Mb/s
Bit Rate:36 Mb/s
Bit Rate:9 Mb/s
Bit Rate:18 Mb/s
The next couple of commands are....
[root@localhost ~]# iwconfig wlan0 mode Managed
[root@localhost ~]# iwconfig wlan0 essid 'HUBBARDHOUSE'
[root@localhost ~]# iwconfig wlan0 up
Error : unrecognised wireless request "up"
[root@localhost ~]# ifconfig wlan0 up
Now for the big one, Margo. dhclient:
[root@localhost ~]# dhclient wlan0
Internet Systems Consortium DHCP Client V3.0.2
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

Listening on LPF/wlan0/00:14:a5:2d:33:1a
Sending on LPF/wlan0/00:14:a5:2d:33:1a
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
No DHCPOFFERS received.
No working leases in persistent database - sleeping.


Bit Rate:48 Mb/s
Bit Rate:54 Mb/s
Extra:bcn_int=100
Extra:atim=0

I checked the dhcp server, and it has plenty of leases.

At this point, I'm a little bit without clue. I did try a static ip address, but then when I tried to ping another machine on my network, I got :
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:1441 errors:0 dropped:0 overruns:0 frame:0
TX packets:1441 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1585635 (1.5 MiB) TX bytes:1585635 (1.5 MiB)

wlan0 Link encap:Ethernet HWaddr 00:14:A5:2D:33:1A
inet addr:192.168.0.44 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::214:a5ff:fe2d:331a/64 Scope:Link
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)
Interrupt:10 Memory:c0200000-c0202000

[root@localhost ~]# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
From 192.168.0.44 icmp_seq=1 Destination Host Unreachable
From 192.168.0.44 icmp_seq=2 Destination Host Unreachable
From 192.168.0.44 icmp_seq=3 Destination Host Unreachable

--- 192.168.0.1 ping statistics ---
6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5004ms
, pipe 4

The wierd thing here, is that Destination host unreachable usually means you are pinging a different network with no route to that network. In this case, you
can see that both sender and target of the ping are on the same network.

It's almost as if the network card is telling us that it can see everyone, but it doesn't want to talk to anyone.

Any ideas? I'm guessing that I missed a step, but I went over the ndiswrapper installation instructions a couple of times, and I got everything there.

Thanks in advance!
__________________
 
Old 02-04-2006, 12:59 PM   #2
justanothersteve
Member
 
Registered: Aug 2005
Location: Missouri, USA
Distribution: Gentoo
Posts: 161

Rep: Reputation: 30
If your IP is 192.168.0.44, try setting your netmask to 255.255.0.0. Or to keep your netmask 255.255.255.0, set your static IP to something along the lines of 192.168.1.44.

Also, post the output of route so we can make sure the routing tables are correct.
 
Old 02-04-2006, 04:03 PM   #3
maddogdelta
Member
 
Registered: Nov 2003
Location: tonawanda, NY
Posts: 32

Original Poster
Rep: Reputation: 15
The following is what i get when I am plugged into my router/wap/dhcp server.
I thought that might be the issue, so I plugged into my laptop into the dhcp/wap/router and the wired connection works. here are some of the numbers.
(and since I'm online with this now, i'm guessing that the ip/mask isn't the issue here


[root@localhost ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
[root@localhost ~]# cat /etc/resolv.conf

nameserver 192.168.0.1


[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0F:B0:BDB:2C
inet addr:192.168.0.102 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20f:b0ff:febd:db2c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:874 errors:0 dropped:0 overruns:0 frame:0
TX packets:676 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:722583 (705.6 KiB) TX bytes:124104 (121.1 KiB)
Interrupt:10 Base address:0xa000

lo Link encap:Local Loopback
ess:0xa000

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:1353 errors:0 dropped:0 overruns:0 frame:0
TX packets:1353 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1806243 (1.7 MiB) TX bytes:1806243 (1.7 MiB)

wlan0 Link encap:Ethernet HWaddr 00:14:A5:2D:33:1A
inet6 addr: fe80::214:a5ff:fe2d:331a/64 Scope:Link
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)
Interrupt:10 Memory:c0200000-c0202000


Notice the WLAN0 seems to be doing everything right, except getting an ip address. I 'm still baffled!
 
Old 02-04-2006, 04:53 PM   #4
justanothersteve
Member
 
Registered: Aug 2005
Location: Missouri, USA
Distribution: Gentoo
Posts: 161

Rep: Reputation: 30
One problem is your gateway is set to be routed through your eth0. On my laptop, I have eth0 down (since I use my wireless)

route del default gw 192.168.0.1 dev eth0
route add default gw 192.168.0.1 dev wlan0

ifconfig eth0 down
 
Old 02-04-2006, 06:47 PM   #5
maddogdelta
Member
 
Registered: Nov 2003
Location: tonawanda, NY
Posts: 32

Original Poster
Rep: Reputation: 15
Well, I finally got it.
chalk it up to a) being lazy, and b) forgetting the difference between AND and OR

Lazy part... I tried using the graphical configuration, and it couldn't get a hold of the network. However, I never put in the essid in the graphical configuration. (i think that's why system-config-network couldn't start the network)

the reading part. The ndiswrapper docs say
ifconfig wlan0 up
OR
dhclient wlan0

apparantly the dhclient will try to get an address but it wants to turn on the wlan card itself. when it was up, it wouldn't get an address. when i returned wlan0 to down, then did dhclient, it works.

so boys and girls, do as i say, not as i do. not only should you rtfm, but do what it says! [tries to bury head in sand due to embarassment....]
 
Old 02-04-2006, 07:55 PM   #6
justanothersteve
Member
 
Registered: Aug 2005
Location: Missouri, USA
Distribution: Gentoo
Posts: 161

Rep: Reputation: 30
We all have our embarassing moments, no shame in that. You just learn from them. You now know to thoroughly read just like I have learned that when you ssh into two machines with multiple windows for each machine...pay attention to which one you send a shutdown command to (especially if one of those machines are two hours into a kde compile)
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Broadcom 440x Driver pc1962 Linux - Hardware 3 11-25-2005 08:29 PM
Help installing (broadcom) bcm5700 for RedHat AS 3 shagdog1976 Linux - Newbie 4 03-31-2005 09:24 AM
Problems installing Broadcom Driver on Redhat 9 kalana Linux - Hardware 15 10-06-2004 11:14 PM
Installing Broadcom 440x driver midk Red Hat 2 06-26-2004 03:04 PM
Installing (broadcom) driver RobertZegwaard Linux - Hardware 2 05-16-2003 04:51 AM


All times are GMT -5. The time now is 09:40 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration