I have sucessfully build a ipv4  access point ,
1)edit /etc/dnsmasq.conf and add
interface=wlan0
except-interface=lo
dhcp-range=10.0.0.2,10.0.0.9,12h
2)create a file name hostapd.conf:
interface=wlan0
driver=nl80211
ssid=pqy
hw_mode=g
channel=8
wpa=3
wpa_passphrase=pqy55555
3)create a file name ap.sh:
#!/bin/bash
pkill hostapd
pkill dnsmasq
sleep 1
ifconfig wlan0 10.0.0.1 netmask 255.255.255.240
iptables -t nat -A POSTROUTING  -o eth0 -j MASQUERADE
echo "1" > /proc/sys/net/ipv4/ip_forward
hostapd  -B hostapd.conf
/etc/init.d/dnsmasq restart

then sudo sh ap.sh
I can connect to this ipv4 network.But I have no idea how to deal with ipv6.
Is it possible to create ipv6 local network?

Reply via email to