LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   Unable to acquire an IP Address (https://www.linuxquestions.org/questions/linux-wireless-networking-41/unable-to-acquire-an-ip-address-374450/)

ras777 10-18-2005 06:38 PM

Unable to acquire an IP Address
 
root@negus777:~# ifconfig

eth0 Link encap:Ethernet HWaddr 00:0F:1F:27:A9:E1
inet addr:192.168.1.102 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20f:1fff:fe27:a9e1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1
RX packets:2011 errors:0 dropped:0 overruns:0 frame:0
TX packets:1365 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1086835 (1.0 MiB) TX bytes:225163 (219.8 KiB)
Interrupt:17

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

wlan0 Link encap:Ethernet HWaddr 00:0B:7D:08:D9:4D
inet6 addr: fe80::20b:7dff:fe08:d94d/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)
Memory:faffc000-faffdfff

root@negus777:~# ifup wlan0

There is already a pid file /var/run/dhclient.wlan0.pid with pid 0
Internet Systems Consortium DHCP Client V3.0.2
Copyright 2004 Internet Systems Consortium.
All rights reserved.


sit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/wlan0/00:0b:7d:08:d9:4d
Sending on LPF/wlan0/00:0b:7d:08:d9:4d
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 16
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

root@negus777:~# ifup eth0

ifup: interface eth0 already configured

root@negus777:~# ifdown eth0

There is already a pid file /var/run/dhclient.eth0.pid with pid 9660
killed old client process, removed PID file
Internet Systems Consortium DHCP Client V3.0.2
Copyright 2004 Internet Systems Consortium.
All rights reserved.


sit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/eth0/00:0f:1f:27:a9:e1
Sending on LPF/eth0/00:0f:1f:27:a9:e1
Sending on Socket/fallback
DHCPRELEASE on eth0 to 192.168.1.1 port 67

root@negus777:~# ifup eth0

There is already a pid file /var/run/dhclient.eth0.pid with pid 0
Internet Systems Consortium DHCP Client V3.0.2
Copyright 2004 Internet Systems Consortium.
All rights reserved.


sit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/eth0/00:0f:1f:27:a9:e1
Sending on LPF/eth0/00:0f:1f:27:a9:e1
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPOFFER from 192.168.1.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.102 -- renewal in 123550 seconds.

Does anyone have a solution?

paul_e_t 10-18-2005 06:51 PM

Please tell us about some of your system basics:
PC, MAC, or ?
Dual booting
Is this an initial install
What OS's and edition.
Know what ethernet card?
Have you tried a modem?
Are you in the USA ?

ras777 10-18-2005 07:10 PM

Dual boot with Windows XP Home Edition
Using GRUB Loader
Using Ubuntu 5.10, successfully used wireless with Warty Warthog version, no luck with Hoary Hedgehog.
This version is a fresh install on Dell Inspiron 5160

root@negus777:~# lspci

0000:00:00.0 Host bridge: Intel Corp. 82852/855GM Host Bridge (rev 02)
0000:00:00.1 System peripheral: Intel Corp. 855GM/GME GMCH Memory I/O Control Registers (rev 02)
0000:00:00.3 System peripheral: Intel Corp. 855GM/GME GMCH Configuration Process Registers (rev 02)
0000:00:01.0 PCI bridge: Intel Corp. 855GME GMCH Host-to-AGP Bridge (Virtual PCI-to-PCI) (rev 02)
0000:00:1d.0 USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 01)
0000:00:1d.1 USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 01)
0000:00:1d.2 USB Controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 01)
0000:00:1d.7 USB Controller: Intel Corp. 82801DB/DBM (ICH4/ICH4-M) USB 2.0 EHCI Controller (rev 01)
0000:00:1e.0 PCI bridge: Intel Corp. 82801 PCI Bridge (rev 81)
0000:00:1f.0 ISA bridge: Intel Corp. 82801DBM LPC Interface Controller (rev 01)
0000:00:1f.1 IDE interface: Intel Corp. 82801DBM (ICH4) Ultra ATA Storage Controller (rev 01)
0000:00:1f.5 Multimedia audio controller: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01)
0000:00:1f.6 Modem: Intel Corp. 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 01)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV34M [GeForce FX Go 5200] (rev a1)
0000:02:01.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)
0000:02:02.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)
0000:02:04.0 CardBus bridge: Texas Instruments PCI4510 PC card Cardbus Controller (rev 02)
0000:02:04.1 FireWire (IEEE 1394): Texas Instruments PCI4510 IEEE-1394 Controller


