|
|
Table Of Contents
Monitoring and Verifying Basic Bridging
Transparent Bridging Modes of Operation
Configuring Bridges
This chapter describes how to configure bridging for the ML-Series card. For more information about the Cisco IOS commands used in this chapter, refer to the Cisco IOS Command Reference publication.
This chapter includes the following major sections:
•
Understanding Basic Bridging
•
Monitoring and Verifying Basic Bridging
•
Transparent Bridging Modes of Operation
CautionCisco Inter-Switch Link (ISL) and Cisco Dynamic Trunking Protocol (DTP) are not supported by the ML-Series cards, but the ML-Series broadcast forwards these formats. Using ISL or DTP on connecting devices is not recommended. Some Cisco devices attempt to use ISL or DTP by default.
Understanding Basic Bridging
The ML-Series card supports transparent bridging for Fast Ethernet, Gigabit Ethernet and POS ports. It supports a maximum of 255 active bridge groups. For information on the modes of transparent bridging, see the "Transparent Bridging Modes of Operation" section.
To configure bridging, you must perform the following tasks in the modes indicated:
•
In global configuration mode:
–
Enable bridging of IP packets.
–
Select the type of Spanning Tree Protocol (STP) (optional).
•
In interface configuration mode:
–
Determine which interfaces belong to the same bridge group.
The ML-Series card bridges all nonrouted traffic among the network interfaces comprising the bridge group. If spanning tree is enabled, the interfaces became part of the same spanning tree. Interfaces not participating in a bridge group cannot forward bridged traffic.
If the destination address of the packet is known in the bridge table, the packet is forwarded on a single interface in the bridge group. If the packet's destination is unknown in the bridge table, the packet is flooded on all forwarding interfaces in the bridge group. The bridge places source addresses in the bridge table as it learns them during the process of bridging.
Spanning tree is not mandatory for an ML-Series card bridge group. But if it is configured, a separate spanning-tree process runs for each configured bridge group. A bridge group establishes a spanning tree based on the bridge protocol data units (BPDUs) it receives on only its member interfaces.
Configuring Basic Bridging
Use the following steps to configure bridging:
Figure 6-1 shows a bridging example. Example 6-1 shows the configuration of ML-Series card A. Example 6-2 shows the configuration of ML-Series card B.
Figure 6-1 Bridging Example
Example 6-1 Router A Configuration
bridge 1 protocol ieee!!interface FastEthernet0no ip addressbridge-group 1!interface POS0no ip addresscrc 32bridge-group 1pos flag c2 1Example 6-2 Router B Configuration
bridge 1 protocol ieee!!interface FastEthernet0no ip addressbridge-group 1!interface POS0no ip addresscrc 32bridge-group 1pos flag c2 1Monitoring and Verifying Basic Bridging
After you have set up the ML-Series card for bridging, you can monitor and verify its operation by performing the following procedure in privileged EXEC mode:
Example 6-3 shows an example of the monitoring and verifying bridging.
Example 6-3 Monitoring and Verifying Bridging
ML-Series# show bridgeTotal of 300 station blocks, 298 freeCodes: P - permanent, S - selfBridge Group 1:Maximum dynamic entries allowed: 1000Current dynamic entry count: 2Address Action Interface0000.0001.6000 forward FastEthernet00000.0001.6100 forward POS0ML-Series# show bridge verboseTotal of 300 station blocks, 298 freeCodes: P - permanent, S - selfMaximum dynamic entries allowed: 1000Current dynamic entry count: 2BG Hash Address Action Interface VC Age RX count TX count1 60/0 0000.0001.6000 forward FastEthernet0 -1 61/0 0000.0001.6100 forward POS0 -Flood portsFastEthernet0POS0ML-Series# show spanning-tree briefBridge group 1Spanning tree enabled protocol ieeeRoot ID Priority 32769Address 0005.9a39.6634This bridge is the rootHello Time 2 sec Max Age 20 sec Forward Delay 15 secBridge ID Priority 32769 (priority 32768 sys-id-ext 1)Address 0005.9a39.6634Hello Time 2 sec Max Age 20 sec Forward Delay 15 secAging Time 300Interface Role Sts Cost Prio.Nbr Type---------------- ---- --- --------- -------- --------------------------------Fa0 Desg FWD 19 128.3 P2pPO0 Desg FWD 9 128.20 P2pTransparent Bridging Modes of Operation
The transparent bridging feature in the Cisco IOS software combines bridge-groups and IP routing. This combination provides the speed of an adaptive spanning-tree bridge, along with the functionality, reliability, and security of a router. The ML-Series card supports transparent bridging in the same general manner as other Cisco IOS platforms.
Transparent bridging processes IP frames in four distinct modes, each with different rules and configuration options. The modes are IP routing, no IP routing, bridge crb, and bridge irb. This section covers the configuration and operation of these four modes on the ML-Series card.
For additional general Cisco IOS user documentation on configuring transparent bridging, see the "Configuring Transparent Bridging" chapter of the Cisco IOS Bridging and IBM Networking Configuration Guide, Release 12.2 at:
http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_configuration_guide_chapter09186a00800ca767.htmlIP Routing Mode
IP routing mode is the default mode. It disables the other modes (no IP routing, bridge crb, and bridge irb). The global command ip routing enables IP routing mode.
In IP routing mode, the bridge-groups do not process IP packets. The IP packets are either routed or discarded.
The following rules help describe packet handling in this mode:
•
An input interface or subinterface configured with only a bridge-group will bridge non-IP packets and discard IP packets ( Example 6-4).
•
An input interface or subinterface configured with only an IP address will route IP packets and discard non-IP packets ( Example 6-5).
•
An input interface or subinterface configured with both an IP address and a bridge-group routes IP packets and bridges non-IP packets ( Example 6-6). This configuration is sometimes referred to as fallback bridging. If a protocol cannot be routed, then the interface falls back to bridging.
•
All of the interfaces or subinterfaces belonging to a specific bridge-group need consistent configuration with regards to configuring or not configuring IP addresses. Mixing interfaces configured with IP addresses and interfaces not configured with IP addresses in the same bridge group can cause inconsistent or unpredictable routing at the network level.
•
All the interfaces and subinterface belonging to the same bridge-group need consistent configuration with regard to IP addresses. Either all of the bridge group's interfaces should be configured with IP addresses or none of the bridge group's interfaces should be configured with IP addresses.
Example 6-4 shows ML-Series card interfaces configured in a bridge group with no IP addresses.
Example 6-4 Bridge Group with No IP Address
ip routingbridge 1 proto rstpint f0bridge-group 1int pos 0bridge-group 1Example 6-5 shows ML-Series card interfaces configured with IP addresses but not in a bridge group.
Example 6-5 IP Addresses with No Bridge Group
ip routingint f0ip address 10.10.10.2 255.255.255.0int pos 0ip address 20.20.20.2 255.255.255.0Example 6-6 shows ML-Series card interfaces configured with IP addresses and in a bridge group.
Example 6-6 IP Addresses with Bridge Group
ip routingbridge 1 proto rstp int f0 ip address 10.10.10.2 255.255.255.0 bridge-group 1 int pos 0 ip address 20.20.20.2 255.255.255.0 bridge-group 1No IP Routing Mode
The no IP routing mode bridges all packets, both IP and non-IP, and prevents routing. Although Cisco IOS can use the IP addresses for interfaces configured as management ports, it will not route between these IP addresses.
The global command no ip routing enables this feature, and enabling no ip routing disables the other modes.
The following rules help describe packet handling in this mode:
•
An input interface or subinterface configured with only a bridge-group and no ip addresses bridges all packets ( Example 6-7).
•
An input interface or subinterface configured with only an IP address discards all packets, except packets with the destination MAC and IP address of the input interface, which are processed by Cisco IOS. This is not a valid configuration.
•
An input interface or subinterface configured with both an IP address and a bridge group bridges all packets, except packets sent to the input interface MAC address. Packets sent to the input interface MAC address and the interface IP address are processed by Cisco IOS. Other packets sent to the input interface MAC address are discarded. This is not a valid configuration for the IP addresses.
•
All of the interfaces or subinterfaces belonging to a specific bridge-group need consistent configuration in regards to configuring or not configuring IP addresses. Mixing interfaces configured with IP addresses and interfaces not configured with IP addresses in the same bridge group can cause inconsistent or unpredictable routing at the network level.
Example 6-7 shows ML-Series card interfaces configured in a bridge group with no IP addresses.
Example 6-7 Bridge Group with No IP Address
no ip routingbridge 1 proto rstpint f0bridge-group 1int pos 0bridge-group 1Bridge CRB Mode
In bridge crb mode, the default sub-mode for every bridge group is to bridge but not route the IP packets. This is similar to the no ip routing mode behavior. But with bridge crb, packet handling is configured not globally but for the specific bridge group. You can selectively disable bridge groups to block IP packets or configure fallback bridging for a group of routed interfaces.
Concurrent routing and bridging is enabled with the global command bridge crb. Enabling bridge crb disables the other modes.
The following rules help describe packet handling in this mode:
•
The command bridge x bridge ip (where x is a bridge-group number) configures a bridge-group to bridge IP packets. Input interfaces and sub-interfaces belonging to the bridge-group will follow the rules for no IP routing mode.
•
The command bridge x route IP (where x is a bridge-group number) configures a bridge-group to ignore IP packets. Input interfaces and sub-interfaces belonging to this bridge-group will follow the rules for IP routing mode ( Example 6-8).
•
When you enable bridge crb with pre-existing bridge groups, it will generate a bridge x route IP configuration command for any pre-existing bridge groups with an interface configured for routing (configured with an IP address). This is a precaution when crb is first enabled.
•
All of the interfaces or subinterfaces belonging to a specific bridge-group need consistent configuration in regards to configuring or not configuring IP addresses. Mixing interfaces configured with IP addresses and interfaces not configured with IP addresses in the same bridge group can cause inconsistent or unpredictable routing at the network level.
•
Routing between interfaces or subinterfaces that do not belong to the same bridge group could result in inconsistent network behavior. This mode is for routing between members of a bridge-group, but never for routing into or out of a bridge group.
Example 6-8 shows ML-Series card interfaces configured with IP addresses and multiple bridge groups.
Example 6-8 IP Addresses and Multiple Bridge Group
bridge crbbridge 1 proto rstpbridge 1 route ipbridge 2 proto rstpint f0ip address 10.10.10.2 255.255.255.0bridge-group 1int pos 0ip address 20.20.20.2 255.255.255.0bridge-group 1int f1bridge-group 2int pos 1bridge-group 2
Tip
When troubleshooting a bridge crb configuration, make sure the interfaces are not assigned IP addresses belonging to the same subnet. Routing requires IP addresses to be in different subnets.
Bridge IRB Mode
The integrated routing and bridging mode is enabled with the global command bridge irb. Enabling bridge irb disables the other modes.
Bridge irb mode is a super-set of the bridge crb mode. Only IRB mode supports a bridged virtual interface (BVI), which is a virtual Layer 3 interface belonging to a specific bridge-group. A BVI requires an IP address to function and is visible to all member interfaces of that bridge-group. The only proper way to route into and out of a bridge-group is with a BVI.
Bridge irb behaves like bridge crb with the following additions:
•
If a BVI interface is configured for a bridge-group, the BVI IP address should be the only one configured on any member of that bridge-group ( Example 6-9).
•
If both an IP address and a bridge-group are configured on a single interface, enable either IP bridging or IP routing, but not both ( Example 6-10).
•
If IP routing is disabled in a bridge-group, all packets will be bridged, and BVI interfaces will not route IP. This is the default for each bridge-group.
•
If IP bridging and IP routing are both enabled in a bridge-group with a BVI, then IP packets can be bridged between bridge-group members (bridging within the same subnet), and they can be routed in and out of the bridge-group via the BVI.
•
If IP bridging is disabled, but IP routing is enabled in a bridge-group, IP packets can be routed in and out of the bridge-group through the BVI but cannot be bridged between the Layer 2 interfaces. The global command bridge x route ip in combination with the global command no bridge x bridge ip disables IP bridging while enabling IP routing.
Example 6-9 shows ML-Series card interfaces configured in a bridge group and the BVI configured with an IP address. Both bridging and routing are enabled.
Example 6-9 Bridge irb with Routing and Bridging Enabled
bridge irbbridge 1 proto rstpbridge 1 route ipint f0bridge-group 1int pos 0bridge-group 1int bvi 1ip address 10.10.10.1 255.255.255.0Example 6-10 shows ML-Series card interfaces configured with both an IP address and a bridge-group. IP routing is enabled and IP bridging is disabled.
Example 6-10 IP Addresses and Multiple Bridge Group
bridge irbbridge 1 proto rstpbridge 1 route ipno bridge 1 bridge ipint f0ip address 10.10.10.1 255.255.255.0bridge-group 1int pos 0ip address 20.20.20.2 255.255.255.0 bridge-group 2
Tip
When troubleshooting bridge irb, make sure the BVI is configured with an IP address and the BVI bridge members are not configured with IP addresses.
Posted: Mon Oct 22 08:36:49 PDT 2007
All contents are Copyright © 1992--2007 Cisco Systems, Inc. All rights reserved.
Important Notices and Privacy Statement.