Configuring And Associating Vlans In A Private Vlan - Cisco Catalyst 3560-X Software Configuration Manual

Hide thumbs Also See for Catalyst 3560-X:
Table of Contents

Advertisement

Configuring Private VLANs

Configuring and Associating VLANs in a Private VLAN

Beginning in privileged EXEC mode, follow these steps to configure a private VLAN:
The private-vlan commands do not take effect until you exit VLAN configuration mode.
Note
Command
Step 1
configure terminal
Step 2
vtp mode transparent
Step 3
vlan vlan-id
Step 4
private-vlan primary
Step 5
exit
Step 6
vlan vlan-id
Step 7
private-vlan isolated
Step 8
exit
Step 9
vlan vlan-id
Step 10
private-vlan community
Step 11
exit
Step 12
vlan vlan-id
Step 13
private-vlan association [add | remove]
secondary_vlan_list
Step 14
end
Step 15
show vlan private-vlan [type]
or
show interfaces status
Step 16
copy running-config startup config
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
1-10
Purpose
Enter global configuration mode.
Set VTP mode to transparent (disable VTP).
Enter VLAN configuration mode and designate or create a VLAN that
will be the primary VLAN. The VLAN ID range is 2 to 1001 and 1006
to 4094.
Designate the VLAN as the primary VLAN.
Return to global configuration mode.
(Optional) Enter VLAN configuration mode and designate or create a
VLAN that will be an isolated VLAN. The VLAN ID range is 2 to 1001
and 1006 to 4094.
Designate the VLAN as an isolated VLAN.
Return to global configuration mode.
(Optional) Enter VLAN configuration mode and designate or create a
VLAN that will be a community VLAN. The VLAN ID range is 2 to
1001 and 1006 to 4094.
Designate the VLAN as a community VLAN.
Return to global configuration mode.
Enter VLAN configuration mode for the primary VLAN designated in
Step 2.
Associate the secondary VLANs with the primary VLAN.
Return to privileged EXEC mode.
Verify the configuration.
Save your entries in the switch startup configuration file. To save the
private-VLAN configuration, you need to save the VTP transparent
mode configuration and private-VLAN configuration in the switch
startup configuration file. Otherwise, if the switch resets, it defaults to
VTP server mode, which does not support private VLANs.
Chapter 1
Configuring Private VLANs
OL-25303-03

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 3750-x

Table of Contents