Junos devices learn about MAC addresses by examining the source MAC address of frames received on an interface and then storing these MAC addresses in the MAC address table (also known as the forwarding database) along with the interface on which the traffic was received.
[References:, Understanding Learning and Forwarding, Juniper TechLibrary, MAC Address Table Processing, Juniper TechLibrary, ]
Submit