Q: IOS有无类似"netstat -na"的命令 https://scz.617.cn/network/200806240946.txt 现在有个进程侦听在2323/TCP上,LISTEN状态,我想在console口上找出这个端口, 而不是动用端口扫描之类的手段。 A: scz@nsfocus 2008-06-24 09:46 已知比较接近的命令如下: show ip sockets show udp show tcp brief show tcp brief all show control-plane host open-ports 有些命令是高版本才支持的,有些命令只有低版本的执行效果如你所愿,自行测试确 定。 举例如下: R2610#show ip sockets Proto Remote Port Local Port In Out Stat TTY OutputIF 17 0.0.0.0 0 10.21.2.20 67 0 0 2211 0 2610#show tcp brief TCB Local Address Foreign Address (state) 81ED63B4 10.21.2.20.23 10.21.2.8.33642 ESTAB R2610#show tcp brief all TCB Local Address Foreign Address (state) 81ED63B4 10.21.2.20.23 10.21.2.8.33642 ESTAB 81CCB088 0.0.0.0.2323 *.* LISTEN R2610#show tcp brief all | inc LISTEN 81CCB088 0.0.0.0.2323 *.* LISTEN