beautypg.com

Displaying and maintaining the private vlan, Private vlan configuration examples, Network requirements – H3C Technologies H3C S12500-X Series Switches User Manual

Page 132

background image

121

Step Command

Remarks

9.

Return to system view.

quit

N/A

10.

Enter Layer 2 Ethernet
interface view or Layer 2

aggregate interface view.

interface interface-type
interface-number

N/A

11.

Assign the downlink port to

secondary VLANs.

a.

Set the link type of the
port:

port link-type { access |
hybrid | trunk }

b.

Assign the access port to
the specified VLAN:

port access vlan vlan-id

c.

Assign the trunk port to the

specified VLANs:

port trunk permit vlan

{ vlan-id-list | all }

d.

Assign the hybrid port to

the specified VLANs:
port hybrid vlan

vlan-id-list { tagged |

untagged }

Select sub-step b, c, or d
depending on the port link type.

12.

Configure the downlink port
to operate in host mode.

port private-vlan host

By default, an interface does not
operate in host mode.

13.

Enter primary VLAN view.

vlan vlan-id

N/A

14.

Associate the primary VLAN

with the specified secondary
VLANs.

private-vlan secondary vlan-id-list

By default, a primary VLAN is not
associated with any secondary

VLAN.

Displaying and maintaining the private VLAN

Execute the display command in any view.

Task Command

Display information about primary VLANs and the
secondary VLANs associated with each primary VLAN. display private-vlan [ primary-vlan-id ]

Private VLAN configuration examples

Private VLAN configuration example in promiscuous mode

Network requirements

As shown in

Figure 34

:

This manual is related to the following products: