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

Материал из Wiren Board
(Новая страница: «If conditions are met: # Execute the command #:<syntaxhighlight lang="bash"> iwconfig </syntaxhighlight> #:Its output should show two Wi-Fi interfaces: ''wlan0''…»)
 
Строка 1: Строка 1:
If conditions are met:
If conditions are met:
# Execute the command
# Run command
#:<syntaxhighlight lang="bash">
#:<syntaxhighlight lang="bash">
iwconfig
iwconfig

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

Определение сообщения (Wi-Fi Old)
Если условия выполнены:
# Выполните команду
#:<syntaxhighlight lang="bash">
iwconfig
</syntaxhighlight>
#:В её выводе должны быть показаны два интерфейса Wi-Fi: ''wlan0'' и ''wlan1''.
# Настройте по двум предыдущим инструкциям подключение в режиме клиента и подключение в режиме точки доступа, но используйте для них разные интерфейсы. Например, оставьте ''wlan0'' для точки доступа, а клиента сделайте на ''wlan1''. Соответствующая часть файла ''/etc/network/interfaces'' должна выглядеть так:
#: <syntaxhighlight lang="bash">
# Wireless interfaces
auto wlan1
iface wlan1 inet dhcp
   wpa-ssid {ssid} # вместо {ssid} подставьте имя точки доступа
   wpa-psk {password} # вместо {password} подставьте пароль

If conditions are met:

  1. Run command
    iwconfig
    
    Its output should show two Wi-Fi interfaces: wlan0 и wlan1.
  2. Use the previous two instructions to configure the client mode and the hotspot mode connection, but use different interfaces. For example, leave wlan0 for the hotspot and make the client on wlan1. The corresponding part of /etc/network/interfaces should look like this:
    <syntaxhighlight lang="bash">
  3. Wireless interfaces

auto wlan1 iface wlan1 inet dhcp

   wpa-ssid {ssid} # replace {ssid} with the hotspot name
   wpa-psk {password} # replace {password} with your own password