Cli Example For Figure 7.18 - HP 9304m Installation And Getting Started Manual

Procurve routing switches
Table of Contents

Advertisement

Installation and Getting Started Guide
NOTE: You also can use MAC address filters to control the traffic forwarded into and out of the private VLAN.
USING THE CLI
To configure the ports in the primary VLAN to forward broadcast or unknown unicast traffic received from sources
outside the private VLAN, enter the following commands at the global CONFIG level of the CLI:
HP9300(config)# pvlan-preference broadcast flood
HP9300(config)# pvlan-preference unknown-unicast flood
These commands enable forwarding of broadcast and unknown-unicast packets to ports within the private VLAN.
To again disable forwarding, enter a command such as the following:
HP9300(config)# no pvlan-preference broadcast flood
This command disables forwarding of broadcast packets within the private VLAN.
Syntax: [no] pvlan-preference broadcast | unknown-unicast flood

CLI Example for Figure 7.18

To configure the private VLANs shown in Figure 7.18 on page 7-48, enter the following commands:
HP9300(config)# vlan 901
HP9300(config-vlan-901)# tagged ethernet 3/5 to 3/6
HP9300(config-vlan-901)# pvlan type community
HP9300(config-vlan-901)# exit
HP9300(config)# vlan 902
HP9300(config-vlan-902)# tagged ethernet 3/9 to 3/10
HP9300(config-vlan-902)# pvlan type isolated
HP9300(config-vlan-902)# exit
HP9300(config)# vlan 903
HP9300(config-vlan-903)# tagged ethernet 3/5 to 3/6
HP9300(config-vlan-903)# pvlan type community
HP9300(config-vlan-903)# exit
HP9300(config)# vlan 7
HP9300(config-vlan-7)# untagged ethernet 3/2
HP9300(config-vlan-7)# pvlan type primary
HP9300(config-vlan-7)# pvlan mapping 901 ethernet 3/2
HP9300(config-vlan-7)# pvlan mapping 902 ethernet 3/2
HP9300(config-vlan-7)# pvlan mapping 903 ethernet 3/2
This example assumes that the port in the primary private VLAN is untagged. If the port in the primary VLAN is
tagged, you must add the port as a tagged port to the isolated and community VLANs, as in the following example:
HP9300(config)# vlan 901
HP9300(config-vlan-901)# tagged ethernet 3/5 to 3/6
HP9300(config-vlan-901)# tagged ethernet 3/2
HP9300(config-vlan-901)# pvlan type community
HP9300(config-vlan-901)# exit
HP9300(config)# vlan 902
HP9300(config-vlan-902)# tagged ethernet 3/9 to 3/10
HP9300(config-vlan-902)# tagged ethernet 3/2
HP9300(config-vlan-902)# pvlan type isolated
HP9300(config-vlan-902)# exit
HP9300(config)# vlan 903
HP9300(config-vlan-903)# tagged ethernet 3/5 to 3/6
HP9300(config-vlan-903)# tagged ethernet 3/2
HP9300(config-vlan-903)# pvlan type community
HP9300(config-vlan-903)# exit
HP9300(config)# vlan 7
HP9300(config-vlan-7)# tagged ethernet 3/2
7 - 52

Advertisement

Table of Contents
loading

This manual is also suitable for:

9315m

Table of Contents