VLAN Commands 817
console(config)# vlan 1
console(config-vlan-1)#vlan association mac 0001.0001.0001
vlan association subnet
Use the vlan association subnet command in VLAN Config mode to
associate a VLAN to a specific IP-subnet. Only packets with a matching
source IP address are placed into the VLAN.
Syntax
vlan association subnet
ip-address subnet-mask
no vlan association subnet
ip-address subnet-mask
•
ip-address
— Source IP address. (Range: Any valid IP address)
•
subnet-mask
— Subnet mask. (Range: Any valid subnet mask)
Default Configuration
No assigned ip-subnet.
Command Mode
VLAN Config mode
User Guidelines
This command has no user guidelines.
Example
The following example associates the 192.168.0.xxx IP address with VLAN ID
1.
console(config)# vlan 1
console(config-vlan-1)#vlan association subnet 192.168.0.0 255.255.255.0
vlan database
Use the vlan database command in Global Configuration mode to enter the
VLAN database configuration mode.
2CSPC4.X8100-SWUM102.book Page 817 Friday, March 15, 2013 8:56 AM