cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
834
Views
15
Helpful
5
Replies

How to exclude RFC1918 IP addresses in #Show IP Inter Brief Command?

bravealikhan
Level 1
Level 1

Hi,

Is there any way I could exclude RFC1918 addresses in my #Show IP Interface Brief Commend to just see what interfaces keeps Public IP Addresses?

 

Thanks

 

 

1 Accepted Solution

Accepted Solutions

Hello,

I don't have a live prompt available right now for testing, but I think the syntax should be something like below:

show ip int brief | exc 10|172|192

View solution in original post

5 Replies 5

balaji.bandi
Hall of Fame
Hall of Fame

not that i am aware cisco have that command reference on box, you can redirect the output and do some script to get output what you looking

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hello,

I don't have a live prompt available right now for testing, but I think the syntax should be something like below:

show ip int brief | exc 10|172|192

Thanks Georg, I used the same  

 

But it will also exclude lots of public IPs. Everything where these numbers are not in the first octets. And even in the first octets it would exclude 172.0.x.y to 172.15.x.x and 172.32.x.y+

This would be my suggestion:

sh ip int brie | e una|_10\..*\..*\.|_172\.(1[6-9]|2[0-9]|3[01])\..*\.|192\.168\..*\.

 

Awesome, thanks..