6lbr
6lbr copied to clipboard
ping node through a ipv4 addr
hello I want to ping a node through ipv4 addr ,but it doesn't work. And now I can see sensors on the web through ipv4, but why i can't ping through it?How to access an IPv4 host from a node? where to config the node's destination address?
You can't ping a specific node using NAT64 as NAT64 relies on ports to do the address mapping and ICMP Echo does not have the concept of ports. Instead you could use a tcp check (using nmap) or a CoAP ping depending if there is a web server or a coap server on the node.
The second question is easier, nodes only use IPv6 addresses, so to access an IPv4 address you need to encapsulate it into an IPv6 address using the function ip64_addr_4to6()
from ip64-addr.h