Administrator Guide

Layer 2 Switching Commands 807
interface vlan
Use the interface vlan command in Global Configuration mode to enable
routing on a VLAN and enter VLAN Interface Configuration mode. Use the
no form of the command to disable routing on the VLAN.
Syntax
interface vlan {
vlan-id
}
no interface vlan {
vlan-id
}
vlan-id
—The ID of a valid VLAN (Range 1–4093).
Default Configuration
By default, Layer 3 is enabled on VLAN 1 on the N1500/N2000 Series
switches. However, VLAN 1 does not route packets until an IP address is
assigned to the VLAN and IP routing is globally enabled. DHCP and Layer 3
are not enabled on VLAN 1 by default for the N3000 and N4000 Series
switches. DHCP is enabled on VLAN 1 by default for the N1500/N2000
switches.
Command Mode
VLAN Configuration or Global Configuration modes
protocol group show vlan
association subnet
switchport mode vlan makestatic
protocol vlan group show vlan private-
vlan
switchport mode
dot1q-tunnel
vlan protocol group
protocol vlan group
all
switchport access
vlan
switchport mode
private-vlan
vlan protocol group add
protocol
show dot1q-tunnel switchport dot1q
ethertype (Global
Configuration)
switchport private-
vlan
vlan protocol group
name
show interfaces
switchport
switchport general
forbidden vlan
switchport trunk vlan protocol group
remove
2CSNXXX_SWUM204.book Page 807 Monday, January 25, 2016 1:25 PM