Routing VLANs

You can configure some interfaces to support VLANs and other interfaces to support routing. You can also configure the switch to allow traffic on a VLAN to be treated as if the VLAN were a router interface.

When an interface is enabled for bridging (the default setting) rather than routing, all normal bridge processing is performed for an inbound packet, which is then associated with a VLAN. Its MAC destination address (MAC DA) and VLAN ID are used to search the MAC address table. If routing is enabled for the VLAN, and the MAC DA of an inbound unicast packet is that of the internal bridge-router interface, the packet is routed. An inbound multicast packet is forwarded to all ports in the VLAN, plus the internal bridge-router interface, if it was received on a routing VLAN.

Because an interface can belong to more than one VLAN, VLAN routing might be enabled for all of the VLANs on the interface, or for a subset. You can use VLAN routing to allow more than one physical port to reside on the same subnet. You can also use VLAN routing if a VLAN spans multiple physical networks, or if you require additional segmentation or security.

An interface can be either a VLAN interface or a routing interface, but not both. However, a VLAN interface can be part of a VLAN that functions as a routing interface.

Note: For more information about VLAN routing and a configuration example, see VLAN routing interface example configuration.

For more information, see the following sections: