Configuring VLANs

Configuring a VLAN as a Routed SVI

 

Command or Action

Purpose

Step 3

switch(config-if)#switchport access vlan

Sets the access mode of the interface to the

 

vlan-id

specified VLAN.

This example shows how to configure an Ethernet interface to join VLAN 5:

switch# configure terminal switch(config)# interface ethernet 1/13 switch(config-if)# switchport access vlan 5

Configuring a VLAN as a Routed SVI

You can configure a VLAN to be a routed switch virtual interface (SVI).

Before You Begin

Install the Layer 3 license. For more information, see License and Copyright Information for Cisco NX-OS Software available at the following URL: http://www.cisco.com/en/US/docs/switches/datacenter/ sw/4_0/nx-os/license_agreement/nx-ossw_lisns.html.

Make sure you understand the guidelines and limitations of this feature. For information, see Guidelines and Limitations for SVIs.

Procedure

 

Command or Action

Purpose

Step 1

configure terminal

Enters global configuration mode.

Step 2

feature interface-vlan

Enables the creation of SVIs.

Step 3

interface-vlan vlan-id

Creates a VLAN interface (SVI) and enters

 

 

interface configuration mode.

Step 4

copy running-config startup-config

Copies the running configuration to the startup

 

 

configuration.

The following example shows how to configure a VLAN as a routed SVI:

switch# configure terminal switch(config)# feature interface-vlanswitch(config)# interface vlan 5 switch(config-if)# copy running-configstartup-configswitch(config-if)#

The following example shows how to remove the routed SVI function from a VLAN:

switch# configure terminal switch(config)# no interface vlan 5 switch(config-if)# copy running-configstartup-configswitch(config-if)#

Cisco Nexus 3000 NX-OS Layer 2 Switching Configuration Guide, Release 5.0(3)U3(1)

OL-26590-01

33

Page 47
Image 47
Cisco Systems N3KC3064TFAL3 Configuring a Vlan as a Routed SVI, Switchconfig-if# switchport access vlan, Configuration