Administrator Guide

Layer 2 Switching Commands 803
interface vlan
Use the interface vlan command in Global Configuration mode to enable L3
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 N1100-
ON/N1500/N2000/N2100-ON Series switches. However, VLAN routing
interfaces do 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, N3100-ON, and N4000 Series switches.
DHCP is enabled on VLAN 1 by default for the N1100-
ON/N1500/N2000/N2100-ON switches. The N1100-ON does not support
routing.
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