Command Manual – Port 
Quidway S8500 Series Routing Switches  Chapter 1  Ethernet Port Configuration Commands
 
Huawei Technologies Proprietary 
1-19 
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. 
<Quidway> system-view 
System View: return to User View with Ctrl+Z. 
[Quidway] interface GigabitEthernet2/1/1 
[Quidway-GigabitEthernet2/1/1] port-mode wan 
# Restore the default (LAN) mode on port GigabitEthernet2/1/1. 
[Quidway-GigabitEthernet2/1/1] undo port-mode 
1.1.21  port trunk permit vlan 
Syntax 
port trunk permit vlan { vlan-id-list | all } 
undo port trunk permit vlan { vlan-id-list | all } 
View 
Ethernet port view 
Parameter 
vlan-id-list: vlan-id-list = [ vlan-id1 [ to vlan-id2 ] ]&<1-10> is the VLAN range joined by 
the trunk port. It can be discrete. The vlan-id ranges from 2 to 4,094. &<1-10> indicates 
that the former parameter can be input 10 times repeatedly at most. 
all: Joins the trunk port to all VLANs.