gpt4 book ai didi

linux - hostapd + dnsmasq不断断开客户端连接[rtl819cu]

转载 作者:太空宇宙 更新时间:2023-11-04 04:35:56 25 4
gpt4 key购买 nike

我遇到与this person相同的问题,但是不管我做什么,它都无法工作...如果网络确实出现了..它一直在引导我关机。

/etc/dnsmasq.conf

# disables dnsmasq reading any other files like /etc/resolv.conf for nameservers
no-resolv
# Interface to bind to
interface=wlan0
# Specify starting_range,end_range,lease_time
dhcp-range=192.168.5.2,192.168.5.20,12h
# dns addresses to send to the clients
server=8.8.4.4


/ etc / network / interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#allow-hotplug eth0
#iface eth0 inet dhcp
# Example to keep MAC address between reboots
#hwaddress ether DE:AD:BE:EF:CA:FE

# The secondary network interface
#allow-hotplug eth1
#iface eth1 inet dhcp

# WiFi Example
#auto wlan0
#iface wlan0 inet dhcp
# wpa-ssid "essid"
# wpa-psk "password"

# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
# Note on some boards, usb0 is automaticly setup with an init script
iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.0
network 192.168.7.0
gateway 192.168.7.1
#allow-hotplug wlan0
auto wlan0
iface wlan0 inet static
address 192.168.5.1
network 192.168.5.0
netmask 255.255.255.0
broadcast 192.168.5.255
# wireless-mode ad-hoc


/etc/hostapd/hostapd.conf

# Basic configuration

interface=wlan0
ssid=DontConnect
channel=6
#bridge=br0

# WPA and WPA2 configuration

macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=3
wpa_passphrase=password
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

# Hardware configuration
driver=nl80211
#driver=rtl8192cu
#driver=rtl871xdrv
ieee80211n=1
hw_mode=g
#device_name=RTL8192CU
#manufacturer=Realtek


现在不管我做什么,都不会显示出来。

Linux beast2.kraken.local 3.8.13-bone47 #1 SMP Fri Apr 11 01:36:09 UTC 2014 armv7l GNU/Linux

最佳答案

这是dnsmasq中的错误。使用isc dhcpd或静态寻址。

关于linux - hostapd + dnsmasq不断断开客户端连接[rtl819cu],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25251191/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com