SVI Autostate Exclude

Configuring SVI Autostate Exclude

Configuring SVI autostate exclude on an access or trunk port in an SVI excludes that port in the calculation of the status of the SVI (up or down line state) even if it belongs to the same VLAN. When the excluded port is in the up state, and all other ports in the VLAN are in the down state, the SVI state is changed to down.

At least one port in the VLAN should be up and not excluded to keep the SVI line state up. You can use this command to exclude the monitoring port status when determining the status of the SVI.

Beginning in privileged EXEC mode, follow these steps to exclude a port from SVI state-change calculations:

Command Purpose
Step 1
configure terminal
Enter global configuration mode.

Step 2
interface interface-id
Specify a Layer 2 interface (physical port or port channel), and enter interface configuration mode.

Step 3
switchport autostate exclude
Exclude the access or trunk port when defining the status of an SVI line state (up or down)

Step 4
Return to privileged EXEC mode.

Step 5
show running config interface interface-id

show interface interface-id switchport
(Optional) Show the running configuration.

Verify the configuration.

Step 6
copy running-config startup-config
(Optional) Save your entries in the configuration file.

This example shows how to configure an access or trunk port in an SVI to be excluded from the status calculation:

Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface gigabitethernet0/2
Switch(config-if)# switchport autostate exclude
Switch(config-if)# exit


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s