2-4
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter Ethernet port view
interface interface-type
interface-number
—
Configure the port link type
port link-type
{
access
|
hybrid
|
trunk
}
Required
The link type of an Ethernet
port is access by default.
To change the link type of a port from trunk to hybrid or vice versa, you need to set the link type to
access first.
Assigning an Ethernet Port to a VLAN
You can assign an Ethernet port to a VLAN in Ethernet port view or VLAN view.
1) In Ethernet port view
Follow these steps to assign an Ethernet port to one or multiple VLANs:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter Ethernet port view
interface interface-type interface-number
—
Access port
port access vlan vlan-id
Trunk port
port trunk permit vlan
{
vlan-id-list
|
all
}
Assign the
port to one
or multiple
VLANs
Hybrid port
port hybrid vlan
vlan-id-list
{
tagged
|
untagged
}
Optional
By default, all
Ethernet ports
belong to VLAN
1.
When assigning an access or hybrid port to a VLAN, make sure the VLAN already exists.
2) In VLAN view
Follow these steps to assign one or multiple access ports to a VLAN in VLAN view:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter VLAN view
vlan
vlan-id
Required
If the specified VLAN does not
exist, this command creates the
VLAN first.
Содержание Switch 4800G PWR 24-Port
Страница 165: ...1 8 4 mac address es found on port GigabitEthernet1 0 2 ...
Страница 214: ...ii Displaying and Maintaining System Guard 4 1 ...
Страница 445: ...ii ...
Страница 727: ...i Table of Contents Appendix A Acronyms A 1 ...
Страница 730: ...A 3 VOD Video On Demand W WRR Weighted Round Robin X XID eXchange Identification XRN eXpandable Resilient Networking ...