Is there any way to see on what ports a Cisco router is listening to just like a "netstat -an" on UNIX would do. I could easily do a portscan to give me this report but would prefer having the information through a show command.
Solved! Go to Solution.
On newer IOS you can type a command to get a full output of ports and services. You must be running 12.4(x)T or newer, which includes the 15.x train. I don't think this command has been ported to switches yet.
show control-plane host open-ports
You will get an ouput similiar to the info below. I am not sure why, but telnet shows up even though we have telnet disabled via the 'line vty' configuration.
|ROUTER#sh control-plane host open-ports|
|Active internet connections (servers and established)|
|Prot||Local Address||Foreign Address||Service||State|
|tcp||*:15074||10.6.6.6:49||IOS host service||ESTABLIS|
|tcp||*:64583||10.2.2.2:49||IOS host service||ESTABLIS|
|udp||*:54084||10.7.7.7:162||IOS host service||ESTABLIS|
Thanks about your valuable response !
This commands are only available on Cisco routers, tell me the command for
Cisco ASA / PIX and switches ?