cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5172
Views
10
Helpful
9
Replies

Easy to only show SVI Interfaces without having to 'sh run'

romanroma
Level 1
Level 1

Is there an easy way to only show Vlan Interfaces that have an IP addresses applied to them aka SVI? Currently I am doing a  'sh run'; however, I feel as if there might be a better way.

 

My hardware is a mixture of NX-OS and Cat.

 

 

Thank you

9 Replies 9

balaji.bandi
Hall of Fame
Hall of Fame

show ip interface brief | in  up - is this work for you ?

 

show ip interface brief  | in Vlan  - nexus works

BB

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

How to Ask The Cisco Community for Help

Still working through some syntex, but it appeared to work on my nexus solution.

Reza Sharifi
Hall of Fame
Hall of Fame

On Nexus platforms, you can use for example:

sh int vlan 10

or

if you want to see multiple vlans

sh int vlan 10-15

 

On catalyst

sh run int vlan10

 

HTH

 

romanroma
Level 1
Level 1

I should have put - "If you do not know what vlans have svi interfaces".

 

I will try all of your suggestions on Monday.

 

Thank you

Hello,

 

what about:

 

show ip int brief | exclude unassigned

Worked on CAT.... or so I think it is showing me what I needed.
+1

julian.bendix
Level 3
Level 3

Hi!
On Cisco Catalyst (IOS and IOS-XE) I am not aware that you can really limit the output to just SVIs with IP addresses.. by default ;) 
You can only limit the output to see ANY interfaces with an IP address configured:

# show ip interface brief | exclude unassigned

However on the Nexus we are better off :)
NX-OS let's you use grep (Unix command) by default.

On the Catalyst you have to enable shell processing to be able to do the same!
Enabling shell processing is completely harmless - you can do it anytime.
It just enables you to use a few extra commands which you can not use per default:

# conf t
(conf)# shell processing full
(conf)# end
# show ip interface brief | grep -v unassigned | grep Vlan

Hope that helps :)
Let me know what you think.

Best regards
Juls

Hi Julian.bendix

 

I just read about 'enable shell processing', and noticed it was introduced in 15.x. Is there any security issues I would have to worry about turning this on? Do you know why Cisco did not enable this by default with the new track?

 

Thank you.

Hey @romanroma ,

 

no it just enables you to use a couple extra commands, like some commands that you are used to from Unix :)

There is also another possibilty, which enables shell processing just for one session, and not globally:

 

#terminal shell 

This command in privileged mode does the same as enabling "shell processing full" in global config mode.
But it is only active for the current login session, as soon as you log out, it is deactivated again :)

No concern there in my point of view.

Hope this was helpful, let me know what you think!

Julian

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: