Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Mar 2017 13:10:26 -0400
From:      Peter Pauly <ppauly@gmail.com>
To:        Ernie Luzar <luzar722@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: WIFI as access point
Message-ID:  <CAKXfWbRj_ZxVpVSD7vbqgEroV=vKNka_vJbB5YGLkgwOGM=fKA@mail.gmail.com>
In-Reply-To: <58C96961.9010804@gmail.com>
References:  <58C08444.8060600@gmail.com> <58C17FEB.1020905@FreeBSD.org> <58C96961.9010804@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
You're serving DHCP on your LAN interface, but not on the WiFi interface.

On Wed, Mar 15, 2017 at 12:18 PM, Ernie Luzar <luzar722@gmail.com> wrote:

> Dima Panov wrote:
>
>>
>> Ernie Luzar wrote:
>>
>>> Hello List;
>>>
>>> I have this wifi card
>>> http://www.dlink.com/al/sq/products/dwa-556-xtreme-n-pci-exp
>>> ress-desktop-adapter
>>>
>>>
>>> I recovered it from a decommissioned win7 box. On win7 this wifi card
>>> could only be used to connect to a router access point.
>>>
>>> If I add this wifi card to my FreeBSD 11.0 system can it be configured
>>> to function as an access point?
>>>
>>
>> This card is fully support by ath driver as "AR5418 Wireless Network
>> Adapter".
>> Copmlete examples with various AP setup described in manual page for
>> driver.
>>
>>
>>
> I have followed the handbook "30.3.6 Freebsd Host Access Points" Chapter
> in setting up this ath0 wifi card that is installed into my gateway box
> that has a LAN on it. A win7 laptop can see the ssid and connect to it. But
> it can not gain public internet access. Win7 wifi trouble shooting says no
> valid ip address and not end point. To me this sounds like a network
> configuration problem on my Freebsd gateway box.
>
> /root >ifconfig wlan0
> wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 0
>         ether 00:18:e7:d5:b3:84
>         inet 10.0.10.100 netmask 0xffffff00 broadcast 10.0.10.255
>         nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
>         media: IEEE 802.11 Wireless Ethernet autoselect mode 11ng
>         <hostap>
>         status: running
>         ssid FBSD_AP channel 1 (2412 MHz 11g ht/40+) bssid
>         00:18:e7:d5:b3:84
>         regdomain FCC indoor ecm authmode WPA2/802.11i privacy MIXED
>         deftxkey 3 AES-CCM 2:128-bit AES-CCM 3:128-bit txpower 27
>         scanvalid 60
>         protmode CTS ampdulimit 64k ampdudensity 8 shortgi wme burst
>         dtimperiod 1 -dfs
>         groups: wlan
>
>
>
> /root >cat /etc/hostapd.conf
> interface=wlan0
> debug=2
> ctrl_interface=/var/run/hostapd
> ctrl_interface_group=wheel
> ssid=FBSD_AP
> wpa=2
> wpa_passphrase=test
> wpa_key_mgmt=WPA-PSK
> wpa_pairwise=CCMP
>
>
> /root >cat /etc/rc.conf
> Snip
>
> gateway_enable="YES"
>
> ifconfig_em0="DHCP"                # from cable modem
> ifconfig_vge0="inet 10.0.10.2"     # to LAN switch
>
> # Wifi in hostap mode
> wlans_ath0="wlan0"
> create_args_wlan0="wlanmode hostap"
> ifconfig_wlan0="inet 10.0.10.100 netmask 255.255.255.0 ssid FBSD_AP mode
> 11g"
> hostapd_enable="YES"
>
> dhcpd_enable="YES"
> dhcpd_conf="/usr/local/etc/dhcpd.conf"
> dhcpd_ifaces="vge0"         # ASRock Server Lan Nic
> dhcpd_flags="-q"
>
>
> This general config has been working for many years, since release 3.0 of
> Freebsd. The only thing new is the wifi card being used as a gateway hostap.
>
> I do not understand what this is doing
> fconfig_wlan0="inet 10.0.10.100 netmask 255.255.255.0
>
> I can not find any documentation on this as to it's purpose.
>
> I am trying to duplucate my cisco wifi router config which has this
> security mode = wpa2 personal
> encrytion = tkip or aes
> network mode = BGN
>
>
> Thanks for any help you can give me
>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe
> @freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKXfWbRj_ZxVpVSD7vbqgEroV=vKNka_vJbB5YGLkgwOGM=fKA>