Cisco Systems EA6500 Manual De Usuario

Descargar
Página de 570
 
10-6
Catalyst 6500 Series Switch Cisco IOS Software Configuration Guide—Release 12.1 E
78-14099-04
Chapter 10      Configuring Private VLANs
Configuring Private VLANs
Primary Secondary Type              Interfaces
------- --------- ----------------- ------------------------------------------
202               primary
This example shows how to configure VLAN 303 as a community VLAN and verify the configuration:
Router# configure terminal 
Router(config)# vlan 303 
Router(config-vlan)# private-vlan community 
Router(config-vlan)# end 
Router# show vlan private-vlan 
Primary Secondary Type              Interfaces
------- --------- ----------------- ------------------------------------------
202               primary
        303       community 
This example shows how to configure VLAN 440 as an isolated VLAN and verify the configuration:
Router# configure terminal 
Router(config)# vlan 440 
Router(config-vlan)# private-vlan isolated 
Router(config-vlan)# end 
Router# show vlan private-vlan 
Primary Secondary Type              Interfaces
------- --------- ----------------- ------------------------------------------
202               primary
        303       community 
        440       isolated 
Associating Secondary VLANs with a Primary VLAN
To associate secondary VLANs with a primary VLAN, perform this task:
When you associate secondary VLANs with a primary VLAN, note the following syntax information:
  •
The secondary_vlan_list parameter cannot contain spaces. It can contain multiple comma-separated 
items. Each item can be a single private VLAN ID or a hyphenated range of private VLAN IDs.
  •
The secondary_vlan_list parameter can contain multiple community VLAN IDs.
  •
The secondary_vlan_list parameter can contain only one isolated VLAN ID.
  •
Enter a secondary_vlan_list or use the add keyword with a secondary_vlan_list to associate 
secondary VLANs with a primary VLAN.
Command
Purpose
Step 1
Router(config)# vlan primary_vlan_ID 
Enters VLAN configuration submode for the primary 
VLAN.
Step 2
Router(config-vlan)# private-vlan association 
{secondary_vlan_list | add secondary_vlan_list | 
remove
 secondary_vlan_list
Associates the secondary VLANs with the primary 
VLAN. 
Router(config-vlan)# no private-vlan association 
Clears all secondary VLAN associations. 
Step 3
Router(config-vlan)# end 
Exits VLAN configuration mode.
Step 4
Router# show vlan private-vlan [type
Verifies the configuration.