CLI Guide

Table Of Contents
Layer 2 Switching Commands 862
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/N2200-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-ON and N3100-ON Series switches.
DHCP is enabled on VLAN 1 by default for the N1100-
ON/N1500/N2000/N2100-ON/N2200-ON switches. The N1100-ON does not
support routing.
Command Mode
VLAN Configuration or Global Configuration modes
User Guidelines
Assigning an IP address to a VLAN interface enables Layer 3 on the VLAN
interface. If IP routing is globally enabled and an IP address is assigned, the
router will route packets to and from the VLAN. When an interface is
enabled for routing using the interface vlan command, the port will no longer
be operationally enabled as a protected port on the interface.
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