LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-09-2016, 12:59 AM   #1
propofol
Member
 
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 334

Rep: Reputation: 60
Debian Jessie Wireless Access Point - lost static address for wlan0


I have used hostapd to set up a wireless access point (WAP). My problem is that now and then after a reboot the WAP show up & I can connect, but there is no internet connection on the client PC. On the server side it seems that the static IP for wlan0 is not there.

If I issue a:
"sudo ifconfig wlan0 10.0.0.1/24" the problem is sorted out.

My /etc/network/interfaces file looks like this:
Code:
auto wlan0
iface wlan0 inet static
        wireless-power off
        address 10.0.0.1
        netmask 255.255.255.0
        network 10.0.0.0
        gateway 10.0.0.1
        wpa-essid WAP
This is hostapd.conf:
Code:
interface=wlan0
ssid=mnet6
channel=9
driver=nl80211
ieee80211n=1
hw_mode=g
device_name=AR7010+AR9287
manufacturer=Atheros
wpa=2
wpa_passphrase=SomeNicePassword
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
rsn_pairwise=CCMP

# Other settings
beacon_int=100
auth_algs=1
wmm_enabled=1

#TL-WN822N Ver 2.0 Atheros
ht_capab=[HT20][HT40][SHORT-GI-20][SHORT-GI-40][RX-STBC1][TX-STBC][DSSS_CCK-40]

#TL-WN722N Atheros
#ht_capab=[HT20][HT40][SHORT-GI-20][SHORT-GI-40][RX-STBC1][DSSS_CCK-40]

#RT5370
#ht_capab=[HT20][HT40][SHORT-GI-20][SHORT-GI-40][GF][SMPS-STATIC][RX-STBC1]
I use dnsmaq as the DHCP server.
/etc/dnsmasq.conf
Code:
no-resolv
no-poll
cache-size=4096
server=8.8.8.8
server=8.8.4.4
interface=wlan0
dhcp-range=10.0.0.100,10.0.0.200,255.255.255.0,12h
I know I could probably do a band-aid fix by adding "ifconfig wlan0 10.0.0.1/24" to /etc/rc.local but I would appreciate it if someone has an idea of what the correct way would be of fixing this.

Regards,
Stefan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to connect wlan0 to static access point Lieyza Linux - Networking 4 09-25-2012 12:40 PM
what would you say is the easiest way to create a wireless access point in debian baronobeefdip Debian 2 05-31-2011 01:13 PM
How to: WMP54g as wireless access point (debian) nioreh Linux - Wireless Networking 1 05-12-2010 03:12 PM
New Debian user struggling to connect to wireless access point BGM Linux - Laptop and Netbook 3 10-29-2009 05:14 AM
ipw2200 - Unable to obtain IP address from Wireless Access point. tguha Linux - Wireless Networking 1 02-20-2007 01:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration