« Book Review: Voice over IP Security | Main | Implementing QoS on PIX/ASA »

September 18, 2008

Ah...Witty Use of Show IP Interface Brief...

Ivan Pepelnjak of Cisco IOS Hints and Tricks blog came up with even a more concise use of show ip interface brief:

To display IP addresses assigned to router's interfaces (excluding interfaces with no IP address) use show ip interface brief | exclude unassigned command.

Here is a sample printout:

C1#show ip int brief | excl unassigned  
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 172.16.0.1 YES NVRAM up up
Serial1/0 10.0.7.17 YES NVRAM up up
Loopback0 10.0.1.1 YES NVRAM up up
Tunnel0 192.168.0.1 YES manual up up

You could define an alias to create a new IOS command generating this printout, for example, alias exec ipconfig show ip interface brief | exclude unassigned.

Very nice...


Posted by JC at September 18, 2008 9:42 AM

Trackback Pings

TrackBack URL for this entry:
http://www.cioara.org/cgi-bin/mt-tb.cgi/300

Comments

Nice,

Great Tip but I have just grown used to using "show protocols" over show ip interface brief for 1 simple reason, show protocols shows the subnet mask information. I know it may seem trivial but one more thing you can eliminate when you are troubleshooting.

Posted by: Ivan Barreda at September 18, 2008 9:25 PM

In HSRP configured systems I like also "sh standby brief". Looks quite the same as above.

Posted by: Mathias at September 19, 2008 11:25 AM

What is METHOD in SH IP INT BRIEF command output?
what is the significance of NVRAM / TFTP

Posted by: Mak at October 22, 2008 2:23 AM

Dear Guyz,

I have a router 1841, the moment when i bought this router they told me that this support VPN but when i type Crypto it doesnt recognize, could you please guide me the exact IOS version and from where i can get that IOS,

Thanks and regards

Kamal

Faiq#sh ver
Cisco IOS Software, 1841 Software (C1841-IPBASE-M), Version 12.4(1c), RELEASE SO
FTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by Cisco Systems, Inc.
Compiled Tue 25-Oct-05 17:10 by evmiller

ROM: System Bootstrap, Version 12.4(13r)T, RELEASE SOFTWARE (fc1)

Faiq uptime is 0 minutes
System returned to ROM by power-on
System image file is "flash:c1841-ipbase-mz.124-1c.bin"

Cisco 1841 (revision 7.0) with 114688K/16384K bytes of memory.
Processor board ID FCZ1134312N
2 FastEthernet interfaces
1 Serial(sync/async) interface
DRAM configuration is 64 bits wide with parity disabled.
191K bytes of NVRAM.
31360K bytes of ATA CompactFlash (Read/Write)

Configuration register is 0x2102

Posted by: Kamal at October 28, 2008 11:50 AM

Post a comment




Remember Me?

(you may use HTML tags for style)