1-13DescriptionUse the port link-type command to set the link type of the Ethernet port.Use the undo port link-type command to restore the default link type.The default link type of an Ethernet port is access.To change the link type of a port from hybrid to trunk or vice versa, you need to change the link type toaccess first.Examples# Configure Ethernet 1/0/1 as a trunk port. system-viewSystem View: return to User View with Ctrl+Z.[Sysname] interface ethernet 1/0/1[Sysname-Ethernet1/0/1] port link-type trunkport trunk permit vlanSyntaxport trunk permit vlan { vlan-id-list | all }undo port trunk permit vlan { vlan-id-list | all }ViewEthernet port viewParametersvlan-id-list: List of the VLANs that the current trunk port will be assigned to or removed from. In this list,you can specify individual VLAN IDs (each in the form of vlan-id) and VLAN ID ranges (each in the formof vlan-id1 to vlan-id2). Specify each VLAN ID in the range of 1 to 4094 and ensure that vlan-id2 is noless than vlan-id1. The total number of individual VLAN IDs and VLAN ID ranges defined in the list mustnot exceed 10.all: Assigns the trunk port to all VLANs. On a GVRP-enabled trunk port, you must configure the porttrunk permit vlan all command to ensure that the traffic of all dynamically registered VLANs can passthrough. However, When GVRP is disabled, you are discouraged to configure the keyword. This is toprevent users of unauthorized VLANs from accessing restricted resources through the port.DescriptionUse the port trunk permit vlan command to assign the trunk port to the specified VLAN(s), that is, toallow packets from these VLANs to pass through the port.Use the undo port trunk permit vlan command to remove the hybrid port from the specified VLAN(s).By default, a trunk port belongs to VLAN 1 only.