Configuring bridge routing

Bridge routing provides a forwarding capability that combines bridging and routing. When data of a given protocol is exchanged between bridge interfaces, bridging occurs; when data of a given protocol is exchanged between a bridge set and a non-bridge-set network, the protocol can be routed. Before the built-in routing and bridging functionalities are activated, all protocol data can only be bridged. With the built-in routing and bridging functionalities activated, datagrams of the specified protocol can be either bridged or routed, and switching between bridging and routing can be implemented flexibly through configuration commands.

A bridge-template interface is a virtual route-selecting interface, on which various network layer properties can be configured. By configuring a bridge-template interface, you can connect the bridge set to a routed network. A bridge set can have only one bridge-template interface. The number of a bridge-template interface is the number of the bridge set it represents.

By default, if a bridge set contains Ethernet interfaces, its bridge-template interface will use the MAC address of a random Ethernet interface. If the bridge set contains no Ethernet interfaces, its bridge-template interface will use the system default MAC address, of which the first 5 bytes depend on the device model and the last byte is the number of the bridge set.

If bridge sets by the same bridge set number are enabled on two or more devices, and a bridge-template interface is created for each of these bridge sets when no Ethernet interfaces have been added into these bridge sets, these bridge-template interfaces will use exactly the same default MAC address. This will cause MAC address conflict. To avoid this situation, configure different MAC addresses for different bridge-template interfaces.

To configure bridge routing:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enable bridge routing.

bridge routing-enable

Disabled by default.

3. Configure routing or bridging of a specific network layer protocol on a bridge set.

  • Configure routing:bridge bridge-set routing { ip | ipx }

  • Configure bridging:bridge bridge-set bridging { ip | ipx | others }

Optional.

By default:

  • Routing of all network layer protocols is disabled.

  • Bridging of all network layer protocols is enabled.

4. Create a bridge-template interface and enter bridge-template interface view.

interface bridge-template bridge-set

No bridge-template interfaces exist by default.

5. Configure a description for the bridge-template interface.

description text

Optional.

By default, the description of an interface uses the format interface name Interface.

6. Configure an IP address for the bridge-template interface.

ip address ip-address { mask | mask-length } [ sub ]

By default, an interface does not have an IP address.

7. Configure a MAC address for the bridge-template interface.

mac-address mac-address

Optional.

By default:

  • If some Ethernet interfaces have joined the bridge set of the bridge-template interface, the bridge-template interface borrows the MAC address of a random Ethernet interface in the bridge set.

  • If no Ethernet interface has joined the bridge set of the bridge-template interface, the bridge-template interface uses the system default MAC address.

8. Set the intended bandwidth for the bridge-template interface.

bandwidth bandwidth-value

Optional.

9. Restore the default settings for the bridge-template interface.

default

Optional.

10. Bring up the bridge-template interface.

undo shutdown

Optional.

By default, a bridge-template interface is up.