cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

229
Views
0
Helpful
9
Replies
Highlighted
Beginner

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

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
Highlighted
VIP Mentor

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

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

 

show ip interface brief  | in Vlan  - nexus works

BB
*** Rate All Helpful Responses ***
Highlighted
Beginner

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

Still working through some syntex, but it appeared to work on my nexus solution.
Highlighted
Hall of Fame Expert

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

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

 

Highlighted
Beginner

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

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

Highlighted
VIP Mentor

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

Hello,

 

what about:

 

show ip int brief | exclude unassigned

Highlighted
Beginner

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

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

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

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

Highlighted
Beginner

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

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.

Highlighted
Beginner

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

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

Content for Community-Ad