< Home

l2 binding vlan

Function

The l2 binding vlan command associates a specified VLAN with a BD.

The undo l2 binding vlan command restores the default settings.

By default, a VLAN is not associated with a BD.

Format

l2 binding vlan vlan-id

undo l2 binding vlan vlan-id

Parameters

Parameter Description Value

vlan-id

Specifies a VLAN ID.

The value is an integer that ranges from 1 to 4094.

Currently, VLAN 1 cannot be associated with a BD.

Views

BD view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

VXLAN needs to be deployed on a downlink interface to provide access services and an uplink interface to establish a VXLAN tunnel.

On the access side, two methods are available for creating a large Layer 2 BD.
  • Based on VLAN: You can associate one or multiple VLANs with a BD to add users in these VLANs to the BD. This VLAN-based mode implements larger-granularity control, but is easy to configure. It applies to VXLAN deployment on a live network.
  • Based on encapsulation mode: The device sends packets of different encapsulation modes to different Layer 2 sub-interfaces based on the VLAN tags contained in the packets. You can bind a Layer 2 sub-interface to a BD to add specified users to the BD. This mode implements refined and flexible control but requires more complex configuration. It applies to VXLAN deployment on a new network.

After you run this command to associate specified VLANs with a BD, different VLANs associated with the same BD form a large Layer 2 network. Users belong to these VLANs can communicate at Layer 2 through VXLAN tunnels.

Prerequisites

The VLAN to be bound to the BD has been created using the vlan command.

Precautions

  • One VLAN can be associated with only one BD, but one BD can be associated with multiple VLANs.

  • After a global VLAN is associated with a BD, you need to add corresponding interfaces to the VLAN.

  • If a VLAN is configured as a voice VLAN on the S6720-EI and S6720S-EI, the VLAN cannot be associated with a BD.

  • In NAC authentication scenarios, if there are online users in a VLAN, running the undo l2 binding vlan command to unbind the VLAN from a BD makes the users go offline.
  • If a VLAN is an ISP VLAN authorized to users and users exist in the VLAN on the device, the VLAN cannot be associated with a BD.
  • If a VLAN is used as the management VLAN of a Fit AP, it is not recommended that the VLAN be associated with a BD.

Example

# Associate VLAN 10 with BD 10.

<HUAWEI> system-view
[HUAWEI] vlan 10
[HUAWEI-vlan10] quit
[HUAWEI] bridge-domain 10 
[HUAWEI-bd10] l2 binding vlan 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >