3com 8807 Reference Guide

Page of 1099
144
C
HAPTER
 10: E
THERNET
 P
ORT
 C
ONFIGURATION
 C
OMMANDS
Use the undo port link-type command to restore the port as default status, i.e. 
access port.
You can configure three types of ports concurrently on the same switch, but you 
cannot switch between trunk port and hybrid port. You must turn it first into 
access port and then set it as other type. For example, you cannot configure a 
trunk port directly as hybrid port, but first set it as access port and then as hybrid 
port.
By default, the link type of the port is Access port.
Example
# Configure Ethernet port Ethernet2/1/1 as trunk port.
<SW8800> system-view
 
System View: return to User View with Ctrl+Z.
 
[SW8800] interface ethernet2/1/1
 
[3Com-Ethernet2/1/1] port link-type trunk 
port-mode
Syntax
port-mode { wan | lan }
undo port-mode
View
Ethernet port view
Parameter
wan: Configures the port works in WAN mode, and then only common data 
exchange can be implemented on the port.
lan: Configures the port works in LAN mode, and then data can be transferred on 
the port.
Description
Use the port-mode command to configure network mode available on the port. 
Most ports adopt the LAN mode for general data exchange. The port must work in 
WAN mode, however, if it needs to transfer data (such as in fiber transmission).
Use the undo port-mode command to restore the default mode of the port.
By default, Ethernet ports work in LAN mode. 10GE ports support WAN mode.
Example
# Set port GigabitEthernet2/1/1 to work in WAN mode.
<SW8800> system-view
 
System View: return to User View with Ctrl+Z.
 
[SW8800] interface GigabitEthernet2/1/1
 
[3Com-GigabitEthernet2/1/1] port-mode wan 
# Restore the default (LAN) mode on port GigabitEthernet2/1/1.
[3Com-GigabitEthernet2/1/1] undo port-mode