|
|
This chapter describes how to configure bridging for your switch router. For further information about the commands used in this chapter, refer to the command reference publications in the Cisco IOS documentation set and to "Command Reference."
This chapter includes the following sections:
Cisco IOS software supports transparent bridging for Ethernet. In addition, Cisco supports all the mandatory Management Information Base (MIB) variables specified for transparent bridging in RFC 1286.
The switch router can be configured to serve as both an IP and IPX router and a MAC-level bridge, bridging any traffic that cannot otherwise be routed. For example, a router routing IP traffic can also bridge the Digital local-area transport (LAT) protocol or NetBIOS traffic.
To configure bridging, you must perform the following tasks:
Table 6-1 shows an example of configuring bridging for a router and an interface.
| Step | Command | Purpose | ||
|---|---|---|---|---|
| Router(config)# bridge bridge-group-number protocol | From global configuration mode, assign a bridge group number and define a Spanning-Tree Protocol as either the IEEE 802.1D standard or DEC. Note The IEEE 802.1D Spanning-Tree Protocol is the preferred way of running the bridge. | ||
| Router(config)# bridge bridge-group-number priority number | |||
| Router(config)# interface | Enter Ethernet interface configuration mode to configure the Fast Ethernet interface. | ||
| Router(config-if)# bridge-group bridge-group-number | |||
| Router(config-if)# interface | If you need to assign additional interfaces to a bridge group, then choose the next interface and assign it to a bridge group. | ||
| Router(config-if)# Ctrl-Z | Return to privileged EXEC mode. | ||
| Router# copy running-config startup-config | Save your configuration changes to NVRAM. |
For additional transparent bridging configuration tasks, such as configuring bridged VLANs, routing between VLANs, and adjusting the Spanning-Tree Protocol, refer to the following Cisco IOS publications:
Once you have set up the switch router for bridging, you can administer its operation using the commands in Table 6-2.
| Command | Purpose |
|---|---|
clear bridge bridge-group-number | |
clear vlan statistics | Remove virtual LAN statistics from any static or system configured entries. |
show bridge [bridge-group-number] | Display classes of entries in the bridge forwarding database. |
show bridge [bridge-group-number] circuit-group [circuit-group] [src-mac-address] [dest-mac-address] | Display the interfaces configured in each circuit group and show whether they are participating in load distribution. |
show bridge group verbose | Display extended information about configured bridge groups. |
show bridge vlan | Display IEEE 802.10 transparently bridged virtual LAN configuration. |
show span | Display the spanning-tree topology known to the Catalyst 8500 campus switch router. |
show vlans | Display a summary of virtual LAN subinterfaces. |
Your network may require you to bridge local traffic within several segments while having hosts on the bridged segments reach the hosts or routers on routed networks. For example, if you are migrating bridged topologies into routed topologies, you may want to start by connecting some of the bridged segments to the routed networks.
Using the integrated routing and bridging (IRB) feature, you can route a given protocol between routed interfaces and bridge groups within a single switch router. Specifically, local or unroutable traffic will be bridged among the bridged interfaces in the same bridge group, while routable traffic will be routed to other routed interfaces or bridge groups.
Because bridging is in the data-link layer (Layer 2) and routing is in the network layer (Layer 3), they have different protocol configuration models. With IP, for example, bridge group interfaces belong to the same network and have a collective IP network address. In contrast, each routed interface represents a distinct network and has its own IP network address. Integrated routing and bridging uses the concept of a Bridge-Group Virtual Interface (BVI) to enable these interfaces to exchange packets for a given protocol.
Layer 3 switching software supports the routing of IP and IPX between routed interfaces and bridged interfaces in the same router, in both fast-switching and process-switching paths.
Consider the following before configuring IRB:
Configuring integrated routing and bridging consists of the following two key tasks and subtasks:
Step 1 Configure bridge groups and routed interfaces.
(a) Enable bridging.
(b) Assign bridge groups to interfaces.
(c) Configure routing for desired protocols.
Step 2 Configure IRB and the BVI.
(a) Enable IRB.
(b) Configure the BVI.
(c) Enable the BVI to accept routed packets.
(d) Enable routing on the BVI for desired protocols.
Step 3 Verify IRB configuration.
The packet is routed to the BVI and forwarded to the bridging engine. From the bridging engine, the packet exits through a bridged interface. Similarly, packets that come in on a bridged interface but are sent to a host on a routed interface go first to the BVI. Then the BVI forwards the packets to the routing engine before sending them out on the routed interface.
Table 6-3 shows an example of defining a bridge group and configuring an interface.
| Step | Command | Purpose |
|---|---|---|
| 1 | Router(config)# bridge bridge-group protocol {ieee | dec} | From global configuration mode, define one or more bridge groups. |
| 2 | Router(config)# interface | Enter Ethernet interface configuration mode to configure the Fast Ethernet interface. |
| 3 | Router(config-if)# bridge-group bridge-group | Assign a bridge group number to the designated interface. |
| 4 | Router(config-if)# exit | Return to global configuration mode. |
Table 6-4 shows an example of enabling and configuring IRB and BVI.
| Step | Command | Purpose |
|---|---|---|
| 1 | Router(config)# bridge irb | Enable IRB, allowing routing of traffic from the bridged interfaces. |
| 2 | Router(config)# interface bvi bridge-group | |
| 3 | Router(config-if)# ip address ip-address subnet-mask | Configure protocol addresses on routed interfaces. This step shows an example for IP. Optionally, you can configure additional routing attributes to the BVI. |
| 4 | Router(config-if)# exit | Exit interface configuration mode. |
| 5 | Router(config)# bridge bridge-group route protocol | Enable a BVI to accept and route routable packets received from its corresponding bridge group. You must issue this command for each protocol that you want the BVI to route from its corresponding bridge group to other routed interfaces. |
| 6 | Router(config)# end | Exit global configuration mode. |
| 7 | Router# copy running-config startup-config | Save your configuration changes to NVRAM. |
Table 6-5 shows an example of verifying the IRB configuration.
| Command | Purpose |
|---|---|
show interfaces bvi interface-name | Displays BVI information, such as the BVI MAC address and processing statistics |
show interfaces irb | Displays the following BVI information:
|
When you have completed the configuration tasks for bridging, see "EtherChannel Configurations."
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Wed Dec 22 14:10:15 PST 1999
Copyright 1989-1999©Cisco Systems Inc.