10-20-2022 01:13 AM
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
Solved! Go to Solution.
10-21-2022 03:59 AM
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
10-20-2022 02:24 AM
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
10-21-2022 03:59 AM
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
10-22-2022 03:49 AM
Thanks Georg, I used the same
10-22-2022 08:48 AM
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\..*\.
10-23-2022 02:54 AM
Awesome, thanks..
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