pvlan                                                                                                           
primary vlan isolated vlan community vlan promiscuouc port
vlan 20
private-vlan primary
exit
vlan 500
private-vlan isolated
exit
vlan 501
private-vlan community
exit
vlan 20
private-vlan association 500-501
end
int g0/1
switchport mode private-vlan host
switchport private-vlan host-association 20 500
int g0/2
switchport mode private-vlan promiscuous
switchport private-vlan mapping 20 add 500-501
int vlan 20
private-vlan mapping 500-501