You are not logged in.

#1 2011-09-12 08:03:19

bzhb
Member
Registered: 2010-11-17
Posts: 34

[solved]Can't get IP address with DHCP over wifi

I try to connect my laptop to a network via wifi (WPA). I'm connected and the router also says that there is a computer connected to wifi. But then DHCP time out. The ethernet connection is working fine and I have no problem to get an IP address with it. I have no idea what is wrong...

# ifconfig                                                                                                                                 [1]
eth0      Link encap:Ethernet  HWaddr 00:0A:E4:D9:E1:9E  
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20a:e4ff:fed9:e19e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12984 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11611 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:8858571 (8.4 Mb)  TX bytes:1271863 (1.2 Mb)
          Interrupt:20 Base address:0xe400 

eth1      Link encap:Ethernet  HWaddr 00:15:00:2D:1A:AA  
          inet6 addr: fe80::215:ff:fe2d:1aaa/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:40 dropped:40 overruns:0 frame:0
          TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:11417 (11.1 Kb)
          Interrupt:20 Base address:0xe000 Memory:b0106000-b0106fff 
#iwconfig 
eth0      no wireless extensions.

eth1      IEEE 802.11bg  ESSID:"lua"  
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:1D:6A:62:7C:B8   
          Bit Rate:54 Mb/s   Tx-Power=20 dBm   Sensitivity=8/0  
          Retry limit:7   RTS thr:off   Fragment thr:off
          Encryption key:XXXXXXXXXXXXXXXXXXXXXXXXXXX   Security mode:open
          Power Management:off
          Link Quality=98/100  Signal level=-26 dBm  Noise level=-85 dBm
          Rx invalid nwid:0  Rx invalid crypt:40  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
#dhcpcd eth1 --debug                                                                                                                      [0]
dhcpcd[3570]: version 5.2.12 starting
dhcpcd[3570]: eth1: using hwaddr 00:15:00:2d:1a:aa
dhcpcd[3570]: eth1: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason PREINIT
dhcpcd[3570]: eth1: executing `/usr/lib/dhcpcd/dhcpcd-run-hooks', reason CARRIER
dhcpcd[3570]: eth1: reading lease `/var/lib/dhcpcd/dhcpcd-eth1.lease'
dhcpcd[3570]: eth1: discarding expired lease
dhcpcd[3570]: eth1: broadcasting for a lease
dhcpcd[3570]: eth1: sending DISCOVER (xid 0xe8ad5914), next in 3.31 seconds
dhcpcd[3570]: eth1: sending DISCOVER (xid 0xe8ad5914), next in 7.57 seconds
dhcpcd[3570]: eth1: sending DISCOVER (xid 0xe8ad5914), next in 16.46 seconds
dhcpcd[3570]: eth1: sending DISCOVER (xid 0xe8ad5914), next in 32.92 seconds
dhcpcd[3570]: timed out

Last edited by bzhb (2011-09-12 11:30:30)

Offline

#2 2011-09-12 11:30:10

bzhb
Member
Registered: 2010-11-17
Posts: 34

Re: [solved]Can't get IP address with DHCP over wifi

Ok it was in fact my fault. I did configure iwconfig like with a WEP connection, and it was WPA... Strangely it was not rejected, so I assumed it was connected...

Offline

Board footer

Powered by FluxBB