Switching

SVI Autostate

Tony Mattke · 2011.03.07 · 2 min read

Switch Virtual Interfaces, or SVIs on Cisco IOS use a feature called autostate to determine the interface availability. By default an SVI will show an up/down (Status / Protocol) for an SVI unless it’s VLAN exists in the VLAN database and there is one switch port, either trunk or access, in that VLAN not only in an up/up state but also not blocked by spanning tree. So if you were to simply turn up an SVI with an IP address, that interface would not be reachable until those conditions are met. For more information reference the Understanding SVI Autostate Exclude section of this document.

Example
text
Switch(config)# vlan 100
Switch(config-vlan)# interface vlan100
Switch(config-if)# ip address 192.168.100.1 255.255.255.0
Switch(config-if)# end
Switch# show ip interface brief | exclude unassigned
Interface              IP-Address      OK? Method Status                Protocol
Vlan100                 192.168.100.1    YES manual up                    down

Switch(config)# interface fa0/1
Switch(config-if)# switchport access vlan 100

Switch(config-if)#
LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan100, changed state to up

In most situations this is the desired result, but there may be cases where you wish to override this behavior. On some platforms Cisco includes the (undocumented last I checked…) option to disable the autostate feature with the vlan interface command no autostate. This disables the autostate calculation and makes the SVI interface permanently active. Unfortunately, I’ve yet to see this available on anything but routers. Another option allows you to remove individual ports from the autostate calculation using the switchport autostate exclude interface configuration command.

More in Switching
comments powered by Disqus

Related Posts

2010.05.22 Switching 1 min read

Measuring Cable Lengths on a Catalyst Switch

A while back, I was playing on a 3750 switch in a customers lab and came across something I’ve never seen before. It seems that some Cisco switches have a built in Time-domain reflectometer, or TDR.

2011.09.26 Fundamentals 2 min read

BPDU – Blog Post Data Unit?

My most recently collection of interesting bits of data found out on the blogsphere/internets. Due to my lack of time, I’ve decided to recycle what I find out on the ‘net and share it here.

2011.11.03 Switching 3 min read

NEC and ProgrammableFlow Switching

NEC is currently the only Vendor that is shipping an OpenFlow enabled product today. So naturally, their presentation led off with a message about what they’re bringing to the market.