1. Store
  2. Apps
  3. Hardware
  4. Support
  5. Solutions

ClearFoundation

Forums
Welcome, Guest
How to make ath9k work as AP in COS5.1 ??
(1 viewing) 1 Guest
Go to bottomPage: 12
TOPIC: How to make ath9k work as AP in COS5.1 ??
#26719
Re:How to make ath9k work as AP in COS5.1 ?? 2 Years, 1 Month ago  
Ok, made the test of doing static IP on my laptop with wiresless connection.

It's work....half :
=> I can access to clearos dashboard and therefore local network
=> but get no access to internet because of unavalaible DNS (test with nslookup)(use base address 192.168.100.1 for DNS)

So, wireless connection works well but DHCP not. (and extra setting shall be made on DNS server)....

so far, I have no idea about the DHCP inactivity......
Vincent Giacomini
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2011/04/12 08:33 By vgiacomini.
The administrator has disabled public write access.
 
#26721
Re:How to make ath9k work as AP in COS5.1 ?? 2 Years, 1 Month ago  
Hmm you may have to use a newer kernel-2.6.32, and hostapd-0.7.3

Just looking at your DHCP config - it appears to be missing the subnet mask? have you done this through the webconfig? If you go to Network > IP Settings > Edit Wireless NIC, can you give it a netmaks of 255.255.255.0.

Then go to Network > DHCP > Wlan0 and recreate your DHCP config

In the end /etc/dnsmasq/dhcp.conf should be similar to:-
Code:

dhcp-option=wlan0,1,255.255.255.0 
dhcp-option=wlan0,28,192.168.2.255
dhcp-option=wlan0,3,192.168.2.2
dhcp-option=wlan0,42,192.168.2.2
dhcp-option=wlan0,44,192.168.2.2
dhcp-option=wlan0,46,8
dhcp-option=wlan0,6,192.168.2.2
dhcp-range=wlan0,192.168.2.100,192.168.2.199,24h
read-ethers



Can you also post the output of 'grep IF /etc/firewall'?

EDIT: I've come across this before with Zd1211rw USB drivers, and had to rename the interface to ethX from wlan0 so that DHCP / routing would work.. the 'ifrename' tool maybe an option
Tim Burgess
Moderator
Posts: 5800
graph
User Online Now Click here to see the profile of this user
Last Edit: 2011/04/12 09:00 By timb80.
The administrator has disabled public write access.
 
#26728
Re:How to make ath9k work as AP in COS5.1 ?? 2 Years, 1 Month ago  
Thanks Tim,

I used webconfig to create wireless interface (with a mask o 255.255.255.0) , I just forgot one line about dhcp.conf on last post. Below the output of cat command:
cat /etc/dnsmasq/dhcp.conf
dhcp-option=eth1,1,255.255.255.0
dhcp-option=eth1,28,192.168.192.255
dhcp-option=eth1,3,192.168.192.1
dhcp-option=eth1,42,192.168.192.1
dhcp-option=eth1,6,192.168.192.1
dhcp-option=wlan0,1,255.255.255.0
dhcp-option=wlan0,28,192.168.100.255
dhcp-option=wlan0,3,192.168.100.1
dhcp-option=wlan0,42,192.168.100.1
dhcp-option=wlan0,44,192.168.100.1
dhcp-option=wlan0,46,8
dhcp-option=wlan0,6,192.168.100.1

dhcp-range=eth1,192.168.192.100,192.168.192.199,168h
dhcp-range=wlan0,192.168.100.100,192.168.100.254,24h
read-ethers



grep IF /etc/firewall
EXTIF="eth0"
LANIF="eth1 wlan0"
DMZIF=""
WIFIF=""
HOTIF=""
DNSIF=""


Gonna try tonight to change interface name from wlan0 to eth2. If no success, I will do a kernel upgrade...
Vincent Giacomini
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
  get the latest posts directly to your desktop