该租约文件由 isc-dhcp-4.2.2 编写

该租约文件由 isc-dhcp-4.2.2 编写

我正在尝试使用兼容的硬件和软件创建自己的无线接入点。

运行命令服务 isc-dhcp-server 启动服务hostapd启动在我的树莓派箱式退货

运行命令服务hostapd启动回报

[ ok ] Starting advanced IEEE 802.11 management: hostapd. 
[ ok ] Starting ISC DHCP server: dhcpd.

检查我的var/日志/系统日志文件显示没有投诉

dhcpd: Internet Systems Consortium DHCP Server 4.2.2
dhcpd: Copyright 2004-2011 Internet Systems Consortium.
dhcpd: All rights reserved.
dhcpd: For info, please visit https://www.isc.org/software/dhcp/
dhcpd: Internet Systems Consortium DHCP Server 4.2.2
dhcpd: Copyright 2004-2011 Internet Systems Consortium.
dhcpd: All rights reserved.
dhcpd: For info, please visit https://www.isc.org/software/dhcp/
dhcpd: Wrote 1 leases to leases file.

但是,当我尝试连接到可用网络中列出的我的接入点时,我无法连接。

似乎也很重要的是,在我的var/日志/系统日志文件我没有看到任何有关此连接的活动。 (过去运行 dhcp 时,当任何客户端尝试连接等时,日志文件通常会显示大量数据)


更新 08/09/15 15:43

我的一些/etc/dhcp/dhcpd.conf文件的重要部分

authoritative;

subnet 192.168.42.0 netmask 255.255.255.0 {
    range 192.168.42.10 192.168.42.50;
    option broadcast-address 192.168.42.255;
    option routers 192.168.42.1;
    default-lease-time 600;
    max-lease-time 7200;
    option domain-name "local";
    option domain-name-servers 8.8.8.8, 8.8.4.4;
}

我的/etc/网络/接口文件

...
iface eth0 inet static
        address 192.168.1.100
        netmask 255.255.255.0
        gateway 192.168.1.1

iface wlan1 inet static
        address 192.168.42.1
        netmask 255.255.255.0

up iptables-restore < /etc/iptables.ipv4.nat
...

我的/etc/hostapd/hostapd.conf文件

interface=wlan1
driver=rtl871xdrv
ssid=aaaaBBBB
hw_mode=g
channel=1
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=rrrrrrrr
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

运行命令ifconfig-a回报

wlan1     Link encap:Ethernet  HWaddr 00:02:22:22:11:11
          inet addr:192.168.42.1  Bcast:192.168.42.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:462 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)

更新 08/09/15 16:12

我的/etc/default/isc-dhcp-服务器文件包含

...
# Defaults for isc-dhcp-server initscript
...
INTERFACES="wlan1"

我的/proc/sys/net/ipv4/ip_forward文件包含

1

pinging192.168.42.1通过SSH(eth0 192.168.1.100) 返回

**ping 192.168.42.1** returns 

PING 192.168.42.1 (192.168.42.1) 56(84) bytes of data.
64 bytes from 192.168.42.1: icmp_req=1 ttl=64 time=0.372 ms
64 bytes from 192.168.42.1: icmp_req=2 ttl=64 time=0.273 ms
64 bytes from 192.168.42.1: icmp_req=3 ttl=64 time=0.271 ms
64 bytes from 192.168.42.1: icmp_req=4 ttl=64 time=0.270 ms
64 bytes from 192.168.42.1: icmp_req=5 ttl=64 time=0.266 ms
^X64 bytes from 192.168.42.1: icmp_req=6 ttl=64 time=0.268 ms
64 bytes from 192.168.42.1: icmp_req=7 ttl=64 time=0.266 ms
^C
--- 192.168.42.1 ping statistics ---

更新 09/09/15 18:24

尝试从另一台计算机连接到 AP 时运行以下命令

tcpdump -i wlan1 -vv

回报

0 packets captured
0 packets received by filter
0 packets dropped by kernel

指令

iwconfig

回报

lo        no wireless extensions.

eth0      no wireless extensions.

wlan1     IEEE 802.11bg  ESSID:"aaaaBBBB"  Nickname:"<WIFI@REALTEK>"
          Mode:Master  Frequency:2.412 GHz  Access Point: 00:02:22:22:11:11
          Bit Rate:54 Mb/s   Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

我的/var/lib/dh​​cp/dhcpd.leases文件包含

该文件的格式记录在 dhcpd.leases(5) 手册页中。

该租约文件由 isc-dhcp-4.2.2 编写

租约 192.168.42.10 { 开始时间 4 2015/09/03 20:10:01;结束于 4 2015/09/03 20:20:01; tstp 4 2015/09/03 20:20:01; cltt 4 2015/09/03 20:10:01;自由结合状态;硬件以太网 00:02:22:22:11:11; } server-duid "\000\001\000\000\031h\026\000\000\000\000\000\000\"";


我试图解决这个问题

主机

  • 改变司机=/etc/hostapd/hostapd.conf驱动程序=nl80211驱动程序=rtl8192cu- 两者都会导致服务主机无法启动

相关内容