beautypg.com

H3C Technologies H3C S3100 Series Switches User Manual

Page 124

background image

Operation Manual – Port Basic Configuration

H3C S3100-52P Ethernet Switch

Chapter 1 Port Basic Configuration

1-2

1.1.3 Configuring the Default VLAN ID for an Ethernet Port

An access port can belong to only one VLAN. Therefore, the VLAN an access port
belongs to is also the default VLAN of the access port. A hybrid/trunk port can belong to
several VLANs, and so a default VLAN ID for the port is required.
After you configure default VLAN IDs for Ethernet ports, the packets passing through
the ports are processed in different ways depending on different situations. See Table
1-2
for details.

Table 1-2

Processing of incoming/outgoing packets

Processing of an incoming packet

Port
type

If the

packet

does not

carry a

VLAN tag

If the packet carries a

VLAN tag

Processing of an outgoing

packet

Access

z

If the VLAN ID is just

the default VLAN ID,

receive the packet.

z

If the VLAN ID is not

the default VLAN ID,

discard the packet.

Deprive the tag from the packet

and send the packet.

Trunk

z

If the VLAN ID is just the

default VLAN ID, deprive

the tag and send the packet.

z

If the VLAN ID is not the

default VLAN ID, keep the

original tag unchanged and

send the packet.

Hybrid

Receive

the packet

and add

the default

tag to the

packet.

z

If the VLAN ID is just

the default VLAN ID,

receive the packet.

z

If the VLAN ID is not

the default VLAN ID

but is one of the

VLAN IDs allowed to

pass through the

port, receive the

packet.

z

If the VLAN ID is

neither the default

VLAN ID, nor one of

the VLAN IDs

allowed to pass

through the port,

discard the packet.

z

If the VLAN ID is just the

default VLAN ID, deprive

the tag and send the packet.

z

If the VLAN ID is not the

default VLAN ID, deprive

the tag or keep the tag

unchanged (whichever is

done is determined by the
port hybrid vlan

vlan-id-list

{ tagged | untagged }

command) and send the

packet.