[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Setting up AP with hostapd



Bob Proulx <bob@proulx.com> writes:

> csanyipal@gmail.com wrote:
>> What could be the problem?
>
> I don't know but here is my working configuration.  I am not running
> in bridge mode.  I am running in router mode.
>
> Bob
>
> In /etc/network/interfaces:
> allow-hotplug wlan0
> iface wlan0 inet static
>         address 192.168.93.1
>         netmask 255.255.255.0
>         hostapd /etc/hostapd/hostapd-wlan0.conf
>         up service isc-dhcp-server restart
>         down service isc-dhcp-server stop
>
> In /etc/hostapd/hostapd-wlan0.conf:
> dump_file=/tmp/hostapd.dump
> ctrl_interface=/var/run/hostapd
> interface=wlan0
> driver=nl80211
> ssid=myssidnamehere
> channel=11
> wpa=2
> wpa_passphrase=mypassphrasehere
> wpa_pairwise=CCMP
> rsn_pairwise=CCMP
> hw_mode=g
> wmm_enabled=1
> ieee80211n=1
> ht_capab=[HT40-][SHORT-GI-40][HT20][SHORT-GI-20]
>
> In /etc/dhcp/dhcpd.conf:
> # The ddns-updates-style parameter controls whether or not the server will
> # attempt to do a DNS update when a lease is confirmed. We default to the
> # behavior of the version 2 packages ('none', since DHCP v2 didn't
> # have support for DDNS.)
> ddns-update-style none;
>
> # option definitions common to all supported networks...
> option domain-name "proulx.com";
> option domain-name-servers 192.168.230.109, 192.168.230.119;
>
> default-lease-time 600;
> max-lease-time 7200;
>
> # If this DHCP server is the official DHCP server for the local
> # network, the authoritative directive should be uncommented.
> authoritative;
>
> subnet 192.168.93.0 netmask 255.255.255.0 {
>   option routers 192.168.93.1;
>   range 192.168.93.100 192.168.93.254;
> }

I tried this setup but after reboot my headless server I can't ssh into
it again.

I must to rescue it to get it back.

Should I run some route commands to get it working?

Anyway I plan my home network in Dia and export it to an image:
https://www.dropbox.com/s/shbcf2ukcj429v1/HomeNetwork_02.png?dl=0

I'm persistently looking for a solution for this case.

Any advices will be appreciated!

-- 
Regards from Pal


Reply to: