Wi-Fi Old/en: различия между версиями

Новая страница: «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…»
(Новая страница: «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:
#* в файле <code>/etc/default/hostapd</code> раскомментируйте строку (то есть удалите знак '''#''' в начале строки)<syntaxhighlight lang="bash">DAEMON_CONF="/etc/hostapd.conf"</syntaxhighlight>
#* 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>
#* отредактируйте файл <code>/etc/hostapd.conf</code>, чтобы он выглядел так:<syntaxhighlight lang="bash">
#* 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 # вместо 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 # вместо 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>
# Отредактируйте <code>/etc/network/interfaces</code>:
# Edit<code>/etc/network/interfaces</code>:
#* раскомментируйте и отредактируйте (или добавьте, если их не было) строки, относящиеся к настройке в режиме точки доступа: <syntaxhighlight lang="bash">
#* 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 # здесь 192.168.42.1  - адрес, по которому в новой сети будет находиться Wiren Board; можете указать другой адрес
       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>
#* закомментируйте строки, относящиеся к работе в режиме клиента:<syntaxhighlight lang="bash">
#* 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
12 063

правки