I hope this makes it a bit clearer...any help is appreciated!!!

paul_e_t 10-18-2005 07:34 PM

I found several posts here on LQ that may point you to a general problem with the 5160. Search here for "Mandrake 10.1 official and dell inspiron 5160" and see if you can gleam some info from those quoted URLs in the second post.

I've historically stayed away from note books and linux. Seems that they (note books) are different creachers for sure.

Hope this helps.
Paul

ras777 10-18-2005 07:45 PM

Unfortunately, that suggestion does not help...Thanks Paul_E_T
I am still open to assistance from anyone else on this matter...

fhleung 10-27-2005 05:50 PM

Could you elaborate a bit more your questions please?

hermitjared 11-24-2005 06:23 PM

I am having the same problem. My wireless was workingfor about 2 weeks on multiple networks, and one day it decided to stop working.

When I put the card in, the power light turns on for a few seconds, but then both the power light and activity lights go dim.

Dell Inspiron 1200 with a Dell Wireless 1350 card
Ubuntu 5.10 "Breezy Badger"

jared@ubuntu:~$ 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:3329 errors:0 dropped:0 overruns:0 frame:0
TX packets:3329 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:302706 (295.6 KiB) TX bytes:302706 (295.6 KiB)

wlan0 Link encap:Ethernet HWaddr 00:14:A5:3A:7C:76
inet6 addr: fe80::214:a5ff:fe3a:7c76/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)
Memory:10800000-10801fff

jared@ubuntu:~$ sudo ifup wlan0
Error for wireless request "Set Encode" (8B2A) :
SET failed on device wlan0 ; Invalid argument.
There is already a pid file /var/run/dhclient.wlan0.pid with pid 0
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

sit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/wlan0/00:14:a5:3a:7c:76
Sending on LPF/wlan0/00:14:a5:3a:7c:76
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 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

jared@ubuntu:~$ sudo ifup eth0
There is already a pid file /var/run/dhclient.eth0.pid with pid 0
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

sit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/eth0/00:14:22:bf:cb:5d
Sending on LPF/eth0/00:14:22:bf:cb:5d
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPOFFER from 192.168.0.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
bound to 192.168.0.102 -- renewal in 293592 seconds.

jared@ubuntu:~$ sudo ifdown eth0
There is already a pid file /var/run/dhclient.eth0.pid with pid 8314
killed old client process, removed PID file
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

sit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/eth0/00:14:22:bf:cb:5d
Sending on LPF/eth0/00:14:22:bf:cb:5d
Sending on Socket/fallback
DHCPRELEASE on eth0 to 192.168.0.1 port 67

jared@ubuntu:~$ sudo ifup eth0
There is already a pid file /var/run/dhclient.eth0.pid with pid 0
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

sit0: unknown hardware address type 776
sit0: unknown hardware address type 776
Listening on LPF/eth0/00:14:22:bf:cb:5d
Sending on LPF/eth0/00:14:22:bf:cb:5d
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPOFFER from 192.168.0.1
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.0.1
bound to 192.168.0.102 -- renewal in 257313 seconds.

What is really weird is that I can still see my network even though the lights are dim like the card is not active:

jared@ubuntu:~$ iwlist wlan0 scan
wlan0 Scan completed :
Cell 01 - Address: 00:0D:88:C2:E4:69
ESSID:"Seneca"
Protocol:IEEE 802.11g
Mode:Managed
Frequency:2.437 GHz (Channel 6)
Quality:0/100 Signal level:-31 dBm Noise level:-256 dBm
Encryption key:on
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
Bit Rate:48 Mb/s
Bit Rate:54 Mb/s
Extra:bcn_int=100
Extra:atim=0

My driver is correctly loaded with ndiswrapper:

jared@ubuntu:~$ ndiswrapper -l
Installed ndis drivers:
bcmwl5 driver present, hardware present


If eth0 is disabled and wlan0 is enabled, I am still not getting a connection.

I recently upgraded the linux kernel, could this be the problem? I do not know how to recompile ndiswrapper.

bulliver 11-24-2005 07:53 PM

Delete /var/run/dhclient.wlan0.pid and try again...

hermitjared 11-24-2005 08:45 PM

I deleted it, but what would you suggest doing right after deleting it? It doesn't seem to work if I do ifup wlan0.

