144 CHAPTER 10: E THERNET PORT CONFIGURATION COMMANDSUse 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 youcannot switch between trunk port and hybrid port. You must turn it first intoaccess port and then set it as other type. For example, you cannot configure atrunk port directly as hybrid port, but first set it as access port and then as hybridport.By default, the link type of the port is Access port.Example# Configure Ethernet port Ethernet2/1/1 as trunk port. system-viewSystem View: return to User View with Ctrl+Z.[SW8800] interface ethernet2/1/1[3Com-Ethernet2/1/1] port link-type trunkport-mode Syntaxport-mode { wan | lan }undo port-modeViewEthernet port viewParameterwan: Configures the port works in WAN mode, and then only common dataexchange can be implemented on the port.lan: Configures the port works in LAN mode, and then data can be transferred onthe port.DescriptionUse 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 inWAN 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. system-viewSystem 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