Openwrt нет интернета через wifi

OpenWRT.su

Подключение к интернет через Wi-Fi сеть в OpenWRT при помощи UCI

Если вы прошили свой роутер прошивкой, например, без вебморды LuCI, то это еще не повод искать и шить поверх другую. Можно установить любое расширение отдельным пакетом из репозитария, но для этого всего лишь нужно получить доступ в интернет для терминала OpenWRT вашего роутера. Как это быстро сделать через Wi-Fi сеть при помощи базовых команд UCI Openwrt разберем в этой небольшой статье.

Для начала посмотрим заданные интерфейсы в системе. На только что установленной прошивке это всего лишь lan.

Создадим новый интерфейс для Wi-Fi сети с выходом в интернет. Дадим ему имя wwan

uci set network.wwan=interface

Так как мы будем получать ip адрес от интернет-шлюза, то установим протокол dhcp

uci set network.wwan.proto=dhcp

Далее посмотрим что творится в конфигах беспроводных сетей

Для начала включим собственно саму wi-fi карточку роутера

uci set wireless.radio0.disabled=0

Зададим новую вай-фай сеть

uci set wireless.@wifi-iface[0].network=wwan

Укажем что мы хотит подключить к существующей сети как клиент

uci set wireless.@wifi-iface[0].mode=sta

Указаваем название существующей wi-fi точки доступа которая обладает выходом в интернет

uci set wireless.@wifi-iface[0].ssid=TP-LINK_F3F8

Далее указываем стандартный тип шифрования wps-psk2

uci set wireless.@wifi-iface[0].encryption=psk2

Запоминаем в конфигах собственно наш пароль

uci set wireless.@wifi-iface[0].key=90953354

Сохраняем наши изменения во всех конфигах OpenWRT

Ну а дальше, что вашей душе угодно при помощи установщика пакетов opkg

Комментарии

Большое спасибо! Прям выручил! только
wireless. @wifi-iface[0].

Источник

Enabling a Wi-Fi access point on OpenWrt

Devices that have Ethernet ports have Wi-Fi turned off by default. This is a basic description of how to enable a Wi-Fi network and most importantly, how to properly configure your country code such that your Wi-Fi network complies with the legal regulations of your country.

Читайте также:  Приложение отключающее мобильный интернет

Using the web admin GUI

Go to Network → Wireless. This page lists a separate Wi-Fi configuration section for each of your physical radios, (many devices you may have, will have one radio for 2.4 GHz and a second one for 5 GHz ).

On the first Wi-Fi network that you configure, go to the Device Configuration and open the tab Advanced Settings: in the Country Code field, select the correct county code, where your OpenWrt device is installed. This is important to ensure your OpenWrt device meets the legal regulations in your country. (all other configured radios will use the same device settings)

In the tab Wireless Security, select an Encryption method (e.g. “WPA2-PSK”, recommended for home/small office networks)

In the tab Wireless Security, enter a Key , a secret phrase which clients must use to connect to your Wi-Fi network. NB: With WPA2-PSK, the Key must be at least eight (8) characters.

If needed, configure further settings according to your needs. Other default settings ordinarily correct for general usage.

If you have configured 5GHz Wi-Fi and have just enabled it, but the 5 GHz Wi-Fi does not seem to start up, consider the following: If your device supports Wi-Fi channels > 100, your OpenWrt device first must scan for weather radar on these channels, before you can actually use such channels for Wi-Fi. This may take 1-10 minutes onetime after first reboot depending on your Wi-Fi situation and depending on the number of device-supported channels > 100. You may also experience 1 minute delay on each automatic channel change, as the same scan delay is required for regulation compliance.

Network / Wireless / Edit / Interface Configuration / General Setup / Network should be left to the “lan” default or to another interface where there is an active DHCP server, DO NOT select “wan” or “wan6” as that’s the upstream interface for Internet connection only

Читайте также:  Интернет аптека фармакон нет

Using the SSH command line

This is not a complete howto on how to create a fine tuned Wi-Fi network on the command line.
It just shows you the important steps to initially set the basics for properly enabling the Wi-Fi on the command line, to meet the legal regulations of your country:

Execute uci show wireless to see all the wireless configurations and how many Wi-Fi chips (called “radio” in the config) there are on the device. Identify the radio number (0, 1, 2, etc) that are you aiming to. E.g., radio0 , radio1 , radio2 , radioX .

Find out your country in a list of ISO/IEC 3166 alpha2 country codes. There is a list in the Wikipedia article about ISO 3166-1 alpha-2.

Execute uci set wireless.radioN.country=’XX’ to set the country code XX for each (N = 0, 1, 2) radio devices your router may have.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website. OK More information about cookies

Self-registration in the wiki has been disabled.
If you want to contribute to the OpenWrt wiki, please post HERE in the forum or ask on IRC for access.

Except where otherwise noted, content on this wiki is licensed under the following license:
CC Attribution-Share Alike 4.0 International

Источник

Openwrt нет интернета через wifi

Для первого теста быстрого доступа в Интернет: Если у вас есть существующий маршрутизатор, подключите порт WAN вашего устройства LEDE к порту LAN этого маршрутизатора и подтвердите подключение к Интернету вашего устройства LEDE со следующими шагами:

В графическом интерфейсе администратора светодиодов LEDE перейдите в раздел « Сеть → Диагностика» и нажмите кнопку «ping»

Читайте также:  Точка доступа мобильный интернет yota

или, если вы используете командную строку LEDE SSH , вы можете использовать команду ping lede-project.org

При использовании вашего устройства LEDE в качестве точки доступа WiFi не забудьте сначала установить код страны в конфигурации Wi-Fi, чтобы правильно соответствовать правовому регулированию вашей страны WiFi!, например, см. здесь первую базовую настройку WiFi.

Устранение неполадок при выполнении первых шагов с новым устройством LEDE:

Если вы блеснули разработкой/снимок микропрограммы Lede, сначала нужно вручную включить веб — администратора GUI : разработка руководство по установке. Или проверьте результат создания снимков с помощью SSH -подключения к вашему устройству LEDE IP 192.168.1.1

Вы можете обратиться к разделу устранения неполадок в Руководстве Пользователя, если вы считаете, что сброс настроек LEDE может помочь.

Вы можете ознакомиться с Installing and Using LEDE forum section, если что-то пошло не так. Укажите конкретные сведения о своем устройстве и то, что вы сделали до сих пор, и то, что вы попытались исправить.

Не беспокойтесь, если Wi-Fi 5 ГГц , похоже, не запускается сразу после его включения. Он может быть занят сканированием на 1-10 минут для метеорологического радиолокатора, см.Базовую настройку Wi-Fi для получения дополнительной информации.

Обратите внимание, что вы всегда можете запустить logread в командной строке SSH , чтобы получить более полное представление о том, что в данный момент делает устройство, или о диагностике любых проблем.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website. OK More information about cookies

Self-registration in the wiki has been disabled.
If you want to contribute to the OpenWrt wiki, please post HERE in the forum or ask on IRC for access.

Except where otherwise noted, content on this wiki is licensed under the following license:
CC Attribution-Share Alike 4.0 International

Источник

Оцените статью
Adblock
detector