From wikistone
(Created page with "==PVLAN== ===Private VLAN=== '''Types:''' * Primary * Community * Isolated '''Roles:''' * Promiscuous * Host ==Commands== # Create Primary VLAN and associate with Commun...") |
|||
| Line 15: | Line 15: | ||
==Commands== | ==Commands== | ||
| − | + | Put the switch in Transparent mode. | |
| − | + | <pre> | |
| − | + | vtp mode transparent</pre> | |
| + | Create Primary VLAN and associate with Community and/or Promiscuous VLANs. | ||
<pre> | <pre> | ||
| − | |||
| − | |||
| − | |||
| − | |||
vlan 200 | vlan 200 | ||
name Master | name Master | ||
private-vlan primary | private-vlan primary | ||
| − | private-vlan association 201-202 | + | private-vlan association 201-202</pre> |
| − | + | Create Community and Isolated VLANS. | |
| + | <pre> | ||
vlan 201 | vlan 201 | ||
name Community | name Community | ||
| Line 34: | Line 32: | ||
vlan 202 | vlan 202 | ||
name Isolated | name Isolated | ||
| − | private-vlan isolated | + | private-vlan isolated</pre> |
| − | + | Associate interfaces with PVLANs and set port types. | |
| + | <pre> | ||
int gig 1/0/1 | int gig 1/0/1 | ||
switchport | switchport | ||
Revision as of 00:55, 21 December 2012
PVLAN
Private VLAN
Types:
- Primary
- Community
- Isolated
Roles:
- Promiscuous
- Host
Commands
Put the switch in Transparent mode.
vtp mode transparent
Create Primary VLAN and associate with Community and/or Promiscuous VLANs.
vlan 200 name Master private-vlan primary private-vlan association 201-202
Create Community and Isolated VLANS.
vlan 201 name Community private-vlan community ! vlan 202 name Isolated private-vlan isolated
Associate interfaces with PVLANs and set port types.
int gig 1/0/1 switchport switchport private-vlan association host 200 201 switchport mode private-vlan host ! int gig 1/0/2 switchport switchport private-vlan association host 200 202 switchport mode private-vlan host ! ! ! promiscuous port (eg trunk to router) ! int gig 1/0/24 switchport switchport private-vlan association mapping 200 201,202 switchport mode private-vlan promiscuous !