Telnet_server example

Hi there!

By default, telnet_server has output like:

NETOPT_TX_END_IRQ not implemented by driver
main(): This is RIOT! (Version: 79287-lora_rak3172)
RIOT telnet example application
║telnet is entirely unencrypted and unauthenticated.║
║Do not use this on public networks.                ║
{"IPv6 addresses": ["fe80::a4de:1264:dac5:a42b"]}
All up, awaiting connection on port 23
Local shell disabled>

My goal is to connect PyTTY telnet and this node. Second node is gnrc_border_router. So, should I add a global IP to telnet_server node or to create a route in BR node…

I would be very grateful if someone tells basics about it.

You can add a static address by using the gnrc_ipv6_static_addr module. The address needs to be in the same prefix that is advertised by the border router, e.g.:

USEMODULE += gnrc_ipv6_static_addr

to give your node the address 2001:db8::2.

Unfortunately there is a bug in GNRC that causes the border router to send neighbor solicitations on the 6LoWPAN interface (it should only do so on the non-6lo interface) for addresses not in the neighbor cache. 6lo nodes will ignore those, so addresses not registered with the border router will be ignored.

As a workaround, you can cherry-pick bed34da from #16988.

1 Like