Users Guide

Table Of Contents
834 VLANs
Configuring IP-Based VLANs
Use the following commands to associate an IP subnet with a configured
VLAN. The VLAN does not need to be configured on the system to associate
an IP subnet with it. However, the subnet VLAN must be configured on a port
in order for the system to map packets matching the IP address to the subnet
VLAN and to learn the associated MAC address on the subnet VLAN so that
packets addressed to the associated IP address are forwarded properly. Up to
256 VLAN-to-IP address associations can be created.
It is not necessary to assign IP addresses to VLANs in order to utilize subnet
associations. Untagged packets are switched into the subnet VLAN using the
defined subnet address and from the IP subnet VLAN using the learned MAC
addresses.
VLAN associations operate on untagged packets on access and trunk ports.
Tagged traffic is associated with the VLAN identified in the VLAN tag.
Command Purpose
configure Enter global configuration mode.
vlan
vlanid
Enter VLAN configuration mode.
vlan association subnet
ip-address subnet-mask
Associate an IP subnet with a VLAN.
ip-address
— Source IP address. (Range: Any valid IP
address)
subnet-mask
— Subnet mask. (Range: Any valid subnet
mask)
exit Exit to Global Config mode.
interface gi1/0/3 Enter Interface Config mode for gi1/0/3.
switchport mode trunk Configure gi1/0/3 as a trunk member of the subnet VLAN.
The Native VLAN is 1 but the port is a member of the
subnet VLAN.
exit Exit to Global Config mode.
interface gi1/0/4 Enter Interface Config mode for gi1/0/4.
switchport mode access Configure gi1/0/4 as an access port.
switchport access vlan
vlanid
Specify the subnet VLAN ID of which gi1/0/4 is an access
port member.