> For the complete documentation index, see [llms.txt](https://ritka.gitbook.io/translate-book/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ritka.gitbook.io/translate-book/4.12.3-testirovanie-podklyucheniya.md).

# 4.12.3 Тестирование Подключения

Используйте команду ping, чтобы убедиться, что у вас есть базовое подключение между двумя компьютерами. С вашего компьютера выполните команду:

```
$ ping my_robot.local
```

что должно привести к следующему результату:

> PING my\_robot.local (192.168.0.197) 56(84) bytes of data.\
> &#x20;64 bytes from my\_robot.local (192.168.0.197): icmp\_req=1 ttl=64 time=1.65 ms\
> &#x20;64 bytes from my\_robot.local (192.168.0.197): icmp\_req=2 ttl=64 time=0.752 ms\
> &#x20;64 bytes from my\_robot.local (192.168.0.197): icmp\_req=3 ttl=64 time=1.69 ms

Введите Ctrl-C, чтобы остановить тест. Переменная icmp\_req подсчитывает пинги, в то время как переменная time указывает время обратного хода в миллисекундах. После остановки теста вы получите резюме, которое выглядит следующим образом:

> \---my\_robot.local ping statistics---\
> &#x20;3 packets transmitted, 3 received, 0% packet loss, time 2001ms rtt min/avg/max/mdev = 0.752/1.367/1.696/0.436 ms

В общем случае вы должны видеть потерю пакетов 0% и среднее время задержки около 5 мс.

&#x20;Теперь сделайте тест в другом направлении. Вызовите терминал на вашем роботе (или используйте ssh, если вы знаете, что он уже работает) и пропингуйте свой рабочий стол:

```
$ ping my_desktop.local
```

Еще раз вы должны увидеть 0% потери пакетов и короткое время поездки туда и обратно.&#x20;

**Примечание**: Если тест ping не проходит с ошибкой "неизвестный хост", попробуйте перезапустить avahi- процесс демона на машине, которая не отвечает на запросы:

```
$ sudo service avahi-daemon restart
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ritka.gitbook.io/translate-book/4.12.3-testirovanie-podklyucheniya.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
