From wikistone
Jump to: navigation, search
 
Line 51: Line 51:
 
  switchport
 
  switchport
 
  switchport private-vlan association mapping 200 201,202  
 
  switchport private-vlan association mapping 200 201,202  
−
  switchport mode private-vlan promiscuous
+
  switchport mode private-vlan promiscuous</pre>
−
!</pre>
+
 
 +
.

Latest revision as of 01:02, 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

.