642CHAPTER 40: PORT-BASED VLAN CONFIGURATION COMMANDS

port link-type

Syntax port link-type { access hybrid trunk }

undo port link-type

View Ethernet interface view, port group view

Parameter access: Configures the link type of a port as Access. hybrid: Configures the link type of a port as Hybrid. trunk: Configures the link type of a port as Trunk.

Description Use the port link-typecommand to configure the link type of a port.

Use the undo port link-typecommand to restore the default link type of a port.

Configured in Ethernet interface view, the setting is effective on the current port only; configured in port group view, the setting is effective on all ports in the port group.

Refer to “Link Aggregation Configuration Commands” on page 473 for information about port groups.

By default, a port is an Access port.

Example # Configure Ethernet 1/0 to be a Trunk port.

<Sysname> system-view

[Sysname] interface ethernet 1/0

[Sysname-Ethernet1/0] port link-type trunk

port trunk permit vlan

Syntax port trunk permit vlan { vlan-id-listall }

undo port trunk permit vlan { vlan-id-listall }

View Ethernet interface view, port group view

Parameter vlan-id-list: The range of VLANs that the Hybrid ports will be added to, in the format of vlan-id-list= [ vlan-id1[ to vlan-id2] ]&<1-10>, where vlan-idranges from 1 to 4,094 and &<1-10> indicates that you can specify up to 10 parameters.

all: Adds the Trunk port to all VLANs.

Description Use the port trunk permit vlan command to add a Trunk port to a specified VLAN, a selection of VLANs, or all VLANs.

Page 642
Image 642
3Com MSR 30, MSR 50 manual Port link-type, Port trunk permit vlan