Octet

An SVI shows up/down. Why, and what is autostate?

Show the answer

Say this first

An SVI comes up only when its VLAN exists in the VLAN database, the SVI is not shut down, and at least one layer 2 port in that VLAN is up and forwarding in spanning tree. That last rule is autostate. With no active ports the SVI shows up/down, its connected route is withdrawn and the switch stops advertising the subnet, which is what you want when nothing in the VLAN can be reached.

Go deeper

Output
DSW1# show ip interface brief | include Vlan
Vlan10                 10.10.0.2       YES NVRAM  up                    up
Vlan30                 10.30.0.2       YES NVRAM  up                    down

Checklist for a down SVI

  1. Does the VLAN exist? show vlan id 30. On IOS, creating interface Vlan30 does not create VLAN 30.
  2. Is any access port in VLAN 30 up? show interfaces status vlan 30.
  3. Is VLAN 30 allowed, active and forwarding on some trunk? show interfaces trunk.
  4. Is spanning tree blocking every port in VLAN 30 on this switch?
  5. Is the SVI itself shut? That shows administratively down instead.

Excluding ports from the calculation

switchport autostate exclude on a port stops it from counting, for example a SPAN destination or a monitoring port that should not keep a VLAN's SVI alive. NX-OS can turn autostate off per SVI with no autostate.

Traps

  • Creating the SVI and assuming the VLAN exists. Check show vlan on the same switch.
How did you do?