Trouble with creating an access point..... - Raspberry Pi Forums


so have been troubleshooting several hours , have working access point devices not have internet access after connecting access point.

set pi tp link tl-w722n wifi adapter following guide here...

http://elinux.org/rpi-wireless-hotspot

config files:

network interfaces;

auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet manual

auto wlan0 inet static
address 192.168.0.20
netmask 255.255.255.0
#allow-hotplug wlan0
#iface wlan0 inet manual
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
#iface default inet manual

#auto wlan1
#allow-hotplug wlan1
#iface wlan1 inet manual
#wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

/etc/udhcpd.conf

# sample udhcpd configuration file (/etc/udhcpd.conf)

# start , end of ip lease block

start 192.168.0.20 #default: 192.168.0.20
end 192.168.0.25 #default: 192.168.0.254


# interface udhcpd use

interface wlan0 #default: eth0


# maximim number of leases (includes addressesd reserved
# offer's, decline's, , arp conficts

max_leases 5 #default: 254
# if remaining true (default), udhcpd store time
# remaining each lease in udhcpd leases file. is
# embedded systems cannot keep time between reboots.
# if set remaining no, absolute time lease
# expires @ stored in dhcpd.leases file.

remaining yes #default: yes


# time period @ udhcpd write out dhcpd.leases
# file. if 0, udhcpd never automatically write a
# lease file. (specified in seconds)

#auto_time 7200 #default: 7200 (2 hours)


# amount of time ip reserved (leased) if a
# dhcp decline message received (seconds).

#decline_time 3600 #default: 3600 (1 hour)


# amount of time ip reserved (leased) if an
# arp conflct occurs. (seconds

#conflict_time 3600 #default: 3600 (1 hour)


# how long offered address reserved (leased) in seconds

#offer_time 60 #default: 60 (1 minute)

# if lease given below value, full lease time is
# instead used (seconds).

#min_lease 60 #defult: 60
# location of leases file

lease_file /var/lib/misc/udhcpd.leases #default: /var/lib/misc/udhcpd.leases

# location of pid file
pidfile /var/run/udhcpd.pid default: /var/run/udhcpd.pid

# everytime udhcpd writes leases file, below script called.
# useful writing lease file flash every few hours.

#notify_file #default: (no script)

#notify_file dumpleases # <--- useful debugging

# following bootp specific options, setable udhcpd.

#siaddr 192.168.0.22 #default: 0.0.0.0

#sname zorak #default: (none)

#boot_file /var/nfs_root #default: (none)

# remainer of options dhcp options , can specifed the
# keyword 'opt' or 'option'. if option can take multiple items, such
# dns option, can listed on same line, or multiple
# lines. option default 'lease'.
#examles
opt dns 8.8.8.8 4.2.2.2
option subnet 255.255.255.0
opt router 192.168.0.20
opt wins 192.168.10.10
option dns 129.219.13.81 # appened above dns servers total of 3
option domain local
option lease 864000 # 10 days of seconds

/etc/default/udhcpd
#dhcpd_enabled="no"

hostapd config

nterface=wlan0
driver=nl80211
ssid=myap
hw_mode=g
channel=6
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=mypassphrase
wpa_key_mgmt=wpa-psk
wpa_pairwise=tkip
rsn_pairwise=ccmp



raspberrypi



Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code