< Home

bridge-domain

Function

The bridge-domain command creates a BD and accesses the BD view. If the BD already exists, running this command directly accesses the BD view.

The undo bridge-domain command deletes a BD.

Format

bridge-domain bd-id

undo bridge-domain bd-id

By default, no BD exists.

Parameters

Parameter Description Value
bd-id Specifies the ID of a BD.

The value is a decimal integer

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Application Scenarios

On VXLANs, VNIs of virtual networks are mapped to BDs in 1:1 mode. BDs become the entities of VXLANs and are responsible for forwarding traffic.

Follow-up Procedure

Based on a BD, you can run the interface vbdif command to create a Layer-3 logical interface (BDIF interface). The functions of BDs are similar to those of VLANs. BDIF interfaces are similar to VLANIF interfaces, which can terminate Layer-2 services and access Layer-3 services.

Precautions

If a BDIF interface is associated with a BD, the BD cannot be deleted.

Example

# Create BD1.

<sysname> system-view
[sysname] bridge-domain 1
[sysname-bd-1] quit

# Delete BD1.

<sysname> system-view
[sysname] undo bridge-domain 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >