Example of interfaces settings for switch SW1 (fig. 23)
promiscuous port– interface gigabitethernet 1/0/4
isolated port- gigabitethernet 1/0/1
community port– gigabitethernet 1/0/2, 1/0/3.
interface gigabitethernet 1/0/1
switchport mode host
description Isolate
switchport forbidden default-vlan
switchport private-vlan host-association 100 201
exit
!
interface gigabitethernet 1/0/2
switchport mode host
description Community-1
switchport forbidden default-vlan
switchport private-vlan host-association 100 202
exit
!
interface gigabitethernet 1/0/3
switchport mode host
description Community-2
switchport forbidden default-vlan
switchport private-vlan host-association 100 202
exit
!
interface gigabitethernet 1/0/4
switchport mode promiscuous
description to_Router
switchport forbidden default-vlan
switchport private-vlan mapping 100 add 201-202
exit
!
interface tengigabitethernet 1/0/1
switchport mode trunk
switchport trunk allowed vlan add 100,201-202
description trunk-sw1-sw2
switchport forbidden default-vlan
exit
!
interface vlan 100
name primary
private-vlan primary
private-vlan association add 201-202
exit
!
interface vlan 201
name isolate
private-vlan isolated
exit
!
interface vlan 202
name community
private-vlan community
exit