Enabling Layer 3 routing for VLANs

Do the following to enable Layer 3 routing on a VLAN.

Procedure

  1. Enter global configuration mode.
    device# configure terminal
  2. Create a VLAN.
    device(config)# vlan 200
  3. Create a virtual Ethernet (VE), assign an IP address and mask, and enable the interface.
    device(config)# interface ve 200
    device(config-Ve-200)# ip address 10.2.2.1/24
    device(config-Ve-200)# no shutdown
    A VE interface can exist without a VLAN configuration, but it must be provisioned in the VLAN in order to be used.
  4. Enter the router-interface command and specify the VLAN.
    device(config-vlan-200)# router-interface ve 200