Configuring a trunk interface on a WLAN device

20

The following example describes how to configure a trunk interface on an AC:
A trunk interface connects an AC to a switch.
[HUAWEI]vlan batch 2 3 //Create VLANs.
[HUAWEI]interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1]port link-type trunk //Set the link type of the interface to trunk. The link type of the interface is hybrid by default.
[HUAWEI-GigabitEthernet0/0/1]port trunk allow-pass vlan all //Allow packets from all VLANs to pass through. By default, the interface allows only packets from VLAN 1 to pass through.
[HUAWEI-GigabitEthernet0/0/1]port trunk pvid vlan 2 //(Optional) Specify VLAN 2 as the default VLAN of the interface (default: VLAN 1).

Other related questions:
Configuring access interfaces on WLAN devices
The following example describes how to configure an access interface on a WLAN device: An access interface can connect to a user host. [HUAWEI]vlan batch 2 //Create a VLAN. [HUAWEI]interface gigabitethernet0/0/1 [HUAWEI-GigabitEthernet0/0/1]port link-type access //Set the interface type to access. [HUAWEI-GigabitEthernet0/0/1]port default vlan 2 //Add the interface to VLAN 2. [HUAWEI-GigabitEthernet0/0/1]quit

Configuring hybrid interfaces on WLAN devices
The following example describes how to configure a hybrid interface on a WLAN device: - A hybrid interface can connect to either a user device or a switch. [HUAWEI]vlan 2 //Create a VLAN. [HUAWEI-vlan2]quit [HUAWEI]interface gigabitethernet0/0/2 [HUAWEI-GigabitEthernet0/0/2]port link-type hybrid //Set the interface type to hybrid. [HUAWEI-GigabitEthernet0/0/2]port hybrid untagged vlan 2 //Configure the interface to allow packets from VLAN 2 to pass through in untagged mode. [HUAWEI-GigabitEthernet0/0/2]port hybrid pvid vlan 2 //(Optional) Specify VLAN 2 as the default VLAN of the interface (default: VLAN 1). [HUAWEI-GigabitEthernet0/0/2]port hybrid tagged vlan 3 //Configure the interface to allow packets from VLAN 3 to pass through in tagged mode.

How to enable or disable interfaces of a WLAN device
If parameters of an interface are modified but the new configuration does not take effect immediately, you can use the shutdown command to shut down the interface and then use the undo shutdown command to start it (running the shutdown and undo shutdown commands is equivalent to running the restart command). The modified parameters will then take effect. Perform the following steps to disable an interface of a WLAN device: 1. Run the system-view command to enter the system view. 2. Run the interface interface-type interface-number command in the system view to enter the specified interface view. 3. Run the shutdown command in the interface view to disable the interface. By default, an interface is enabled. Note: - Data frames may be lost or services may be interrupted if you disable an interface during data transmission. Exercise caution when you use the shutdown command. - If you run the shutdown command in the Eth-Trunk interface view, all the member interfaces of the Eth-Trunk are disabled. - A null interface is always Up and cannot be enabled or disabled through commands. - A loopback interface is always Up and cannot be enabled or disabled through commands. Perform the following steps to enable an interface of a WLAN device: 1. Run the system-view command to enter the system view. 2. Run the interface interface-type interface-number command in the system view to enter the specified interface view. 3. Run the undo shutdown command in the interface view to enable the interface. By default, an interface is enabled.

Types of interfaces on WLAN devices
WLAN devices provide three types of interfaces: - An access interface can connect to a user host. - A hybrid interface can connect to either a user device or a switch. - A trunk interface can connect to a switch.

How do I delete the configuration on a specified interface of a WLAN device
To delete all configurations on a specified interface of a WLAN device, you need to delete the configurations one by one. For example, if GE0/0/1 works in auto-negotiation mode and automatically negotiates both the rate and the duplex mode, run the following commands to delete corresponding configurations: - Run the undo auto duplex command in the interface view to restore the default duplex mode for the Ethernet electrical interface in auto-negotiation mode. - Run the undo auto speed command in the interface view to restore the default negotiation rate for the Ethernet electrical interface in auto-negotiation mode.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top