No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

S12700 V200R013C00 Command Reference

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
vlan (AP wired port profile view)

vlan (AP wired port profile view)

Function

The vlan command configures the VLAN to which an AP wired interface belongs.

The undo vlan command deletes the VLAN to which an AP wired interface belongs.

By default, an AP wired interface allows packets from all VLANs to pass. The wired interface is added to VLAN 1 in untagged mode and to other VLANs in tagged mode.

NOTE:

An AP wired interface can be added to a maximum of 256 VLANs.

Format

vlan { tagged | untagged } { vlan-id1 [ to vlan-id2 ] } &<1-10>

undo vlan { all | vlan-id1 [ to vlan-id2 ] &<1-10> }

Parameters

Parameter

Description

Value

tagged

Adds a wired interface to a VLAN in tagged mode.

-

untagged

Adds a wired interface to a VLAN in untagged mode.

-

vlan-id1 [ to vlan-id2 ]

Specifies the ID of the VLAN to which the wired interface belongs.
  • vlan-id1 specifies the first VLAN ID.
  • to vlan-id2 specifies the last VLAN ID. vlan-id2 must be larger than vlan-id1. vlan-id1 and vlan-id2 specify a range of VLANs.

If to vlan-id2 is not specified, the wired interface is added to the VLAN specified by vlan-id1.

You can specify a maximum of 10 VLAN ranges at a time. The entered VLAN ranges cannot overlap.

  • The value of vlan-id1 is an integer that ranges from 1 to 4094.
  • The value of vlan-id2 is an integer that ranges from 1 to 4094.

all

Deletes the VLANs to which the AP wired interface belongs.

-

Views

AP wired port profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When a wired interface connects to a PC or Layer 2 network, the interface is equivalent to a hybrid interface on a switch, and can forward the packets with multiple VLAN tags.

After the vlan tagged { vlan-id1 [ to vlan-id2 ] } &<1-10> command is executed to add the wired interface to one or more VLANs in tagged mode, the interface does not remove VLAN tags from the packets it forwarded.

After the vlan untagged { vlan-id1 [ to vlan-id2 ] } &<1-10> command is executed to add the wired interface to one or more VLANs in untagged mode, the interface removes VLAN tags from the packets it forwarded.

NOTE:

After an AP wired interface is added to the management VLAN, CAPWAP packets sent from the AP wired interface carry the VLAN tag.

  • After the management-vlan vlan-id command is executed, to configure the AP wired interface to allow packets carrying the management VLAN tag to pass through, run the vlan tagged vlan-id command to add the AP wired interface to the management VLAN in tagged mode.

  • After the management-vlan vlan-id command is executed, to disable packets sent from the AP wired interface from carrying the management VLAN tag, run the vlan untagged vlan-id command to add the AP wired interface to the management VLAN in untagged mode.

  • After the management-vlan vlan-id command is executed, to add the management VLAN tag to untagged packets received on the AP wired interface, run the vlan pvid vlan-id command to set the PVID of the AP wired interface to the management VLAN ID.

Configuration Impact

If the VLAN of an AP wired interface configured using the vlan untagged vlan-id command is the same as the management VLAN configured using the management-vlan vlan-id command, you must restart the AP to make the configuration take effect.

Eth-Trunk member interfaces cannot be added to VLANs.

Example

# Set the working mode of the AP wired interface GE0 to endpoint and add GE0 to VLANs 3, 4, 5, and 10 in tagged mode and to VLANs 12, 13, 14, and 20 in untagged mode.

<HUAWEI> system-view
[HUAWEI] wlan
[HUAWEI-wlan-view] ap-group name ap-group1
[HUAWEI-wlan-ap-group-ap-group1] quit
[HUAWEI-wlan-view] wired-port-profile name wired
[HUAWEI-wlan-wired-port-wired] mode endpoint
Warning: If the AP goes online through a wired port, the incorrect port mode configuration will cause the AP to go out of management
. This fault can be recovered only by modifying the configuration on the AP. Continue? [Y/N]:y
[HUAWEI-wlan-wired-port-wired] vlan tagged 3 to 5 10
[HUAWEI-wlan-wired-port-wired] vlan untagged 12 to 14 20
[HUAWEI-wlan-wired-port-wired] quit
[HUAWEI-wlan-view] ap-group name ap-group1
[HUAWEI-wlan-ap-group-ap-group1] wired-port-profile wired gigabitethernet 0
Translation
Download
Updated: 2019-04-09

Document ID: EDOC1100065659

Views: 125933

Downloads: 88

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next