cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1348
Views
0
Helpful
3
Replies

Layer 2 and layer 3 switch

sathyasav
Level 1
Level 1

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

SunilKhanna
Level 1
Level 1

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

View solution in original post

3 Replies 3

SunilKhanna
Level 1
Level 1

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

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.

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

HTH

Rick
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: