beautypg.com

2 configuring a port-based vlan, 1 configuring a port-based vlan, I. configuration prerequisites – H3C Technologies H3C S3100 Series Switches User Manual

Page 101: Ii. configuration procedure, 2 protocol-based vlan configuration example, I. network requirements, 2 configuring a port-based vlan -3

background image

Operation Manual – VLAN

H3C S3100-52P Ethernet Switch

Chapter 2 VLAN Configuration

2-3

Table 2-3

Display VLAN configuration

Operation

Command

Description

Display the VLAN

interface information

display

interface Vlan-interface

[ vlan-id ]

Display the VLAN

information

display

vlan [ vlan-id [ to vlan-id ]

| all | dynamic | static ]

You can execute the
display

command in

any view.

2.2 Configuring a Port-Based VLAN

2.2.1 Configuring a Port-Based VLAN

I. Configuration prerequisites

Create a VLAN before configuring a port-based VLAN.

II. Configuration procedure

Table 2-4

Configure a port-based VLAN

Operation

Command

Description

Enter system view system-view

Enter VLAN view

vlan

vlan-id

Add Ethernet ports

to the specific

VLAN

port interface-list

Required
By default, all the ports belong

to the default VLAN

Caution:

The commands above are effective for access ports only. If you want to add trunk ports
or hybrid ports to a VLAN, you can use the port trunk permit vlan command or the
port hybrid vlan

command in Ethernet port view. For the configuration procedure,

refer to the section "Port Basic Configuration – Operation" in H3C S3100-52P Ethernet
Switch Operation Manual

.

2.2.2 Protocol-Based VLAN Configuration Example

I. Network requirements

z

Create VLAN 2 and VLAN 3 and specify the description string of VLAN 2 as home;