Project

General

Profile

wlan0_dhclient.log

nonsolosoft, 08/27/2012 01:09 AM

Download (4.71 KB)

 
1
> date
2
Mon Aug 27 09:42:46 CEST 2012
3
> su
4
Password:
5
lap# grep -i Ath /var/run/dmesg.boot
6
npx0: <math processor> on motherboard
7
ath0: <Atheros 2413> mem 0xb8000000-0xb800ffff irq 22 at device 2.0 on pci6
8
ath0: AR2413 mac 7.8 RF2413 phy 4.5
9
lap# ifconfig
10
msk0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
11
	ether 00:0f:b0:85:35:72
12
	media: Ethernet autoselect (none)
13
	status: no carrier
14
ath0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 2290
15
	ether 00:11:f5:64:16:62
16
	media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
17
	status: no carrier
18
fwe0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
19
	ether 02:02:3f:40:37:67
20
	ch 1 dma -1
21
faith0: flags=8002<BROADCAST,MULTICAST> mtu 1500
22
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
23
	options=3<RXCSUM,TXCSUM>
24
	inet 127.0.0.1 netmask 0xffffff00 
25
	inet6 ::1 prefixlen 128 
26
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 
27
	inet 127.0.0.10 netmask 0xffffffff 
28
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
29
sl0: flags=c010<POINTOPOINT,LINK2,MULTICAST> mtu 552
30
lap# ifconfig wlan0 create wlandev ath0
31
lap# ifconfig wlan0 down
32
lap# ifconfig wlan0 up
33
lap# ifconfig wlan0
34
wlan0: flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> mtu 1500
35
	inet6 fe80::211:f5ff:fe64:1662%wlan0 prefixlen 64 scopeid 0x8 
36
	ether 00:11:f5:64:16:62
37
	media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
38
	status: no carrier
39
	ssid "" channel 3 (2422 MHz 11g)
40
	regdomain 100 indoor ecm authmode OPEN privacy OFF txpower 18.5
41
	bmiss 7 scanvalid 60 protmode CTS wme burst bintval 0
42
lap# wpa_supplicant -c /etc/wpa_supplicant.conf -i wlan0 &
43
[1] 1211
44
lap# Trying to associate with f8:d1:11:75:7d:fc (SSID='NOVELLAWiFi_Spot2' freq=2462 MHz)
45
Associated with f8:d1:11:75:7d:fc
46
WPA: Key negotiation completed with f8:d1:11:75:7d:fc [PTK=CCMP GTK=TKIP]
47
CTRL-EVENT-CONNECTED - Connection to f8:d1:11:75:7d:fc completed (auth) [id=11 id_str=]
48
ifconfig wlan0
49
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
50
	inet6 fe80::211:f5ff:fe64:1662%wlan0 prefixlen 64 scopeid 0x8 
51
	ether 00:11:f5:64:16:62
52
	media: IEEE 802.11 Wireless Ethernet DS/1Mbps mode 11g
53
	status: associated
54
	ssid NOVELLAWiFi_Spot2 channel 11 (2462 MHz 11g) bssid f8:d1:11:75:7d:fc
55
	regdomain 100 indoor ecm authmode WPA privacy ON deftxkey UNDEF
56
	TKIP 2:128-bit txpower 17.5 bmiss 7 scanvalid 450 protmode CTS wme
57
	burst roaming MANUAL
58
lap# dhclient -d wlan0
59
 got link
60
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
61
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
62
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
63
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
64
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 16
65
No DHCPOFFERS received.
66
No working leases in persistent database - sleeping.
67
  C-c C-c
68
lap# ifconfig wlan0
69
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
70
	inet6 fe80::211:f5ff:fe64:1662%wlan0 prefixlen 64 scopeid 0x8 
71
	ether 00:11:f5:64:16:62
72
	media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g
73
	status: associated
74
	ssid NOVELLAWiFi_Spot2 channel 11 (2462 MHz 11g) bssid f8:d1:11:75:7d:fc
75
	regdomain 100 indoor ecm authmode WPA privacy ON deftxkey UNDEF
76
	TKIP 2:128-bit txpower 17.5 bmiss 7 scanvalid 450 protmode CTS wme
77
	burst roaming MANUAL
78
lap# 
79

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

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

    
90

    
91

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

    
95

    
96

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

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