12 063
правки
(Новая страница: «Access point mode is enabled by default. Operation in the access point mode is provided by the '''[https://wireless.wiki.kernel.org/en/users/documentation/hostapd…») |
(Новая страница: «Configuration process: # Enable access point mode. For this: #* open file <code>/etc/default/hostapd</code> and uncomment the string(e.g.,remove the # at the begi…») |
||
Строка 24: | Строка 24: | ||
Access point mode is enabled by default. Operation in the access point mode is provided by the '''[https://wireless.wiki.kernel.org/en/users/documentation/hostapd hostapd]''' daemon. | Access point mode is enabled by default. Operation in the access point mode is provided by the '''[https://wireless.wiki.kernel.org/en/users/documentation/hostapd hostapd]''' daemon. | ||
Configuration process: | |||
# | # Enable access point mode. For this: | ||
#* | #* open file <code>/etc/default/hostapd</code> and uncomment the string(e.g.,remove the # at the beginning of the string)<syntaxhighlight lang="bash">DAEMON_CONF="/etc/hostapd.conf"</syntaxhighlight> | ||
#* | #* edit the <code>/etc/hostapd.conf</code> file like in the example:<syntaxhighlight lang="bash"> | ||
interface=wlan0 | interface=wlan0 | ||
#driver=nl80211 # | #driver=nl80211 # this line should stay commented | ||
ssid=WirenBoard # | ssid=WirenBoard # you can substitute WirenBoard with a different name for the hotspot | ||
channel=1 | channel=1 | ||
wpa=2 | wpa=2 | ||
wpa_passphrase=your_password # | wpa_passphrase=your_password # replace your_password with your own password | ||
wpa_key_mgmt=WPA-PSK | wpa_key_mgmt=WPA-PSK | ||
wpa_pairwise=TKIP CCMP | wpa_pairwise=TKIP CCMP | ||
rsn_pairwise=TKIP CCMP | rsn_pairwise=TKIP CCMP | ||
</syntaxhighlight> | </syntaxhighlight> | ||
# | # Edit<code>/etc/network/interfaces</code>: | ||
#* | #* uncomment and edit the lines(or add them, if there were none) related to the hotspot settings: <syntaxhighlight lang="bash"> | ||
iface wlan0 inet static | iface wlan0 inet static | ||
address 192.168.42.1 # | address 192.168.42.1 # here 192.168.42.1 - is the address where the Wiren Board controller will be located in the new network; you can specify a different address | ||
netmask 255.255.255.0 | netmask 255.255.255.0 | ||
</syntaxhighlight> | </syntaxhighlight> | ||
#* | #* comment out the lines related to the operating in client mode:<syntaxhighlight lang="bash"> | ||
#auto wlan0 | #auto wlan0 | ||
#iface wlan0 inet dhcp | #iface wlan0 inet dhcp | ||
Строка 50: | Строка 50: | ||
# wpa-psk {password} | # wpa-psk {password} | ||
</syntaxhighlight> | </syntaxhighlight> | ||
# | # Execute the command | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
/etc/init.d/hostapd restart | /etc/init.d/hostapd restart |
правки