Enable Multiprotocol BGP
Multiprotocol BGP (MBGP) is an extension to BGP that enables BGP to carry routing information for multiple network layers and address families. MBGP can carry the unicast routes used for multicast routing separately from the routes used for unicast IP forwarding.
To enable MBGP, you configure BGP to carry NLRI for address families other than unicast IPv4 by including the
family inetstatement:family inet {(any | multicast | unicast) {prefix-limit {maximumnumber;teardown <percentage> <idle-timeout (forever |time-in-minutes)>;}rib-groupgroup-name;}}To enable MBGP to carry network layer reachability information (NLRI) for the IPv6 address family, include the
family inet6statement:family inet6 {(any | multicast | unicast) {prefix-limit {maximumnumber;teardown <percentage> <idle-timeout (forever |minutes)>;}rib-groupgroup-name;}}To enable MBGP to carry Layer 3 VPN network layer reachability information (NLRI) for the IPv4 address family, include the
family inet-vpnstatement:family inet-vpn {(any | multicast | unicast) {prefix-limit {maximumnumber;teardown <percentage> <idle-timeout (forever |minutes)>;}rib-groupgroup-name;}}To enable MBGP to carry Layer 3 VPN NLRI for the IPv6 address family, include the
family inet6-vpnstatement:family inet6-vpn {(any | multicast | unicast) {prefix-limit {maximumnumber;teardown <percentage> <idle-timeout (forever |minutes)>;}rib-groupgroup-name;}}You can enable MBGP for all BGP groups (at the
[edit protocols bgp]hierarchy level), for all peers in a group (at the[edit protocols bgp groupgroup-name]level), or for an individual peer (at the[edit protocols bgp groupgroup-nameneighboraddress]level).
If you change the address family specified in the[edit bgp family inet]hierarchy level, the BGP sessions are dropped and then reestablished.
By default, BGP peers carry only unicast routes used for unicast forwarding purposes. To configure BGP peers to carry only multicast routes, specify the
multicastoption. To configure BGP peers to carry both unicast and multicast routes, specify theanyoption.When MBGP is configured, BGP installs the MBGP routes into different routing tables. Each routing table is identified by the protocol family or address family indicator (AFI) and a subaddress family indicator (SAFI).
The JUNOS software supports all unicast and multicast SAFIs (1 and 2) for both AFI 1 (IPv4) and AFI 2 (IPv6). The following table shows all possible AFI/SAFI combinations and routing tables populated with this information:
If peers are not MBGP, you cannot export routes from
inet.2to them, only routes in theinet.0routing table. Routes ininet.2can be sent only to MBGP peers, since they are sent with subaddress family information that identifies them as routes to multicast sources. Theinet.2table should be a subset of the routes that you have ininet.0, since it is unlikely that you would have a route to a multicast source to which you could not send unicast traffic.The
inet.2routing table is used to keep the unicast routes that are used for multicast reverse-path-forwarding checks. You automatically get aninet.2routing table when you configure MBGP (by setting NLRI toany). The additional reachability information learned by MBGP from the NRLI multicast updates are placed ininet.2.When you enable multiprotocol BGP, you can do the following: