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. And see here for current known issues.

New Member

Layer 2 and layer 3 switch

ello everyone,

Can any one explain the below terms to me?

How to identify of find whether the switch is layer 3 switch or layer 2 switch?

For example, If i have one cisco switch,then how i can idendify is it a layer 3 or layer 2 switch?.Is there any command we can execute in the switch or is there any term we need to serach in the switch config to identify this.Please explain....i am blasting my head for the answer.... 

1 ACCEPTED SOLUTION

Accepted Solutions
Silver

Layer 2 and layer 3 switch

As such there is no command which will give an output mentioning the switch is layer 2 or layer 3. Its the operational functionality which determines if a switch is L3 compatible. For example....

Enable routing on the switch by using the ip             routing command.

Switch(config)#ip routing

Check the show running-configuration.                 Verify whether ip routing is enabled. 

hostname Switch
!
!
ip subnet-zero
ip routing

Regards,

Sunil.

If you think the post was helpful, please do not forget to mark it as Answered.

Regards, Sunil Khanna
3 REPLIES
Silver

Layer 2 and layer 3 switch

As such there is no command which will give an output mentioning the switch is layer 2 or layer 3. Its the operational functionality which determines if a switch is L3 compatible. For example....

Enable routing on the switch by using the ip             routing command.

Switch(config)#ip routing

Check the show running-configuration.                 Verify whether ip routing is enabled. 

hostname Switch
!
!
ip subnet-zero
ip routing

Regards,

Sunil.

If you think the post was helpful, please do not forget to mark it as Answered.

Regards, Sunil Khanna
New Member

Re: Layer 2 and layer 3 switch

Thanks a lot Sunil Ji,Now am clear.But i have one more question from your answer.

1.The command IP ROUTING is enabled by default in all layer 3 switches or we have have to enable it manually.

2.If i want to configure the static default route using the command ip route 0.0.0.0 0.0.0.0 x.x.x.x then is it mandatory to enable ip routing.

Hall of Fame Super Silver

Layer 2 and layer 3 switch

While ip routing is enabled by default on routers you will find that on switches it is not enabled by default. If you want the switch to do layer 3 forwarding/routing you must enable ip routing.

This also helps to answer your second question. If you configure the static default route then you want the switch to do layer 3 forwarding/routing and you must enable ip routing.

HTH

Rick

1064
Views
0
Helpful
3
Replies