December 2006
Intermediate to advanced
1188 pages
72h 8m
English
You wish to configure a router to bridge between two interfaces.
You can configure a router to bridge between two or more interfaces, as follows:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#bridge1protocol ieeeRouter1(config)#interfaceRouter1(config-if)#Ethernet0/0bridge-groupRouter1(config-if)#1exitRouter1(config)#interfaceRouter1(config-if)#Ethernet0/1bridge-groupRouter1(config-if)#1exitRouter1(config)#end
With Integrated Routing and Bridging (IRB), you can also create a Bridged Virtual Interface (BVI) for the bridge group:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#bridge1protocol ieeeRouter1(config)#bridge irbRouter1(config)#interfaceRouter1(config-if)#Ethernet0/0bridge-groupRouter1(config-if)#1exitRouter1(config)#interfaceRouter1(config-if)#Ethernet0/1bridge-groupRouter1(config-if)#1exitRouter1(config)#interface BVIRouter1(config-if)#1ip addressRouter1(config-if)#10.10.10.1 255.255.255.0exitRouter1(config)#end
In the first example, we just want to configure simple bridging between two interfaces on this router. This example simply bridges all Ethernet traffic between the two interfaces. There are three key commands here. The first is the bridge protocol command:
Router1(config)#bridge1protocol ieee
In this case, we have associated bridge-group number 1 with the IEEE 802.1D Spanning Tree Protocol ...