Thread border GW

Thread border gateway keeping the IP address of the sensor but inserting its MAC address in the IPv6 packet that are sent out. How we can get the sensor MAC addresses from Thread border gateway? or sensor's IPv6 address -MAC address relationship?

Have you tried to use $getnodesip shell command?, this instruction will send a Get Diagnostic /d/dq message asking for the IPv6 address list and the node will reply with a Get Diagnostic Answer /d/da containing its IPv6 addresses after receiving the instruction.