Types of interfaces on WLAN devices

20

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.

Other related questions:
Changing link types of interfaces on WLAN devices
You can change the type of an interface on a WLAN device as follows: - Change an access interface to a trunk or hybrid interface. [HUAWEI]interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1]undo port default vlan //Restore the default VLAN of the interface to VLAN 1. Run the display this command to check whether the interface has been added to other VLANs. If so, run the undo command delete the configurations. Change the interface type based on service requirements. [HUAWEI-GigabitEthernet0/0/1]port link-type hybrid // Set the interface type to hybrid. [HUAWEI-GigabitEthernet0/0/1]port link-type trunk //Set the interface type to trunk. - Change a trunk interface to an access interface or a hybrid interface. [HUAWEI]interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1]undo port trunk pvid vlan //Restore the default VLAN of the interface to VLAN 1. [HUAWEI-GigabitEthernet0/0/1]undo port trunk allow-pass vlan all //Deny packets from all VLANs. [HUAWEI-GigabitEthernet0/0/1]port trunk allow-pass vlan 1 //Allow packets from VLAN 1 to pass through. Run the display this command to check whether the interface has been added to other VLANs. If so, run the undo command delete the configurations. - Change the interface type based on service requirements. [HUAWEI-GigabitEthernet0/0/1]port link-type access //Set the interface type to access. [HUAWEI-GigabitEthernet0/0/1]port link-type hybrid //Set the interface type to hybrid. - Change a hybrid interface to a trunk interface or an access interface. [HUAWEI]interface gigabitethernet 0/0/1 [HUAWEI-GigabitEthernet0/0/1]undo port hybrid pvid vlan //Restore the default VLAN of the interface to VLAN 1. [HUAWEI-GigabitEthernet0/0/1]undo port hybrid vlan all //Deny packets from all VLANs. [HUAWEI-GigabitEthernet0/0/1]port hybrid untagged vlan 1 //Add the interface to VLAN 1 in untagged mode. Run the display this command to check whether the interface has been added to other VLANs. If so, run the undo command delete the configurations. Change the interface type based on service requirements. [HUAWEI-GigabitEthernet0/0/1]port link-type access //Set the interface type to access. [HUAWEI-GigabitEthernet0/0/1]port link-type trunk //Set the interface type to trunk. Note: The type of an interface can be successfully changed only when no VLAN configuration exists on the interface.

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 a trunk interface on a WLAN device
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).

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.

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.

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