The layer 2 devices use the data link layer addresses.
Local delivery
Data Link Layer
They are defined in the OSI layer known as Data-Link.
Layer 2 data link layer
data link layer
At the Data Link Layer, computers use MAC (Media Access Control) addresses, which are unique identifiers assigned to network interfaces for communication on a local network. These addresses are typically 48 bits long and are represented in hexadecimal format. MAC addresses facilitate the delivery of data frames between devices on the same network segment, ensuring that data reaches the correct destination within a local area network (LAN).
The data link layer typically adds physical addresses (also known as MAC addresses) to its Protocol Data Unit (PDU) to ensure that data is delivered to the correct device on a local network. Additionally, it often includes a CRC (Cyclic Redundancy Check) for error detection, ensuring the integrity of the transmitted data. Logical addresses and the original data payload are not added at this layer; logical addressing is handled at the network layer above it.
LMI protocol, Invers ARP
The OSI model has seven layers whereby each layer has its function. The Data Link Layer is responsible for addressing data messages so that they reach their destination correctly.
The layer that filters packets based on MAC addresses is the Data Link layer, which is the second layer of the OSI model. This layer is responsible for node-to-node data transfer and handles error correction from the physical layer. Devices such as switches operate at this layer, using MAC addresses to forward frames to the correct destination within a local area network (LAN).
Layer 2 (Data Link Layer) http://compnetworking.about.com/cs/internetworking/g/bldef_bridge.htm
During the encapsulation process, the data link layer takes the network layer's packet and encapsulates it into a frame by adding a header and a footer. The header typically includes the source and destination MAC addresses, while the footer often contains a frame check sequence for error detection. This framing allows the data link layer to manage the physical transmission of data over the network medium, ensuring that frames are properly formatted for transmission. Ultimately, this process prepares the data for reliable delivery across the physical network.