08-17-2009 12:28 PM - edited 03-06-2019 07:17 AM
Hi,
Do we have any command which show the
Interface name,IP address & subnet info at a time.
Thanks in advanced
08-17-2009 12:34 PM
show run | include interface | ip address
You might get some extra stuff though. There is no native command that I know of.
Hope that helps.
** you can add | exclude to remove the no ip address stuff-
show run | include interface | ip address | exclude no ip address
08-17-2009 12:35 PM
You can try show protocol, here is an example of the output.
Rack1R2#show protocols
Global values:
Internet Protocol routing is enabled
FastEthernet0/0 is up, line protocol is up
Internet address is 10.23.1.2/24
FastEthernet0/1 is administratively down, line protocol is down
Serial0/0/0 is up, line protocol is up
Serial0/0/0.203 is up, line protocol is up
Internet address is 10.2.2.2/24
Serial0/1/0 is administratively down, line protocol is down
Loopback0 is up, line protocol is up
Internet address is 10.22.0.2/24
HTH,
jerry
08-17-2009 12:41 PM
Hey Jerry,
I like that one especially when you | exclude down. Good one and worth some points.
08-17-2009 12:44 PM
Thank you Collin.
Regards,
jerry
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