Typical Bridge Configuration 313
Bridging on
Sub-Interfaces
I. Networking Requirements
Two routers are connected via a network cable. Enabling bridging on the Ethernet
sub-interfaces so that the two bridges established via the routers can be
interconnected.
II. Networking Diagram
Figure 115 Networking for bridging on sub-interfaces
III. Configuration Procedure
1 Configure Router A
[Router]bridge enable
[Router]bridge 1 stp ieee
[Router]bridge 2 stp ieee
[Router]interface ethernet 1
[Router-Ethernet1]bridge-set 1
[Router-Ethernet1]interface ethernet 2
[Router-Ethernet2]bridge-set 2
[Router-Ethernet2]interface ethernet 0.1
[Router-Ethernet0.1]vlan-type dot1q vid 1
[Router-Ethernet0.1]bridge-set 1
[Router-Ethernet0.1]interface ethernet 0.2
[Router-Ethernet0.2]vlan-type dot1q vid 2
[Router-Ethernet0.2]bridge-set 2
2 Configure Router B
[Router]bridge enable
[Router]bridge 1 stp ieee
[Router]bridge 2 stp ieee
[Router]interface ethernet 1
[Router-Ethernet1]bridge-set 1
[Router-Ethernet1]interface ethernet 2
[Router-Ethernet2]bridge-set 2
[Router-Ethernet2]interface ethernet 0.1
[Router-Ethernet0.1]vlan-type dot1q vid 1
[Router-Ethernet0.1]bridge-set 1
[Router-Ethernet0.1]interface ethernet 0.2
[Router-Ethernet0.2]vlan-type dot1q vid 2
[Router-Ethernet0.2]bridge-set 2
e0.1
e1 e1
e2
e2
e0.1
e0.2 e0.2
Router A
Router B