Project

General

Profile

Bug #2412 » wlan0_dhclient.log

nonsolosoft, 08/27/2012 01:09 AM

 
> date
Mon Aug 27 09:42:46 CEST 2012
> su
Password:
lap# grep -i Ath /var/run/dmesg.boot
npx0: <math processor> on motherboard
ath0: <Atheros 2413> mem 0xb8000000-0xb800ffff irq 22 at device 2.0 on pci6
ath0: AR2413 mac 7.8 RF2413 phy 4.5
lap# ifconfig
msk0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
ether 00:0f:b0:85:35:72
media: Ethernet autoselect (none)
status: no carrier
ath0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 2290
ether 00:11:f5:64:16:62
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
fwe0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
ether 02:02:3f:40:37:67
ch 1 dma -1
faith0: flags=8002<BROADCAST,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=3<RXCSUM,TXCSUM>
inet 127.0.0.1 netmask 0xffffff00
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet 127.0.0.10 netmask 0xffffffff
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
lap# ifconfig wlan0 create wlandev ath0
lap# ifconfig wlan0 down
lap# ifconfig wlan0 up
lap# ifconfig wlan0
wlan0: flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::211:f5ff:fe64:1662%wlan0 prefixlen 64 scopeid 0x8
ether 00:11:f5:64:16:62
media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
status: no carrier
ssid "" channel 3 (2422 MHz 11g)
regdomain 100 indoor ecm authmode OPEN privacy OFF txpower 18.5
bmiss 7 scanvalid 60 protmode CTS wme burst bintval 0
lap# wpa_supplicant -c /etc/wpa_supplicant.conf -i wlan0 &
[1] 1211
lap# Trying to associate with f8:d1:11:75:7d:fc (SSID='NOVELLAWiFi_Spot2' freq=2462 MHz)
Associated with f8:d1:11:75:7d:fc
WPA: Key negotiation completed with f8:d1:11:75:7d:fc [PTK=CCMP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to f8:d1:11:75:7d:fc completed (auth) [id=11 id_str=]
ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::211:f5ff:fe64:1662%wlan0 prefixlen 64 scopeid 0x8
ether 00:11:f5:64:16:62
media: IEEE 802.11 Wireless Ethernet DS/1Mbps mode 11g
status: associated
ssid NOVELLAWiFi_Spot2 channel 11 (2462 MHz 11g) bssid f8:d1:11:75:7d:fc
regdomain 100 indoor ecm authmode WPA privacy ON deftxkey UNDEF
TKIP 2:128-bit txpower 17.5 bmiss 7 scanvalid 450 protmode CTS wme
burst roaming MANUAL
lap# dhclient -d wlan0
got link
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
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.
C-c C-c
lap# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::211:f5ff:fe64:1662%wlan0 prefixlen 64 scopeid 0x8
ether 00:11:f5:64:16:62
media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g
status: associated
ssid NOVELLAWiFi_Spot2 channel 11 (2462 MHz 11g) bssid f8:d1:11:75:7d:fc
regdomain 100 indoor ecm authmode WPA privacy ON deftxkey UNDEF
TKIP 2:128-bit txpower 17.5 bmiss 7 scanvalid 450 protmode CTS wme
burst roaming MANUAL
lap#

I know that the wifi router is a TP-Link and that it has address 192.168.1.1

lap# ps auxw | grep dhclient
lap# ifconfig wlan0 192.168.1.109 netmask 255.255.255.0
lap# ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes
C-c C-c
--- 192.168.1.1 ping statistics ---
24 packets transmitted, 0 packets received, 100.0% packet loss



So I've removed the NOVELLAWiFi_Spot2 from wpan_supplicant.conf and I've connected using my
mifii:



lap# wpa_supplicant -c /etc/wpa_supplicant.conf -i wlan0 &
[1] 1307
lap# Trying to associate with 04:46:65:1f:80:7f (SSID='VodafoneMobileHotspot_ 807F' freq=2417 MHz)
Associated with 04:46:65:1f:80:7f
CTRL-EVENT-CONNECTED - Connection to 04:46:65:1f:80:7f completed (auth) [id=9 id_str=]

lap# dhclient wlan0
got link
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPOFFER from 192.168.1.1
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.2 -- renewal in 43200 seconds.
lap# ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::211:f5ff:fe64:1662%wlan0 prefixlen 64 scopeid 0x8
inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255
ether 00:11:f5:64:16:62
media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g
status: associated
ssid "VodafoneMobileHotspot_ 807F" channel 2 (2417 MHz 11g) bssid 04:46:65:1f:80:7f
regdomain 100 indoor ecm authmode OPEN privacy ON deftxkey 1
wepkey 1:104-bit wepkey 2:104-bit txpower 18.5 bmiss 7 scanvalid 450
protmode CTS wme burst roaming MANUAL

(1-1/2)