Understanding NLRI Keywords and Address Families
Configuring an MBGP Peer Group
Configuring Route Maps for MBGP Prefixes
Redistributing Prefixes into MBGP
Configuring DVMRP Interoperability with MBGP
Redistributing MBGP Routes into DVMRP
Redistributing DVMRP Routes into MBGP
Configuring an MBGP Route Reflector
Configuring Aggregate MBGP Addresses
Verifying MBGP Configuration and Operation
MBGP Network Advertisement Example
MBGP Route Redistribute Example
Aggregate MBGP Address Example
Last Updated: October 24, 2017
First Published: January 23, 2014
Release: Cisco IOS Release 15.4(1)CG
This document describes the Multiprotocol Border Gateway Protocol (MBGP) based upon RFC 2283, Multiprotocol Extensions for BGP-4 for Cisco 1120 and 1240 Connected Grid Routers (hereafter referred to as CGR 1000), running CG IOS release 15.4(1)CG. This documents contains the following sections:
An extension of BGP, MBGP offers the following benefits:
■A network can support incongruent unicast and multicast topologies.
■A network can support congruent unicast and multicast topologies that have different policies (BGP filtering configurations).
■A network can carry routing information for multiple network layer protocol address families (for example, IP Version 4 or VPN Version 4) as specified in RFC 1700, Assigned Numbers.
■A network that is backward compatible—routers that support the multiprotocol extensions can interoperate with routers that do not support the extensions.
■All of the routing policy capabilities of BGP can be applied to MBGP.
■All BGP commands can be used with MBGP.
You should be familiar with BGP and IP multicast routing before you attempt to configure MBGP. For IP multicast configuration information and examples, refer to the “IP Multicast” part of this document and Cisco IOS IP Command Reference, Volume 3 of 3: Multicast.
MBGP is an enhanced BGP that carries routing information for multiple network layer protocols and IP multicast routes. BGP carries two sets of routes, one set for unicast routing and one set for multicast routing. The routes associated with multicast routing are used by the Protocol Independent Multicast (PIM) feature to build data distribution trees.
MBGP is useful when you want a link dedicated to multicast traffic, perhaps to limit which resources are used for which traffic. Perhaps you want all multicast traffic exchanged at one network access point (NAP). MBGP allows you to have a unicast routing topology different from a multicast routing topology. Thus, you have more control over your network and resources.
In BGP, the only way to perform interdomain multicast routing was to use the BGP infrastructure that was in place for unicast routing. If those routers were not multicast-capable, or there were differing policies where you wanted multicast traffic to flow, multicast routing could not be supported without MBGP.
It is possible to configure BGP peers that exchange both unicast and multicast network layer reachability information (NLRI), but you cannot connect MBGP clouds with a BGP cloud. That is, you cannot redistribute MBGP routes into BGP.
illustrates a simple example of unicast and multicast topologies that are incongruent, and therefore are not possible without MBGP.
Autonomous systems 100, 200, and 300 are each connected to two NAPs that are FDDI rings. One is used for unicast peering (and therefore the exchanging of unicast traffic). The Multicast Friendly Interconnect (MFI) ring is used for multicast peering (and therefore the exchanging of multicast traffic). Each router is unicast- and multicast-capable.
Figure 60 Incongruent Unicast and Multicast Routes
Multicast BGP Environment is a topology of unicast-only routers and multicast-only routers. The two routers on the left are unicast-only routers (that is, they do not support or are not configured to perform multicast routing). The two routers on the right are multicast-only routers. Routers A and B support both unicast and multicast routing. The unicast-only and multicast-only routers are connected to a single NAP.
In Multicast BGP Environment, only unicast traffic can travel from Router A to the unicast routers to Router B and back. Multicast traffic could not flow on that path, so another routing table is required. Multicast traffic uses the path from Router A to the multicast routers to Router B and back.
Multicast BGP Environment illustrates an MBGP environment with a separate unicast route and multicast route from Router A to Router B. MBGP allows these routes to be noncongruent. Both of the autonomous systems must be configured for internal MBGP (IMBGP) in the figure.
A multicast routing protocol, such as PIM, uses the multicast BGP database to perform Reverse Path Forwarding (RPF) lookups for multicast-capable sources. Thus, packets can be sent and accepted on the multicast topology but not on the unicast topology.
Figure 61 Multicast BGP Environment
To configure MBGP, perform the following tasks described in the following sections. Each section in the list is identified as either required or optional.
■Understanding NLRI Keywords and Address Families (required)
■Configuring an MBGP Peer (required)
■Configuring an MBGP Peer Group (optional)
■Advertising Routes into MBGP (required)
■Configuring Route Maps for MBGP Prefixes (optional)
■Redistributing Prefixes into MBGP (required)
■Configuring DVMRP Interoperability with MBGP (optional)
■Configuring an MBGP Route Reflector (optional)
■Configuring Aggregate MBGP Addresses (optional)
■Verifying MBGP Configuration and Operation (optional)
MBGP was introduced in Cisco IOS Release 11.1(20)CC and Cisco IOS Release 12.0(2)S prior to it being integrated into Cisco IOS Release 12.1. In Cisco IOS Release 11.1(20)CC and later releases and Cisco IOS Release 12.0(2)S and later releases, the Cisco IOS software uses NLRI keywords to enable MBGP over a BGP session and to populate unicast BGP prefixes in the unicast database and multicast BGP prefixes in the multicast database. In Cisco IOS Release 12.1, the Cisco IOS software uses separate address families to enable MBGP over a BGP session and to populate unicast BGP prefixes in the unicast database and multicast BGP prefixes in the multicast database.
Cisco IOS Release 12.1 does not support the NLRI keywords. However, for backward compatibility, the NLRI keyword configuration of a Cisco router is automatically converted to an address family configuration when a router is upgraded to Cisco IOS Release 12.1. The following example shows an NLRI keyword configuration for a Cisco router that is running Cisco IOS Release 12.0(8)S:
The following example shows the resulting address family configuration after the same router is upgraded to Cisco IOS Release 12.1:
Although supported in Cisco IOS Release 12.1, the following sections do not explain how to configure the BGP-4 extensions for Virtual Private Network (VPN) address family prefixes. Configuring VPN address family prefixes will be explained in a later release of the Cisco IOS IP Configuration Guide and the Cisco IOS IP Command Reference, Volume 2 of 3: Routing Protocols.
To configure MBGP between two routers, use the following commands beginning in global configuration mode:
By default, neighbors that are defined using the neighbor remote-as command in router configuration mode exchange only unicast address prefixes. To exchange other address prefix types, such as multicast and VPNv4, neighbors must also be activated using the neighbor activate command in address family configuration mode, as shown.
See the MBGP Peer Example section for MBGP peer configuration examples.
To configure a peer group to perform MBGP routing, use the following commands beginning in global configuration mode:
By default, neighbors that are defined using the neighbor remote-as command in router configuration mode exchange only unicast address prefixes. To exchange other address prefix types, such as multicast and VPNv4, neighbors must also be activated using the neighbor activate command in address family configuration mode, as shown.
Members of a peer group automatically inherit the address prefix configuration of the peer group.
Refer to the section “Configure BGP Peer Groups” of the “Configuring BGP” chapter in the Cisco IOS IP Command Reference, Volume 2 of 3: Routing Protocols for information and instructions on assigning options to the peer group and making a BGP or MBGP neighbor a member of the peer group.
See the “MBGP Peer Group Example” section.
To advertise (inject) a network number and mask into MBGP, use the following commands beginning in global configuration mode:
Networks that are defined in router configuration mode using the network command are injected into the unicast database by default. To inject a network into another database, such as the multicast database, the network must be defined in address family configuration mode using the network command, as shown.
To redistribute Distance Vector Multicast Routing Protocol (DVMRP) routes into MBGP, see the “Redistributing DVMRP Routes into MBGP” section. See the MBGP Network Advertisement Example section for MBGP network advertisement configuration examples.
To configure a route map for MBGP prefixes, use the following commands beginning in global configuration mode:
By default, neighbors that are defined using the neighbor remote-as command in router configuration mode exchange only unicast address prefixes. To exchange other address prefix types, such as multicast and VPNv4, neighbors must also be activated using the neighbor activate command in address family configuration mode, as shown.
Route maps that are applied in router configuration mode using the neighbor route-map command are applied to unicast address prefixes by default. Route maps for other address families, such as multicast, must be applied in address family configuration mode using the neighbor route-map command, as shown. The route maps are applied either as the inbound or outbound routing policy for neighbors under each address family. Configuring separate route maps under each address family simplifies managing complicated or different policies for each address family.
See the “MBGP Route Map Example” section for MBGP route map configuration examples.
Redistribution is the process of injecting prefixes from one routing protocol into another routing protocol. The tasks in this section explain how to inject prefixes from a routing protocol into MBGP. Specifically, prefixes that are redistributed into MBGP using the redistribute command are injected into the unicast database, the multicast database, or both.
To inject prefixes from a routing protocol into MBGP, use the following commands beginning in global configuration mode:
Route maps that are applied in router configuration mode using the redistribute route-map command are applied to unicast address prefixes by default. Route maps for other address families, such as multicast, must be applied in address family configuration mode using the redistribute route-map command, as shown.
See the “MBGP Route Redistribute Example” section for MBGP route redistribution configuration examples.
Cisco multicast routers using PIM can interoperate with non-Cisco multicast routers that use DVMRP.
PIM routers dynamically discover DVMRP multicast routers on attached networks. Once a DVMRP neighbor has been discovered, the router caches DVMRP routes that the neighbor sends. Those routes describe sources in a DVMRP cloud that want their packets to be received by receivers outside of this routing domain. MBGP allows the source prefixes of those sources to be known outside of the routing domain.
The router periodically sends DVMRP report messages advertising the unicast sources reachable in the PIM domain.
By default, no MBGP routes are redistributed into DVMRP. However, you can configure all MBGP routes to be redistributed into DVMRP with a specified metric. Furthermore, to redistribute only certain MBGP routes into DVMRP, you can configure the metric and subject it to route map conditions. If you supply a route map, you can specify various match criteria options for the MBGP routes. If the route passes the route map, then the route is redistributed into DVMRP.
If there are multicast sources in other routing domains that are known via MBGP and there are receivers in a DVMRP cloud, they will want to receive packets from those sources. Therefore, you need to redistribute the MBGP prefix routes into DVMRP. This will be the scenario when distributing MBGP prefixes into the MBONE.
To redistribute MBGP routes into DVMRP, use the following command in interface configuration mode:
If there are multicast sources in a DVMRP routing domain that need to reach receivers in MBGP routing domains, you need to redistribute DVMRP prefixes into MBGP. If you supply a route map, you can also use the set route-map configuration commands to specify various BGP attribute settings.
To redistribute DVMRP prefixes into MBGP, use the following command in address family configuration mode:
To redistribute DVMRP prefixes into MBGP, use the following command in router configuration mode:
See the “MBGP Route Redistribute Example” section for an example of redistributing DVMRP routers into an MBGP routing domain.
To configure a local router as a route reflector of MBGP prefixes, use the following commands beginning in global configuration mode:
By default, neighbors that are defined using the neighbor remote-as command in router configuration mode exchange only unicast address prefixes. To exchange other address prefix types, such as multicast and VPNv4, neighbors must also be activated using the neighbor activate command in address family configuration mode, as shown.
Route reflectors and clients (neighbors or internal BGP peer groups) that are defined in router configuration mode using the neighbor route-reflector-client command reflect unicast address prefixes to and from those clients by default. To reflect prefixes for other address families, such as multicast, define the reflectors and clients in address family configuration mode using the neighbor route-reflector-client command, as shown.
See the MBGP Route Reflector Example section for MBGP route reflector configuration examples.
The tasks in this section explain how to configure an aggregate address for MBGP. Specifically, the tasks in this section explain how to inject an aggregate address into the multicast database, the unicast database, or both.
To configure an aggregate address for MBGP, use the following commands beginning in global configuration mode:
Aggregate addresses that are defined in router configuration mode using the aggregate-address as-set command are injected into the unicast database by default. To enter an aggregate address in another database, such as the multicast database, the aggregate address must be defined in address family configuration mode using the aggregate-address as-set command, as shown.
See the Aggregate MBGP Address Example section for aggregate MBGP address configuration examples.
To verify MBGP configuration and operation, perform the following steps:
For a description of each output display field, refer to the show ip bgp ipv4 multicast command in the Cisco IOS IP Command Reference, Volume 3 of 3: Multicast.
■MBGP Network Advertisement Example
Example 1: The following example shows how to use an address family to configure a neighbor as both unicast and multicast-capable:
Example 2: The following example shows how to use an address family to configure a peer group so that all members of the peer group are both unicast and multicast-capable.
The neighbor activate command is not required in this configuration because peer groups are activated automatically as peer group configuration parameters are applied.
The following examples show how to use an address family to inject a network number and mask into the unicast database and the multicast database:
The following example shows how to use an address family to configure BGP so that any unicast and multicast routes from neighbor 10.1.1.1 are accepted if they match access list 1:
The following example shows how to use an address family to redistribute DVMRP routes that match access list 1 into the multicast database and the unicast database of the local router:
The following example shows how to use an address family to configure internal BGP peer 10.1.1.1 as a route reflector client for both unicast and multicast prefixes:
To identify the hardware platform or software image information associated with a feature, use the Feature Navigator on Cisco.com to search for information about the feature or refer to the software release notes for a specific release.
■For a complete description of the MBGP commands in this chapter, refer to the “IPv6 Routing: Multiprotocol BGP Extensions for IPv6” chapter of the IP Routing: BGP Configuration Guide, Cisco IOS Release 15M&T. To locate documentation for other commands that appear in this document, use the command reference master index, or search online.
■For BGP configuration information and examples, refer to the “Configuring a Basic BGP Network” chapter of the IP Routing: BGP Configuration Guide, Cisco IOS Release 15M&T.
■For BGP command descriptions, refer to the “Cisco Implementation of BGP Global and Address Family Configuration Commands” chapter of the IP Routing: BGP Configuration Guide, Cisco IOS Release 15M&T.