View Single Post
  #1   (View Single Post)  
Old 10th March 2011
sws sws is offline
Port Guard
 
Join Date: Mar 2011
Posts: 12
Default Wifi with atheros chipset AR9280

Hi,

I am trying to get a wifi access point running on my SOHO-server, OpenBSD 4.8, Netfinity 3000. The server acts as a gateway and firewall to a dsl-router. IP is 192.1687.0.20. Connection to the internet passes through OpenVPN (tun0). The intranet is configured with subnet 192.168.0.0. So nothing really strange there (I hope).

Card TP-Link TL-WN851N is recognized on system bootup:

Quote:
athn0 at pci0 dev 16 function 0 "Atheros AR9280" rev 0x01: irq 11, address 74:ea:3a:f3:05:39
athn0: AR9280 rev 2 (2T2R), ROM rev 16
Configuring device works as well in /etc/hostname.athn0:

Quote:
up media autoselect mediaopt hostap mode 11g chan 11 nwid FreiKINO wpa wpapsk $(wpa-psk FreiKINO password)
inet 192.168.0.50
Device can be seen up and running:
# ifconfig athn0:

Quote:
athn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
lladdr 74:ea:3a:f3:05:39
priority: 4
groups: wlan
media: IEEE802.11 autoselect mode 11g hostap
status: active
ieee80211: nwid FreiKINO chan 11 bssid 74:ea:3a:f3:05:39 wpapsk xxxxxxxxx wpaprotos wpa1,wpa2 wpaakms psk wpaciphers tkip,ccmp wpagroupcipher tkip
inet6 fe80::76ea:3aff:fef3:539%athn0 prefixlen 64 scopeid 0x2
inet 192.168.0.50 netmask 0xffffff00 broadcast 192.168.0.255
To connect devices coming in from the access point I configured a dhcpd server pointing on the wifi device athn0.

My /etc/dhcpd.conf:

Quote:
option domain-name "my.net";
option domain-name-servers xxx.xxx.xxx.xxx;
subnet 192.168.0.0 netmask 255.255.255.0 {
option routers 192.168.0.20;
range 192.168.0.100 192.168.0.150;
}

But now problems arise:

1. I cannot ping the wifi card. And it doesn't matter if dhcpd is running or not.

Quote:
ping: sendto: Host is down
ping: wrote 192.168.0.50 64 chars, ret=-1
--- 192.168.0.50 ping statistics ---
9 packets transmitted, 0 packets received, 100.0% packet loss
2. Every time I start dhcpd

# dhcpd athn0

it tries to give IP-Adresses to every network device on the net. Thus my openvpn connection breaks down and routing dies.

Where is the missing link? Any help appreciated.

Greets,
Sebastian
Reply With Quote