H3C LS-5100-16P-SI-OVS-H3 Configuration page 240

Low-end ethernet switches
Table of Contents

Advertisement

VLAN
H3C Low-End Ethernet Switches Configuration Examples
Enter system view
Enter VLAN view
Assign a list of Ethernet
ports to the VLAN
Note:
Only access ports can be assigned to a VLAN in VLAN view. You can assign trunk or
hybrid ports to a VLAN only in Ethernet port view.
Follow these steps to assign a port to a VLAN in Ethernet port view:
Enter system view
Enter Ethernet port view
Configure the port type
Assign the
current
port to the
specified
VLAN(s)
Specify the
default
VLAN for
the current
port
To do...
system-view
vlan vlan-id
port interface-list
To do...
system-view
interface interface-type
interface-number
port link-type { access | trunk
| hybrid }
For an
port access vlan vlan-id
access port
For a trunk
port trunk permit vlan
port
{ vlan-id-list | all }
For a
port hybrid vlan vlan-id-list
hybrid port
{ tagged | untagged }
For a trunk
port trunk pvid vlan vlan-id
port
For a
port hybrid pvid vlan vlan-id
hybrid port
Use the command...
Use the command...
1-3
Chapter 1 VLAN Overview
Remarks
Required
By default, all ports
belong to the default
VLAN (VLAN 1).
Remarks
Optional
By defaults, all ports
are access ports.
Required
By default, all the
three types of ports
belong to the default
VLAN (VLAN 1).
Optional
By default, the
default VLAN of an
Ethernet port is
VLAN 1.
Because an access
port can be assigned
to only one VLAN, its
default VLAN is the
VLAN to which it
belongs. Therefore,
you do not need to
configure a default
VLAN for it.

Advertisement

Table of Contents
loading

Table of Contents