Port Link-Type - H3C s3100 series Command Manual

Hide thumbs Also See for s3100 series:
Table of Contents

Advertisement

Examples
# Assign hybrid port Ethernet 1/0/1 to VLAN 2, VLAN 4, and VLAN 50 through VLAN 100; configure the
port to keep VLAN tags when sending the packets of these VLANs.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] port link-type hybrid
[Sysname-Ethernet1/0/1] port hybrid vlan 2 4 50 to 100 tagged

port link-type

Syntax
port link-type { access | hybrid | trunk }
undo port link-type
View
Ethernet port view
Parameters
access: Sets the link type of the current port to access.
hybrid: Sets the link type of the current port to hybrid.
trunk: Sets the link type of the current port to trunk.
Description
Use 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 to
access first.
Examples
# Configure Ethernet 1/0/1 as a trunk port.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] interface ethernet 1/0/1
[Sysname-Ethernet1/0/1] port link-type trunk
1-12

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents