How to find IP address/en: различия между версиями

Материал из Wiren Board
(Новая страница: «How to find out the IP address of the controller»)
 
 
(не показано 19 промежуточных версий 3 участников)
Строка 1: Строка 1:
<languages/>
<languages/>
[[File:Web ip.png|400px|thumb|IP-адреса удобно смотреть в веб-интерфейсе, подключившись к созданной контроллером Wi-Fi точке доступа]]
{{DISPLAYTITLE: How to find the IP address of the Wiren Board controller}}
[[File:Web ip.png|400px|thumb|IP addresses can be conveniently viewed in the web interface by connecting to the access point created by the Wi-Fi controller]]


== Какие IP-адреса есть у контроллера ==
==Via WiFi==
The controller creates a Wi-Fi hotspot and we can connect to it:
* Open the list of Wi-Fi hotspots on your laptop or phone.
* Select an access point named <code>WirenBoard-XXXXXXXX</code> from the list. Where XXXXXXXX is the serial number of the controller.


У контроллера может быть несколько IP-адресов, потому что он может подключаться к сетям несколькими способами:
When connected via Wi-Fi, the controller will be available at '''[http://192.168.42.1 192.168.42.1]'''.
*через Ethernet - по умолчанию получает IP-адрес у роутера по DHCP,
*через Wi-Fi - по умолчанию создаёт точку доступа, где у него фиксированный адрес ''192.168.42.1'',
*через GPRS.
Соответственно, у контроллера может быть до трёх IP-адресов. Чтобы зайти на контроллер, используя IP-адрес, полученный интерфейсом Ethernet контроллера, нужно быть в той же сети, к которой контроллер подключён через Ethernet. Зайти на контроллер по адресу, полученному интерфейсом GPRS, практически никогда нельзя - операторы сотовой связи обычно выдают адреса из собственной сети, и зайти на них из Интернета нельзя - смотрите http://sirius.dn.ua/help/real-ip-address/ Однако у некоторых операторов возможно подключить специальную услугу.


By default, no password is required to connect to the controller via Wi-Fi, but you can change this.


==Способ 1==
== IP addresses of the controller==


Контроллер по умолчанию создаёт Wi-Fi сеть ''WirenBoard'' без пароля. Подключитесь к ней, в ней адрес контроллера всегда '''192.168.42.1'''. В веб-интерфейсе зайдите в раздел ''Devices'' - в нём показано, какие IP-адреса контроллер получил по Ethernet и GPRS.
A controller can have multiple IP addresses because it can connect to networks in multiple ways:
*via Ethernet - by default, receives an IP address from the router via DHCP,
*via Wi-Fi - by default creates an access point where it has a fixed address ''192.168.42.1'',
*via GPRS.
To log into the controller using the IP address obtained by the controller's Ethernet interface, you must be on the same network to which the controller is connected via Ethernet.


==Способ 2==
It is almost never possible to access the controller at the address received by the GPRS interface - cellular operators usually issue [https://help.keenetic.com/hc/ru/articles/213965789-%D0%92-%D1%87%D0%B5%D0%BC-%D0%BE%D1%82%D0%BB%D0%B8%D1%87%D0%B8%D0%B5-%D0%B1%D0%B5%D0%BB%D0%BE%D0%B3%D0%BE-%D0%B8-%D1%81%D0%B5%D1%80%D0%BE%D0%B3%D0%BE-IP-%D0%B0%D0%B4%D1%80%D0%B5%D1%81%D0%B0 are "gray" IP addresses] and cannot be accessed from the Internet


[[File:Ifconfig ip.png|400px|thumb|IP-адреса можно посмотреть, подключившись к консоли через [[Debug UART|Debug UART]]]]
==Via debug port==
Подключитесь к контроллеру через отладочный порт [[Special:MyLanguage/Debug UART|Debug UART]]. После подключения введите логин и пароль (по умолчанию ''root'' - ''wirenboard''), затем введите команду
 
[[File:Ifconfig ip.png|400px|thumb|IP addresses can be viewed by connecting to the console via [[Debug UART|Debug UART]]]]
Connect to the controller via the debug port [[Special:MyLanguage/Debug UART|Debug UART]]. After connecting, enter your login and password (by default ''root'' - ''wirenboard''), then enter the command
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
ifconfig
ifconfig
</syntaxhighlight>
</syntaxhighlight>
Найдите вывод, соответствующий нужному интерфейсу:
Find the output corresponding to the desired interface:
*для Ethernet - <code>eth0</code>
*for Ethernet - <code>eth0</code>
*для Wi-Fi - <code>wlan0</code>
*for Wi-Fi - <code>wlan0</code>
*для GPRS - <code>ppp0</code>
*for GPRS - <code>ppp0</code>
Адрес будет написан после слов <code>inet addr:</code>.
The address will be written after the words <code>inet addr:</code>.
 


==Способ 3 (не подключаясь к контроллеру)==
==Through a router (not connecting to a controller)==


Если вы подключили контроллер по Ethernet или Wi-Fi к своему роутеру, то IP-адрес контроллера можно увидеть в веб-интерфейсе роутера. Обычно название пункта меню содержит слово ''DHCP''.
If you have connected the controller via Ethernet or Wi-Fi to your router, the IP address of the controller can be seen in the web interface of the router. Typically, the menu item name contains the word ''DHCP''.

Текущая версия на 20:57, 22 сентября 2022


IP addresses can be conveniently viewed in the web interface by connecting to the access point created by the Wi-Fi controller

Via WiFi

The controller creates a Wi-Fi hotspot and we can connect to it:

  • Open the list of Wi-Fi hotspots on your laptop or phone.
  • Select an access point named WirenBoard-XXXXXXXX from the list. Where XXXXXXXX is the serial number of the controller.

When connected via Wi-Fi, the controller will be available at 192.168.42.1.

By default, no password is required to connect to the controller via Wi-Fi, but you can change this.

IP addresses of the controller

A controller can have multiple IP addresses because it can connect to networks in multiple ways:

  • via Ethernet - by default, receives an IP address from the router via DHCP,
  • via Wi-Fi - by default creates an access point where it has a fixed address 192.168.42.1,
  • via GPRS.

To log into the controller using the IP address obtained by the controller's Ethernet interface, you must be on the same network to which the controller is connected via Ethernet.

It is almost never possible to access the controller at the address received by the GPRS interface - cellular operators usually issue are "gray" IP addresses and cannot be accessed from the Internet

Via debug port

IP addresses can be viewed by connecting to the console via Debug UART

Connect to the controller via the debug port Debug UART. After connecting, enter your login and password (by default root - wirenboard), then enter the command

ifconfig

Find the output corresponding to the desired interface:

  • for Ethernet - eth0
  • for Wi-Fi - wlan0
  • for GPRS - ppp0

The address will be written after the words inet addr:.

Through a router (not connecting to a controller)

If you have connected the controller via Ethernet or Wi-Fi to your router, the IP address of the controller can be seen in the web interface of the router. Typically, the menu item name contains the word DHCP.