Ethernet Port Configuration
43
By default, the port is access port.
Note that:
■
You can configure four types of ports concurrently on the same Switch, but you
cannot switch port type between trunk port, hybrid port and stack port. You
must return it first into access port and the set it as the other type. For
example, you cannot configure a trunk port directly as a hybrid port, but first
set it as an access port and then as a hybrid port.
■
For the Switch 4500 26-Port and Switch 4500 26-Port PWR,
GigabitEthernet1/0/25 and GigabitEthernet1/0/26 ports can be configured as a
stack port; For the Switch 4500 50-Port and Switch 4500 50-Port PWR,
GigabitEthernet1/0/49 and GigabitEthernet1/0/50 ports can be configured as a
stack port.
Adding an Ethernet Port to Specified VLANs
Use the following commands to add an Ethernet port to a specified VLAN. An
access port can only be added to one VLAN, while hybrid and trunk ports can be
added to multiple VLANs.
Perform the following configuration in Ethernet Port View.
Note that the access port shall be added to an existing VLAN other than VLAN 1.
The VLAN to which a hybrid port is added must already exist. The one to which a
trunk port is added cannot be VLAN 1.
After adding an Ethernet port to specified VLANs, the local port can forward
packets of these VLANs. Hybrid and trunk ports can be added to multiple VLANs,
thereby implementing the VLAN intercommunication between peers. For a hybrid
Configure the port as a hybrid port
port link-type hybrid
Configure the port as a trunk port
port link-type trunk
Configure the port as a stack port
port link-type xrn-fabric
Restore the default link type, that is, access port
undo port link-type
Table 39
Adding the Ethernet Port to Specified VLANs
Operation
Command
Add the current access port to a specified
VLAN
port access vlan
vlan_id
Add the current hybrid port to specified
VLANs
port hybrid vlan
vlan_id_list
{
tagged
|
untagged
}
Add the current trunk port to specified VLANs
port trunk permit vlan
{
vlan_id_list
|
all
}
Remove the current access port from to a
specified VLAN.
undo port access vlan
Remove the current hybrid port from to
specified VLANs.
undo port hybrid vlan
vlan_id_list
Remove the current trunk port from specified
VLANs.
undo port trunk permit vlan
{
vlan_id_list
|
all
}
Table 38
Setting the Link Type for the Ethernet Port
Operation
Command
Summary of Contents for Switch 4500 26-Port
Page 16: ...14 ABOUT THIS GUIDE...
Page 58: ...56 CHAPTER 2 PORT OPERATION...
Page 104: ...102 CHAPTER 5 NETWORK PROTOCOL OPERATION...
Page 130: ...128 CHAPTER 6 IP ROUTING PROTOCOL OPERATION...
Page 154: ...152 CHAPTER 7 ACL CONFIGURATION...
Page 228: ...226 CHAPTER 11 802 1X CONFIGURATION...
Page 250: ...248 CHAPTER 14 DEVICE MANAGEMENT...
Page 280: ...278 CHAPTER 15 SYSTEM MAINTENANCE AND DEBUGGING...
Page 312: ...310 CHAPTER 18 NTP CONFIGURATION...
Page 340: ...338 CHAPTER 19 SSH TERMINAL SERVICES...
Page 350: ...348 CHAPTER 20 PASSWORD CONTROL CONFIGURATION OPERATIONS...
Page 388: ...386 APPENDIX B RADIUS SERVER AND RADIUS CLIENT SETUP...