How do IP addresses work on Layer 2 switches?

How do IP addresses work on Layer 2 switches?

How does an IP address work on a Layer 2 switch?

    Requires Free Membership to View

    By submitting your registration information to SearchNetworking.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchNetworking.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

Layer 2 switches can "read" only Layer 2 information, which means they can understand the source and destination MAC address of a frame, but are unable to process any Layer 3 (IP header) information.

When a Layer 2 switch receives a frame, it will lookup its MAC address table and forward the frame out the correct port, based on the frame's destination MAC address.

Layer 3 switches work in a similar way, but are also able to process Layer 3 information effectively. This means they can perform IP routing between subnets or virtual LANs (VLANs).

For more information:
Read Chris Partsenidis' article on switches and bridges.

This was first published in November 2007