Configuration example for bridging with FR sub-interface support
Network requirements
As shown in Figure 114, Router A and Router B are interconnected through an FR link.
Enable bridging on the FR subinterfaces Serial 2/0.1 and Serial 2/0.2 so traffic between Host A and Host B can be bridged through bridge set 1 and traffic between Host C and Host D can be bridged through bridge set 2.
In this example, Router B is a DCE device.
Figure 114: Network diagram
![](images/image110.png)
Configuration procedure
Configure Router A:
<RouterA> system-view [RouterA] bridge enable [RouterA] bridge 1 enable [RouterA] bridge 2 enable [RouterA] interface ethernet 1/1 [RouterA-Ethernet1/1] bridge-set 1 [RouterA-Ethernet1/1] quit [RouterA] interface ethernet 1/2 [RouterA-Ethernet1/2] bridge-set 2 [RouterA-Ethernet1/2] quit [RouterA] interface serial 2/0 [RouterA-Serial2/0] link-protocol fr [RouterA-Serial2/0] quit [RouterA] interface serial 2/0.1 [RouterA-Serial2/0.1] fr map bridge 50 broadcast [RouterA-Serial2/0.1] bridge-set 1 [RouterA-Serial2/0.1] quit [RouterA] interface serial 2/0.2 [RouterA-Serial2/0.2] fr map bridge 60 broadcast [RouterA-Serial2/0.2] bridge-set 2
Configure Router B:
<RouterB> system-view [RouterB] bridge enable [RouterB] bridge 1 enable [RouterB] bridge 2 enable [RouterB] interface ethernet 1/1 [RouterB-Ethernet1/1] bridge-set 1 [RouterB-Ethernet1/1] quit [RouterB] interface ethernet 1/2 [RouterB-Ethernet1/2] bridge-set 2 [RouterB-Ethernet1/2] quit [RouterB] interface serial 2/0 [RouterB-Serial2/0] link-protocol fr [RouterB-Serial2/0] fr interface-type dce [RouterB-Serial2/0] quit [RouterB] interface serial 2/0.1 [RouterB-Serial2/0.1] fr dlci 50 [RouterB-Serial2/0.1] fr map bridge 50 broadcast [RouterB-Serial2/0.1] bridge-set 1 [RouterB-Serial2/0.1] quit [RouterB] interface serial 2/0.2 [RouterB-Serial2/0.2] fr dlci 60 [RouterB-Serial2/0.2] fr map bridge 60 broadcast [RouterB-Serial2/0.2] bridge-set 2
In this example, the subinterfaces can also be configured as point-to-point (P2P) FR subinterfaces, and then it is not necessary to use the fr map command on the point-to-point FR subinterfaces. However, you must configure the same DLCI on both the DCE and DTE sides by using the fr dlci command. This is an alternative method of configuring bridging over FR. For more information about frame relay, see "Configuring frame relay."