需要帮助!我想在我的Raspbian中创建一个AP。我选择dnsmasq作为dhcpv4和dhcpv6服务器。然而,我的笔记本电脑可以成功地获得IPv4,但却无法获得IPv6。为什么dnsmasq不适用于IPv6?
# my dnsmasq.conf
domain-needed
no-resolv
no-poll
server=8.8.8.8
server=8.8.4.4
all-servers
interface=wlan0
dhcp-range=192.168.233.100, 192.168.233.200, 255.255.255.0, 12h
dhcp-range=fec0::ff00, fec0::fffe/10, 12h
enable-ra
dhcp-option-force=26,1397
log-queries
log-dhcp
conf-dir=/etc/dnsmasq.d
# glance at the dnsmasq log when i make a DHCP request
hostapd: wlan0: STA 88:53:2e:65:8c:a4 IEEE 802.11: associated
hostapd: wlan0: STA 88:53:2e:65:8c:a4 RADIUS: starting accounting session 56703A6F-00000010
hostapd: wlan0: STA 88:53:2e:65:8c:a4 WPA: pairwise key handshake completed (RSN)
dnsmasq-dhcp[3585]: 2738259568 available DHCP range: 192.168.233.100 -- 192.168.233.200
dnsmasq-dhcp[3585]: 2738259568 client provides name: anri
dnsmasq-dhcp[3585]: 2738259568 DHCPREQUEST(wlan0) 192.168.233.200 88:53:2e:65:8c:a4
dnsmasq-dhcp[3585]: 2738259568 tags: wlan0
dnsmasq-dhcp[3585]: 2738259568 DHCPACK(wlan0) 192.168.233.200 88:53:2e:65:8c:a4 anri
dnsmasq-dhcp[3585]: 2738259568 requested options: 1:netmask, 28:broadcast, 2:time-offset, 3:router,
dnsmasq-dhcp[3585]: 2738259568 requested options: 15:domain-name, 6:dns-server, 119:domain-search,
dnsmasq-dhcp[3585]: 2738259568 requested options: 12:hostname, 44:netbios-ns, 47:netbios-scope,
dnsmasq-dhcp[3585]: 2738259568 requested options: 26:mtu, 121:classless-static-route, 42:ntp-server,
dnsmasq-dhcp[3585]: 2738259568 requested options: 121:classless-static-route, 249, 33:static-route,
dnsmasq-dhcp[3585]: 2738259568 requested options: 252, 42:ntp-server
dnsmasq-dhcp[3585]: 2738259568 next server: 192.168.233.254
dnsmasq-dhcp[3585]: 2738259568 sent size: 1 option: 53 message-type 5
dnsmasq-dhcp[3585]: 2738259568 sent size: 4 option: 54 server-identifier 192.168.233.254
dnsmasq-dhcp[3585]: 2738259568 sent size: 4 option: 51 lease-time 43200
dnsmasq-dhcp[3585]: 2738259568 sent size: 4 option: 58 T1 21600
dnsmasq-dhcp[3585]: 2738259568 sent size: 4 option: 59 T2 37800
dnsmasq-dhcp[3585]: 2738259568 sent size: 4 option: 1 netmask 255.255.255.0
dnsmasq-dhcp[3585]: 2738259568 sent size: 4 option: 28 broadcast 192.168.233.255
dnsmasq-dhcp[3585]: 2738259568 sent size: 4 option: 3 router 192.168.233.254
dnsmasq-dhcp[3585]: 2738259568 sent size: 4 option: 6 dns-server 192.168.233.254
dnsmasq-dhcp[3585]: 2738259568 sent size: 4 option: 12 hostname anri
dnsmasq-dhcp[3585]: 2738259568 sent size: 2 option: 26 mtu 1397
dnsmasq-dhcp[3585]: RTR-SOLICIT(wlan0)
dnsmasq-dhcp[3585]: 2738259568 available DHCP range: 192.168.233.100 -- 192.168.233.200
dnsmasq-dhcp[3585]: 2738259568 client provides name: anri
dnsmasq-dhcp[3585]: 2738259568 DHCPREQUEST(wlan0) 192.168.233.200 88:53:2e:65:8c:a4
dnsmasq-dhcp[3585]: 2738259568 tags: wlan0
dnsmasq-dhcp[3585]: 2738259568 DHCPACK(wlan0) 192.168.233.200 88:53:2e:65:8c:a4 anri
dnsmasq-dhcp[3585]: 2738259568 requested options: 1:netmask, 28:broadcast, 2:time-offset, 3:router,
dnsmasq-dhcp[3585]: 2738259568 requested options: 15:domain-name, 6:dns-server, 119:domain-search,
dnsmasq-dhcp[3585]: 2738259568 requested options: 12:hostname, 44:netbios-ns, 47:netbios-scope,
dnsmasq-dhcp[3585]: 2738259568 requested options: 26:mtu, 121:classless-static-route, 42:ntp-server,
dnsmasq-dhcp[3585]: 2738259568 requested options: 121:classless-static-route, 249, 33:static-route,
dnsmasq-dhcp[3585]: 2738259568 requested options: 252, 42:ntp-server
dnsmasq-dhcp[3585]: 2738259568 next server: 192.168.233.254
dnsmasq-dhcp[3585]: 2738259568 sent size: 1 option: 53 message-type 5
dnsmasq-dhcp[3585]: 2738259568 sent size: 4 option: 54 server-identifier 192.168.233.254
dnsmasq-dhcp[3585]: 2738259568 sent size: 4 option: 51 lease-time 43200
dnsmasq-dhcp[3585]: 2738259568 sent size: 4 option: 58 T1 21600
dnsmasq-dhcp[3585]: 2738259568 sent size: 4 option: 59 T2 37800
dnsmasq-dhcp[3585]: 2738259568 sent size: 4 option: 1 netmask 255.255.255.0
dnsmasq-dhcp[3585]: 2738259568 sent size: 4 option: 28 broadcast 192.168.233.255
dnsmasq-dhcp[3585]: 2738259568 sent size: 4 option: 3 router 192.168.233.254
dnsmasq-dhcp[3585]: 2738259568 sent size: 4 option: 6 dns-server 192.168.233.254
dnsmasq-dhcp[3585]: 2738259568 sent size: 4 option: 12 hostname anri
dnsmasq-dhcp[3585]: 2738259568 sent size: 2 option: 26 mtu 1397
发布于 2015-12-15 22:00:13
你在你的配置中犯了一些不同的错误。首先,本地地址已经被废弃多年了。任何告诉您使用以fec0
开头的地址的文档都是过时的,需要更新。
站点本地地址的替换称为唯一本地地址。这些结构是使用fd
作为第一个八进制,然后是五个随机八进制。例如,可以使用fdda:772b:1c61::/48
作为本地前缀。
但是,上述两种类型的地址都不适用于您想要与您自己的网络之外的任何内容通信的计算机。如果您希望这些计算机在您自己的网络之外进行通信,则应该根据您的ISP已路由到您的前缀为它们分配地址。
此外,在许多情况下,使用DHCPv6并不是最好的选择。这取决于您的特定需求,但通常只使用路由器广告守护进程(如radvd
)比使用DHCPv6服务器更合适。
https://serverfault.com/questions/743216
复制相似问题