I am trying to understand how the ping command works in a situation like this:
Host A IPv6 address: 2001:A::A (MAC address AA-BB-CC-00-11-22)
Host B Ipv6 address: 2001:B::B (MAC address 22-44-66-00-EE-DD)
These two hosts are connected to a router, it has one interface for each different prefix, for example host A is connected to router's interface 2001:A::1 (MAC 77-88-99-00-DD-22) and host B is connected to router's interface 2001:B::1 (MAC 11-66-AA-00-33-88).
Let's assume that the caches on all devices are empty, router included. What should be the consequence of a ping command from A to B? ping 2001:B::B
1) host A does a router solicitation for its default gateway (A needs the MAC)
2) router advertisement from router to host A
3) icmp echo request from A to router (from A's MAC to router's MAC)
4) does the router need to perform a neighbor discovery in order to find the MAC address of B or not?
Everything else is a consequence of point 4.