我无法将诺基亚手机连接到我的家庭 WiFi 网络。
wifi 网络由运行 Debian Testing 和 2.6.26-2-686 内核的机器中的无线网卡提供。汽车是工作在 ap 模式下的 D-Link DWL-G520,并启用了 WPA 加密。
无线网络由 hostapd 使用 madwifi 驱动程序提供。Windows 和 Mac 机器可以正常使用此 wifi 网络。
当我尝试让诺基亚手机连接到 wifi 网络时,我的 dnsmasq 日志中出现了这些行(为了方便起见,这里是 pastebin 链接 -http://pastebin.com/m466c8fd2):
Oct 27 13:25:21 red hostapd: ath0: STA 11:22:33:44:55:66 IEEE 802.11:
disassociated
Oct 27 13:25:21 red hostapd: ath0: STA 11:22:33:44:55:66 IEEE 802.11:
associated
Oct 27 13:25:21 red hostapd: ath0: STA 11:22:33:44:55:66 RADIUS:
starting accounting session 4AE664FA-00000036
Oct 27 13:25:21 red hostapd: ath0: STA 11:22:33:44:55:66 WPA: pairwise
key handshake completed (WPA)
Oct 27 13:25:21 red hostapd: ath0: STA 11:22:33:44:55:66 WPA: group key
handshake completed (WPA)
Oct 27 13:25:21 red dnsmasq-dhcp[11451]: 3875439214 Available DHCP
range: 192.168.5.150 -- 192.168.5.199
Oct 27 13:25:21 red dnsmasq-dhcp[11451]: 3875439214 DHCPDISCOVER(ath0)
0.0.0.0 11:22:33:44:55:66
Oct 27 13:25:21 red dnsmasq-dhcp[11451]: 3875439214 DHCPOFFER(ath0)
192.168.5.21 11:22:33:44:55:66
Oct 27 13:25:21 red dnsmasq-dhcp[11451]: 3875439214 requested options:
12:hostname, 6:dns-server, 15:domain-name,
Oct 27 13:25:21 red dnsmasq-dhcp[11451]: 3875439214 requested options:
1:netmask, 3:router, 28:broadcast, 120:sip-server
Oct 27 13:25:21 red dnsmasq-dhcp[11451]: 3875439214 tags: known, ath0
Oct 27 13:25:21 red dnsmasq-dhcp[11451]: 3875439214 next server:
192.168.5.1
Oct 27 13:25:21 red dnsmasq-dhcp[11451]: 3875439214 sent size: 1
option: 53:message-type 02
Oct 27 13:25:21 red dnsmasq-dhcp[11451]: 3875439214 sent size: 4
option: 54:server-identifier 192.168.5.1
Oct 27 13:25:21 red dnsmasq-dhcp[11451]: 3875439214 sent size: 4
option: 51:lease-time 00:00:46:50
Oct 27 13:25:21 red dnsmasq-dhcp[11451]: 3875439214 sent size: 4
option: 58:T1 00:00:23:28
Oct 27 13:25:21 red dnsmasq-dhcp[11451]: 3875439214 sent size: 4
option: 59:T2 00:00:3d:86
Oct 27 13:25:21 red dnsmasq-dhcp[11451]: 3875439214 sent size: 4
option: 1:netmask 255.255.255.0
Oct 27 13:25:21 red dnsmasq-dhcp[11451]: 3875439214 sent size: 4
option: 28:broadcast 192.168.5.255
Oct 27 13:25:21 red dnsmasq-dhcp[11451]: 3875439214 sent size: 4
option: 3:router 192.168.5.1
Oct 27 13:25:21 red dnsmasq-dhcp[11451]: 3875439214 sent size: 4
option: 6:dns-server 192.168.5.1
Oct 27 13:25:21 red dnsmasq-dhcp[11451]: 3875439214 sent size: 8
option: 15:domain-name home.pvt
Oct 27 13:25:21 red dnsmasq-dhcp[11451]: 3875439214 sent size: 3
option: 12:hostname NokiaCellPhone
有人知道可能存在这个问题吗?
如果我关闭 dnsmasq dhcp 查询日志记录,即如果我降低日志的详细程度,我所看到的只是日志中重复出现的两行 DHCPDISCOVER(ath0) 和 DHCPOFFER(ath0),而手机并未接受。
看起来好像电话没有接受 dhcp 提议。
但是,如果我在配置中为手机指定静态 IP 地址,手机便可以在 wifi 网络上正常工作。因此,问题似乎与 dhcp 有关。
提示?建议?
已安装的内容:
$> dpkg -l dnsmasq hostap* | grep ^i
ii dnsmasq 2.50-1 A small caching DNS proxy and DHCP/TFTP server
ii dnsmasq-base 2.50-1 A small caching DNS proxy and DHCP/TFTP server
ii hostapd 1:0.6.9-3 user space IEEE 802.11 AP and IEEE 802.1X/WPA/
谢谢。PS:以下是 DHCP tcp 转储,更多信息(已更改 mac 地址):
$> sudo dhcpdump -i ath0 -h ^11:22:33:44:55:66
TIME: 2009-10-30 12:15:32.916
IP: 0.0.0.0 (1:22:33:44:55:66) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
OP: 1 (BOOTPREQUEST)
HTYPE: 1 (Ethernet)
HLEN: 6
HOPS: 0
XID: c3f93d53
SECS: 0
FLAGS: 7f80
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 11:22:33:44:55:66:00:00:00:00:00:00:00:00:00:00
SNAME: .
FNAME: .
OPTION: 53 ( 1) DHCP message type 1 (DHCPDISCOVER)
OPTION: 50 ( 4) Request IP address 0.0.0.0
OPTION: 61 ( 7) Client-identifier 01:11:22:33:44:55:66
OPTION: 55 ( 7) Parameter Request List 12 (Host name)
6 (DNS server)
15 (Domainname)
1 (Subnet mask)
3 (Routers)
28 (Broadcast address)
120 (SIP Servers DHCP Option)
OPTION: 57 ( 2) Maximum DHCP message size 576
TIME: 2009-10-30 12:15:32.918
IP: 0.0.0.0 (1:22:33:44:55:66) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
OP: 1 (BOOTPREQUEST)
HTYPE: 1 (Ethernet)
HLEN: 6
HOPS: 0
XID: c3f93d53
SECS: 0
FLAGS: 7f80
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 11:22:33:44:55:66:00:00:00:00:00:00:00:00:00:00
SNAME: .
FNAME: .
OPTION: 53 ( 1) DHCP message type 1 (DHCPDISCOVER)
OPTION: 50 ( 4) Request IP address 0.0.0.0
OPTION: 61 ( 7) Client-identifier 01:11:22:33:44:55:66
OPTION: 55 ( 7) Parameter Request List 12 (Host name)
6 (DNS server)
15 (Domainname)
1 (Subnet mask)
3 (Routers)
28 (Broadcast address)
120 (SIP Servers DHCP Option)
OPTION: 57 ( 2) Maximum DHCP message size 576
TIME: 2009-10-30 12:15:32.918
IP: 192.168.5.1 (a:bb:cc:dd:ee:ff) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
OP: 2 (BOOTPREPLY)
HTYPE: 1 (Ethernet)
HLEN: 6
HOPS: 0
XID: c3f93d53
SECS: 0
FLAGS: 7f80
CIADDR: 0.0.0.0
YIADDR: 192.168.5.21
SIADDR: 192.168.5.1
GIADDR: 0.0.0.0
CHADDR: 11:22:33:44:55:66:00:00:00:00:00:00:00:00:00:00
SNAME: .
FNAME: .
OPTION: 53 ( 1) DHCP message type 2 (DHCPOFFER)
OPTION: 54 ( 4) Server identifier 192.168.5.1
OPTION: 51 ( 4) IP address leasetime 18000 (5h)
OPTION: 58 ( 4) T1 9000 (2h30m)
OPTION: 59 ( 4) T2 15750 (4h22m30s)
OPTION: 1 ( 4) Subnet mask 255.255.255.0
OPTION: 28 ( 4) Broadcast address 192.168.5.255
OPTION: 3 ( 4) Routers 192.168.5.1
OPTION: 6 ( 4) DNS server 192.168.5.1
OPTION: 15 ( 8) Domainname home.pvt
OPTION: 12 ( 3) Host name Nokia_E63
TIME: 2009-10-30 12:15:34.922
IP: 0.0.0.0 (1:22:33:44:55:66) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
OP: 1 (BOOTPREQUEST)
HTYPE: 1 (Ethernet)
HLEN: 6
HOPS: 0
XID: c3f93d53
SECS: 2
FLAGS: 7f80
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 11:22:33:44:55:66:00:00:00:00:00:00:00:00:00:00
SNAME: .
FNAME: .
OPTION: 53 ( 1) DHCP message type 1 (DHCPDISCOVER)
OPTION: 50 ( 4) Request IP address 0.0.0.0
OPTION: 61 ( 7) Client-identifier 01:11:22:33:44:55:66
OPTION: 55 ( 7) Parameter Request List 12 (Host name)
6 (DNS server)
15 (Domainname)
1 (Subnet mask)
3 (Routers)
28 (Broadcast address)
120 (SIP Servers DHCP Option)
OPTION: 57 ( 2) Maximum DHCP message size 576
TIME: 2009-10-30 12:15:34.922
IP: 0.0.0.0 (1:22:33:44:55:66) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
OP: 1 (BOOTPREQUEST)
HTYPE: 1 (Ethernet)
HLEN: 6
HOPS: 0
XID: c3f93d53
SECS: 2
FLAGS: 7f80
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 11:22:33:44:55:66:00:00:00:00:00:00:00:00:00:00
SNAME: .
FNAME: .
OPTION: 53 ( 1) DHCP message type 1 (DHCPDISCOVER)
OPTION: 50 ( 4) Request IP address 0.0.0.0
OPTION: 61 ( 7) Client-identifier 01:11:22:33:44:55:66
OPTION: 55 ( 7) Parameter Request List 12 (Host name)
6 (DNS server)
15 (Domainname)
1 (Subnet mask)
3 (Routers)
28 (Broadcast address)
120 (SIP Servers DHCP Option)
OPTION: 57 ( 2) Maximum DHCP message size 576
TIME: 2009-10-30 12:15:34.923
IP: 192.168.5.1 (a:bb:cc:dd:ee:ff) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
OP: 2 (BOOTPREPLY)
HTYPE: 1 (Ethernet)
HLEN: 6
HOPS: 0
XID: c3f93d53
SECS: 2
FLAGS: 7f80
CIADDR: 0.0.0.0
YIADDR: 192.168.5.21
SIADDR: 192.168.5.1
GIADDR: 0.0.0.0
CHADDR: 11:22:33:44:55:66:00:00:00:00:00:00:00:00:00:00
SNAME: .
FNAME: .
OPTION: 53 ( 1) DHCP message type 2 (DHCPOFFER)
OPTION: 54 ( 4) Server identifier 192.168.5.1
OPTION: 51 ( 4) IP address leasetime 18000 (5h)
OPTION: 58 ( 4) T1 9000 (2h30m)
OPTION: 59 ( 4) T2 15750 (4h22m30s)
OPTION: 1 ( 4) Subnet mask 255.255.255.0
OPTION: 28 ( 4) Broadcast address 192.168.5.255
OPTION: 3 ( 4) Routers 192.168.5.1
OPTION: 6 ( 4) DNS server 192.168.5.1
OPTION: 15 ( 8) Domainname home.pvt
OPTION: 12 ( 3) Host name Nokia_E63
TIME: 2009-10-30 12:15:38.919
IP: 0.0.0.0 (1:22:33:44:55:66) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
OP: 1 (BOOTPREQUEST)
HTYPE: 1 (Ethernet)
HLEN: 6
HOPS: 0
XID: c3f93d53
SECS: 6
FLAGS: 7f80
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 11:22:33:44:55:66:00:00:00:00:00:00:00:00:00:00
SNAME: .
FNAME: .
OPTION: 53 ( 1) DHCP message type 1 (DHCPDISCOVER)
OPTION: 50 ( 4) Request IP address 0.0.0.0
OPTION: 61 ( 7) Client-identifier 01:11:22:33:44:55:66
OPTION: 55 ( 7) Parameter Request List 12 (Host name)
6 (DNS server)
15 (Domainname)
1 (Subnet mask)
3 (Routers)
28 (Broadcast address)
120 (SIP Servers DHCP Option)
OPTION: 57 ( 2) Maximum DHCP message size 576
TIME: 2009-10-30 12:15:38.920
IP: 0.0.0.0 (1:22:33:44:55:66) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
OP: 1 (BOOTPREQUEST)
HTYPE: 1 (Ethernet)
HLEN: 6
HOPS: 0
XID: c3f93d53
SECS: 6
FLAGS: 7f80
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 11:22:33:44:55:66:00:00:00:00:00:00:00:00:00:00
SNAME: .
FNAME: .
OPTION: 53 ( 1) DHCP message type 1 (DHCPDISCOVER)
OPTION: 50 ( 4) Request IP address 0.0.0.0
OPTION: 61 ( 7) Client-identifier 01:11:22:33:44:55:66
OPTION: 55 ( 7) Parameter Request List 12 (Host name)
6 (DNS server)
15 (Domainname)
1 (Subnet mask)
3 (Routers)
28 (Broadcast address)
120 (SIP Servers DHCP Option)
OPTION: 57 ( 2) Maximum DHCP message size 576
TIME: 2009-10-30 12:15:38.921
IP: 192.168.5.1 (a:bb:cc:dd:ee:ff) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
OP: 2 (BOOTPREPLY)
HTYPE: 1 (Ethernet)
HLEN: 6
HOPS: 0
XID: c3f93d53
SECS: 6
FLAGS: 7f80
CIADDR: 0.0.0.0
YIADDR: 192.168.5.21
SIADDR: 192.168.5.1
GIADDR: 0.0.0.0
CHADDR: 11:22:33:44:55:66:00:00:00:00:00:00:00:00:00:00
SNAME: .
FNAME: .
OPTION: 53 ( 1) DHCP message type 2 (DHCPOFFER)
OPTION: 54 ( 4) Server identifier 192.168.5.1
OPTION: 51 ( 4) IP address leasetime 18000 (5h)
OPTION: 58 ( 4) T1 9000 (2h30m)
OPTION: 59 ( 4) T2 15750 (4h22m30s)
OPTION: 1 ( 4) Subnet mask 255.255.255.0
OPTION: 28 ( 4) Broadcast address 192.168.5.255
OPTION: 3 ( 4) Routers 192.168.5.1
OPTION: 6 ( 4) DNS server 192.168.5.1
OPTION: 15 ( 8) Domainname home.pvt
OPTION: 12 ( 3) Host name Nokia_E63
TIME: 2009-10-30 12:15:46.944
IP: 0.0.0.0 (1:22:33:44:55:66) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
OP: 1 (BOOTPREQUEST)
HTYPE: 1 (Ethernet)
HLEN: 6
HOPS: 0
XID: ccafe769
SECS: 14
FLAGS: 7f80
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 11:22:33:44:55:66:00:00:00:00:00:00:00:00:00:00
SNAME: .
FNAME: .
OPTION: 53 ( 1) DHCP message type 1 (DHCPDISCOVER)
OPTION: 50 ( 4) Request IP address 0.0.0.0
OPTION: 61 ( 7) Client-identifier 01:11:22:33:44:55:66
OPTION: 55 ( 7) Parameter Request List 12 (Host name)
6 (DNS server)
15 (Domainname)
1 (Subnet mask)
3 (Routers)
28 (Broadcast address)
120 (SIP Servers DHCP Option)
OPTION: 57 ( 2) Maximum DHCP message size 576
TIME: 2009-10-30 12:15:46.944
IP: 0.0.0.0 (1:22:33:44:55:66) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
OP: 1 (BOOTPREQUEST)
HTYPE: 1 (Ethernet)
HLEN: 6
HOPS: 0
XID: ccafe769
SECS: 14
FLAGS: 7f80
CIADDR: 0.0.0.0
YIADDR: 0.0.0.0
SIADDR: 0.0.0.0
GIADDR: 0.0.0.0
CHADDR: 11:22:33:44:55:66:00:00:00:00:00:00:00:00:00:00
SNAME: .
FNAME: .
OPTION: 53 ( 1) DHCP message type 1 (DHCPDISCOVER)
OPTION: 50 ( 4) Request IP address 0.0.0.0
OPTION: 61 ( 7) Client-identifier 01:11:22:33:44:55:66
OPTION: 55 ( 7) Parameter Request List 12 (Host name)
6 (DNS server)
15 (Domainname)
1 (Subnet mask)
3 (Routers)
28 (Broadcast address)
120 (SIP Servers DHCP Option)
OPTION: 57 ( 2) Maximum DHCP message size 576
TIME: 2009-10-30 12:15:46.945
IP: 192.168.5.1 (a:bb:cc:dd:ee:ff) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
OP: 2 (BOOTPREPLY)
HTYPE: 1 (Ethernet)
HLEN: 6
HOPS: 0
XID: ccafe769
SECS: 14
FLAGS: 7f80
CIADDR: 0.0.0.0
YIADDR: 192.168.5.21
SIADDR: 192.168.5.1
GIADDR: 0.0.0.0
CHADDR: 11:22:33:44:55:66:00:00:00:00:00:00:00:00:00:00
SNAME: .
FNAME: .
OPTION: 53 ( 1) DHCP message type 2 (DHCPOFFER)
OPTION: 54 ( 4) Server identifier 192.168.5.1
OPTION: 51 ( 4) IP address leasetime 18000 (5h)
OPTION: 58 ( 4) T1 9000 (2h30m)
OPTION: 59 ( 4) T2 15750 (4h22m30s)
OPTION: 1 ( 4) Subnet mask 255.255.255.0
OPTION: 28 ( 4) Broadcast address 192.168.5.255
OPTION: 3 ( 4) Routers 192.168.5.1
OPTION: 6 ( 4) DNS server 192.168.5.1
OPTION: 15 ( 8) Domainname home.pvt
OPTION: 12 ( 3) Host name Nokia_E63
TIME: 2009-10-30 12:15:48.952
IP: 0.0.0.0 (1:22:33:44:55:66) > 255.255.255.255 (ff:ff:ff:ff:ff:ff)
OP: 1 (BOOTPREQUEST)
HTYPE: 1 (Ethernet)
HLEN: 6
... and so on ...
答案1
您的电话正在请求选项 120(sip-server)等。其他值都已返回,但未返回该值。
据我所知,这样的请求是可选的,但诺基亚可能无法应对无法获取该选项的值的情况。