CLI example for a general PVLAN network
To configure the PVLANs shown in FigureĀ 96, enter the following commands.
device(config)# vlan 901 device(config-vlan-901)# untagged ethernet 1/3/5 to 1/3/6 device(config-vlan-901)# pvlan type community device(config-vlan-901)# exit device(config)# vlan 902 device(config-vlan-902)# untagged ethernet 1/3/9 to 1/3/10 device(config-vlan-902)# pvlan type isolated device(config-vlan-902)# exit device(config)# vlan 903 device(config-vlan-903)# untagged ethernet 1/3/7 to 1/3/8 device(config-vlan-903)# pvlan type community device(config-vlan-903)# exit device(config)# vlan 7 device(config-vlan-7)# untagged ethernet 1/3/2 device(config-vlan-7)# pvlan type primary device(config-vlan-7)# pvlan mapping 901 ethernet 1/3/2 device(config-vlan-7)# pvlan mapping 902 ethernet 1/3/2 device(config-vlan-7)# pvlan mapping 903 ethernet 1/3/2