05-23-2021 06:21 AM
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?
Solved! Go to Solution.
05-24-2021 03:26 AM
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
05-23-2021 07:05 AM
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.
05-23-2021 07:23 AM
show version or show inventory -gives you device information on most of the devices.
05-24-2021 03:26 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide