Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Layer2 and Layer3 Switches

What is the basic difference between Layer2 and Layer3 switch?

If we say that layer3 switch does the work of both switching and routing then why do we use routers?

Secondly, if we say layer2 switch is used for peer to peer communication and layer3 switch is for process to process communication.

What exactly peer to peer and process to process communications are in short?

9 REPLIES
Super Bronze

Re: Layer2 and Layer3 Switches

"What is the basic difference between Layer2 and Layer3 switch? "

One knows how to forward L2 traffic, e.g. Ethernet, the other L3 traffic, e.g. IP.

"If we say that layer3 switch does the work of both switching and routing then why do we use routers? "

Often L3 switches provide much higher forwarding rates than pure routers. This is usually accomplished by dedicated hardware for the former. However, the hardware also often limits other capabilities, both for hardware support, like types of interfaces, and software feature support beyond just forwarding L3 traffic.

For example compare the features of a 3560 L3 switch with any of the ISRs.

The distinction between the two, L3 switch vs. router, can blur on some equipment. Compare the 6500 with the 7600.

"Secondly, if we say layer2 switch is used for peer to peer communication and layer3 switch is for process to process communication.

What exactly peer to peer and process to process communications are in short?"

Sorry, don't really understand this question. Peer-2-peer and process-2-process can be conducted at either L2 or L3. Both L2 and L3 provide transport, L3 though, normally is routable. Support for peer-2-peer or process-2-process is usually accomplished in a higher "layer" than L2 or L3.

New Member

Re: Layer2 and Layer3 Switches

Joesph,

Does it mean that a cisco router can be replaced by a layer 3 switch for routing?

If not, what are the reasons?

Thanx a ton!

New Member

Re: Layer2 and Layer3 Switches

Also see this link for peer to peer n process to process communication on layer2 n layer 3 switch respectively.

http://www.geekinterview.com/question_details/24635

Super Bronze

Re: Layer2 and Layer3 Switches

There's confusion about peer-2-peer and process-2-process. For instance, mention is made of process-2-process using IP port numbers, but there are no IP port numbers, their likely thinking of IP's UDP or TCP protocols which do support port numbers.

Super Bronze

Re: Layer2 and Layer3 Switches

"Does it mean that a cisco router can be replaced by a layer 3 switch for routing?"

In some cases, yes.

"If not, what are the reasons? "

When you have a need for features not available on a comparable L3 switch. For instance, could be as simple as interface type. Most small L3 switches only support Ethernet interfaces, but even the small ISRs routers support, serial, ISDN, frame-relay, ATM, VPN, etc.

New Member

Re: Layer2 and Layer3 Switches

Thanx a ton friends!

Is it true that layer 3 switch doesn't support wan connection?

Is this the other reason not to replace router with layer 3 switch?

Super Bronze

Re: Layer2 and Layer3 Switches

"Is it true that layer 3 switch doesn't support wan connection? "

No, some do. Many don't

New Member

Re: Layer2 and Layer3 Switches

is it possible to convert a layer 2 switch to layer 3 switch?

Super Bronze

Re: Layer2 and Layer3 Switches

"is it possible to convert a layer 2 switch to layer 3 switch?"

Usually no, unless their software and/or hardware can be upgraded. Within the Cisco line, the 4500 chassis have supervisor modules that are L2 or L3.

842
Views
0
Helpful
9
Replies