bridge-domain (Layer 2 sub interface view)

Function

The bridge-domain command adds an EVC Layer 2 sub-interface to a bridge domain.

The undo bridge-domain command removes an EVC Layer 2 sub-interface from a bridge domain.

By default, no EVC Layer 2 sub-interface is added to a bridge domain.

Format

bridge-domain bd-id

undo bridge-domain

Parameters

Parameter Description Value
bridge-domain bd-id

Specifies the ID of a bridge domain.

The value is an integer

ranging from 1 to 16777215.

Views

400GE Layer 2 sub-interface view, 50GE Layer 2 sub-interface view, Eth-Trunk Layer 2 sub-interface view, GE Layer 2 sub-interface view, Global-VE layer2 subinterface view, VE layer2 subinterface view, Layer 2 sub-interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bdbase write

Usage Guidelines

Usage Scenario

Before a created bridge domain can forward service packets, a sub-interface must be added to the bridge domain using the bridge-domain command in a specific EVC Layer 2 sub-interface view.

Prerequisites

  1. A bridge domain has been created using the bridge-domain bd-id command in the system view.
  2. An EVC Layer 2 sub-interface has been created using the interface interface-type interface-number.subnum mode l2 command in the system view.

Precautions

In the scenario where an EVC dot1q and QinQ sub-interface accesses a BD for transparent transmission, the smallest VLAN ID pair or Q pair is learned during MAC address learning and broadcast packet duplication. When the smallest VLAN ID pair or Q pair is changed, traffic is interrupted. Therefore, before changing the smallest VLAN ID pair or Q pair, unbind the sub-interface from a BD or shut down the sub-interface.

An interface supports various types of sub-interfaces, such as ordinary sub-interfaces, EVC Layer 2 sub-interfaces, Dot1q sub-interfaces, and QinQ sub-interfaces. Among these sub-interfaces, only EVC Layer 2 sub-interfaces can be added to a bridge domain. Each EVC Layer 2 sub-interface can be added only to a single bridge domain.

Example

# Add EVC Layer 2 sub-interface to bridge domain 10.
<HUAWEI> system-view
[~HUAWEI] bridge-domain 10
[*HUAWEI-bd10] quit
[*HUAWEI] interface GigabitEthernet 0/1/1.1 mode l2
[*HUAWEI-GigabitEthernet0/1/1.1] bridge-domain 10
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >