beautypg.com

5 configuring hybrid port attribute, 6 configuring trunk port attribute – H3C Technologies H3C S3100 Series Switches User Manual

Page 128

background image

Operation Manual – Port Basic Configuration

H3C S3100-52P Ethernet Switch

Chapter 1 Port Basic Configuration

1-6

1.2.5 Configuring Hybrid Port Attribute

Table 1-7

Configure hybrid port attribute

Operation

Command

Remarks

Enter system view

system-view

Enter Ethernet port

view

interface interface-type
interface-number

Set the link type of the

port to hybrid

port link-type

hybrid

Required

Set the default VLAN

ID for the hybrid port

port hybrid pvid vlan
vlan-id

Optional
If no default VLAN ID is set

for a hybrid port, VLAN 1

(system default VLAN) is

used as the default VLAN of

the port.

Add the current hybrid

port to a specified

VLAN

port hybrid

vlan

vlan-id-list

{ tagged |

untagged

}

Optional
For a hybrid port, you can

configure whether the

system keeps VLAN tags

when the packets of the

specified VLANs are

forwarded on this port.

1.2.6 Configuring Trunk Port Attribute

Table 1-8

Configure trunk port attribute

Operation

Command

Remarks

Enter system view

System-view

Enter Ethernet port view

interface interface-type
interface-number

Set the link type of the port to

trunk

port link-type

trunk

Required

Set the default VLAN ID for

the trunk port

port trunk pvid vlan
vlan-id

Optional
If no default VLAN ID is

set for a trunk port,

VLAN 1 (system

default VLAN) is used

as the default VLAN of

the port.

Add the current trunk port to

a specified VLAN

port trunk permit vlan

{ vlan-id-list | all }

Optional