Configuring a bridge domain

Bridge domains are configured independently of the different switching technologies that they support.

Before you begin

Before configuring a bridge domain, configure any logical interface that is to be bound to the bridge domain. Logical interfaces that represent bridge-domain endpoints must be created before they are bound to a bridge domain. For further information on configuration of logical interfaces, refer to Logical Interfaces.

There is an example at the end of this task that shows all the configuration steps in order.

About this task

Perform the following task to configure a bridge domain.

Procedure

  1. From privileged EXEC mode, enter global configuration mode.
    device# configure terminal
    
  2. Create a bridge domain.
    device(config)# bridge-domain 5 p2p
    
    By default, the bridge-domain service type is multipoint (p2mp). In this example, bridge domain 5 is configured as a point-to-point service (p2p).
  3. Note

    Note

    Logical interfaces representing bridge-domain endpoints must be created before they can be bound to a bridge domain. For further information, refer to Logical Interfaces.
    Bind the logical interfaces for attachment circuit endpoints to the bridge domain.
    device(config-bridge-domain-5)# logical-interface ethernet 0/6.400
    
    In this example, Ethernet logical interface 0/6.400 is bound to bridge domain 5.
  4. Repeat Step 4 to bind other logical interfaces for attachment circuit endpoints to the bridge domain.
    device(config-bridge-domain-5)# logical-interface port-channel 2.200
    
    In this example, port channel logical interface 2.200 is bound to bridge domain 5.
  5. (Optional) Enable local switching for bridge domain 5.
    device(config-bridge-domain-5)# local-switching
    
    By default, local switching is enabled.
  6. (Optional) Enable dropping L2 bridge protocol data units (BPDUs) for bridge domain 5.
    device(config-bridge-domain-5)# bpdu-drop-enable
    

Example

The following example creates bridge domain 5. It binds ethernet and port-channel logical interfaces to the bridge domain. It configures local switching, and enables dropping of L2 BPDUs.

device# configure terminal
device(config)# bridge-domain 5
device(config-bridge-domain-5)# logical-interface ethernet 0/6.400
device(config-bridge-domain-5)# logical-interface port-channel 2.200
device(config-bridge-domain-5)# local-switching
device(config-bridge-domain-5)# bpdu-drop-enable