bulliver 11-25-2005 01:30 AM

Just rerun your wlan0 startup scripts...

Have you associated wlan0 with your essid?

hermitjared 11-25-2005 01:28 PM

You have to realize that I am a complete noob to linux and I pretty much have no idea what I am doing :D

How do I go about rerunning my wlan0 scripts and associating wlan0 with my essid?

Thanks a lot. Someday I will figure everything out...

bulliver 11-25-2005 05:39 PM

Quote:

You have to realize that I am a complete noob to linux and I pretty much have no idea what I am doing
Ok, that is fine. We all start somewhere.

I will give you a brief synopsis of the steps involved in getting a wireless connection working in linux, as well as commands needed to do this manually....

1. You must install the wireless card driver, and insert it into the running kernel:
Code:

# modprobe ndiswrapper
Following your post, it seems you have accomplished this step...

2. You must use the 'ifconfig' command to initialize the interface and make available to the kernel.
Code:

# ifconfig wlan0 up
3. You must use 'iwconfig' to set up the wireless interface, associate it with an essid, and enter your wep key.
Code:

# iwconfig wlan0 essid "Seneca"
# iwconfig wlan0 channel 6 # not strictly necessary, 6 is default
# iwconfig wlan0 key 0a12fc132 # if using hex wep key
# iwconfig wlan0 key s:secretwepkey # if using ascii wep key

Now based on your post, 'Seneca" is your essid. As I mention, '6' is the default channel, so it is not strictly necessary unless you change the channel of your wireless router. The last two lines are where you enter the wep key you set up on the wireless router. The first example is using hex key, and the second, ascii. You must only use 1 of these lines, depending on what type of wep key you use.

4. Use a dhcp client to poll the router for an ip address
Code:

# dhclient wlan0
Now you should be good to go. So I suggest you try the steps I've outlined here and try setting it up manually. Type 'ifconfig wlan0 down' to start from scratch, then:
Code:

# ifconfig wlan0 up
# iwconfig wlan0 essid "Seneca"
# iwconfig wlan0 key wepkey
# dhclient wlan0

Try to ping a host on the internet now...

Now generally, your distro will wrap all these commands in a script for you, so you don't have to type them manually. Are you using Ubuntu? I don't use Ubuntu myself, so I can't tell you exactly where the script is, or how it works. Some places to look: /etc/init.d/ or /etc/rc.d/ should hold the startup script. Look for something like "net.wireless" or similar. There may also be configuration files in /etc/conf.d that you need to edit.

Someone using wireless on Ubuntu could help you a lot more sorting out your scripts. Or else, perhaps there is a page on wireless in the Ubuntu wiki?

I hope this helps, and good luck ;)

vu_t_nguyen 12-01-2005 09:28 AM

Hello,

Like hermitjared, I also have a Dell Inspiron 1200 and a Dell Wireless 1350 card running kubuntu 5.10. I tried several drivers from Dell, but they were either bcmwl5 or bcmwl5a.

I did everything suggested here by bulliver as well as at http://ndiswrapper.sourceforge.net/m.../Installation.

The EEISD and WEP key are correct in /etc/network/interfaces. Everything I've tried seems fine (i.e. no obvious errors) such as iwlist, ifconfig, etc..

kwifimanager shows a connection, but NO IP address.

When the laptop boots up, it stays at "Network Configuration" for a while (maybe a minute or 2) before proceeding. The power light on the wireless card is strong. The link light flickers now and then. I can even ping the gateway at 192.168.1.1 .

It looks to me like everything is functioning, except for getting a dynamic IP address from the router.

Please tell me what else I can try and what log files I can look at to detect whatever I am missing.

Thank you very much
VN

vu_t_nguyen 12-03-2005 11:07 AM

Success finally.

Again, my system is a Dell Inspiron 1200 with a Dell 1350 Wireless PC card (not mini-PC) running Kubuntu 5.10.

I downloaded the card driver from http://ftp.us.dell.com/network/R94827.EXE. Either bcmwl5.inf or bcmwl5a.inf works for me.

I downloaded and COMPILED the latest ndiswrapper (ver 1.6) following the instructions from http://wiki.kubuntu.org/SetupNdiswrapperHowto.

The instructions to install the driver and config the wireless card are from http://ndiswrapper.sourceforge.net/m...p/Installation

I can now sleep soundly
VN


All times are GMT -5. The time now is 12:09 PM.