cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
796
Views
0
Helpful
2
Replies

Layer 2 aile difnd 3 devices

vishalpatil86
Level 1
Level 1

HI,

while differentiating layer 2 and layer 3 device, it is said that layer 2 is based on mac address and layer 3 on IP.

But switch works on IP address, den how can we say that switch is layer 2 device?

2 Replies 2

cadet alain
VIP Alumni
VIP Alumni

Hi,

There are indeed L3 switches which can operate at L3 and above but a L2 switch only cares about L2 headers to forward unlike a L3 device which looks at L3 headers.

Regards.

Alain.

Don't forget to rate helpful posts.

Joseph W. Doherty
Hall of Fame
Hall of Fame

Disclaimer


The  Author of this posting offers the information  contained within this  posting without consideration and with the  reader's understanding that  there's no implied or expressed suitability  or fitness for any  purpose.  Information provided is for informational  purposes only and  should not be construed as rendering professional  advice of any kind.   Usage of this posting's information is solely at  reader's own risk.


Liability Disclaimer


In  no event shall Author be liable for any damages  whatsoever (including,  without limitation, damages for loss of use, data  or profit) arising  out of the use or inability to use the posting's  information even if  Author has been advised of the possibility of such  damage.


Posting

while differentiating layer 2 and layer 3 device, it is said that layer 2 is based on mac address and layer 3 on IP.

Generally, that's correct.

But switch works on IP address, den how can we say that switch is layer 2 device?

That's not a given.

Actually switching is how the process of forwarding cells, frames and/or packets, etc., is performed.  (NB: the term also extends beyond data networking, e.g. a telephone switch.)  Since this method is most common at L2, devices that do it are commonly called just switches.  Devices that perform this process other than L2 often get an adjective to clarify, e.g. L3 switch or multilayer switch.