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

Материал из Wiren Board
Строка 25: Строка 25:
#                wpa-psk  {password}
#                wpa-psk  {password}
</syntaxhighlight>
</syntaxhighlight>
# Execute the command
# Run the command
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
/etc/init.d/hostapd restart
/etc/init.d/hostapd restart
</syntaxhighlight>
</syntaxhighlight>

Версия 17:47, 23 апреля 2019

Определение сообщения (Wi-Fi Old)
Процесс настройки:
# Включите режим точки доступа. Для этого:
#* в файле <code>/etc/default/hostapd</code> раскомментируйте строку (то есть удалите знак '''#''' в начале строки)<syntaxhighlight lang="bash">DAEMON_CONF="/etc/hostapd.conf"</syntaxhighlight>
#* отредактируйте файл <code>/etc/hostapd.conf</code>, чтобы он выглядел так:<syntaxhighlight lang="bash">
interface=wlan0
#driver=nl80211 # оставьте эту строку закомментированной
ssid=WirenBoard # вместо WirenBoard можете подставить другое имя для создаваемой точки доступа
channel=1
wpa=2
wpa_passphrase=your_password # вместо your_password подставьте пароль
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
rsn_pairwise=TKIP CCMP 
</syntaxhighlight>
# Отредактируйте <code>/etc/network/interfaces</code>:
#* раскомментируйте и отредактируйте (или добавьте, если их не было) строки, относящиеся к настройке в режиме точки доступа: <syntaxhighlight lang="bash">
iface wlan0 inet static
     address 192.168.42.1 # здесь 192.168.42.1  - адрес, по которому в новой сети будет находиться Wiren Board; можете указать другой адрес
     netmask 255.255.255.0
</syntaxhighlight>
#* закомментируйте строки, относящиеся к работе в режиме клиента:<syntaxhighlight lang="bash">
#auto wlan0
#iface wlan0 inet dhcp 
#                wpa-ssid {ssid}
#                wpa-psk  {password}
</syntaxhighlight>
# Выполните команду
<syntaxhighlight lang="bash">
/etc/init.d/hostapd restart
</syntaxhighlight>

Configuration process:

  1. Enable access point mode. For this:
    • open file /etc/default/hostapd and uncomment the string(e.g.,remove the # at the beginning of the string)
      DAEMON_CONF="/etc/hostapd.conf"
      
    • edit the /etc/hostapd.conf file like in the example:
      interface=wlan0
      #driver=nl80211 # this line should stay commented
      ssid=WirenBoard # you can substitute WirenBoard with a different name for the hotspot
      channel=1
      wpa=2
      wpa_passphrase=your_password # replace your_password with your own password
      wpa_key_mgmt=WPA-PSK
      wpa_pairwise=TKIP CCMP
      rsn_pairwise=TKIP CCMP
      
  2. Edit /etc/network/interfaces:
    • uncomment and edit the lines(or add them, if there were none) related to the hotspot settings:
      iface wlan0 inet static
            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
      
    • comment out the lines related to the operating in client mode:
      #auto wlan0
      #iface wlan0 inet dhcp 
      #                wpa-ssid {ssid}
      #                wpa-psk  {password}
      
  3. Run the command
/etc/init.d/hostapd restart