cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
584
Views
20
Helpful
3
Replies

Very Basic Question in Routing and Switching

Aswin S
Level 1
Level 1

I have given an IP to SSH. After logging IN, how to find that the device I have logged into is a switch or Router?

Any checklist available to find this?

1 Accepted Solution

Accepted Solutions

mlund
Level 7
Level 7

Hi

The problem with show version is that it gives you the model.

But if it is a switch, there are many switches that can be configured to do routing.

In my sense, it is then a router ( or maybe a L3 switch). If You do show ip route, You will get different result if it is a switch without routing configured, than You get if it is a switch with routing or a real router.

In a switch it look similar to this

host#show ip route

Default gateway is x.x.x.x

In a switch with routing it can be like this

host#show ip route

IP Route Table for VRF "default"

/Mikael

View solution in original post

3 Replies 3

ecsnnsls
Level 1
Level 1

Hi @Aswin S ,

You can use the command "show version" and get to know the model of the device.

Another command is "show inventory".

HTH.

balaji.bandi
Hall of Fame
Hall of Fame

show version or show inventory -gives you device information on most of the devices.

 

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

mlund
Level 7
Level 7

Hi

The problem with show version is that it gives you the model.

But if it is a switch, there are many switches that can be configured to do routing.

In my sense, it is then a router ( or maybe a L3 switch). If You do show ip route, You will get different result if it is a switch without routing configured, than You get if it is a switch with routing or a real router.

In a switch it look similar to this

host#show ip route

Default gateway is x.x.x.x

In a switch with routing it can be like this

host#show ip route

IP Route Table for VRF "default"

/Mikael

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: