Master IP Addressing and Subnetting: The Ultimate Course for Network Engineers—Limited Time Offer: $100 Course for FREE!

Hey there, fellow Network Engineers! Tired of feeling lost in the world of IP addressing and subnetting? Look no further! My course, "Mastering IP Addressing and Subnetting," is here to give you the skills and confidence you need to tackle any subnetting challenge. And the best part? For a limited time, I'm offering it for free to my website visitors and subscribers with the code "year2023" at checkout. Don't miss out on this opportunity to level up your networking game.

Click now to check out the course!

MSDP with BGP Address-family Ipv4 Multicast

Today we will be discussing MSDP with BGP ipv4 multicast address-family.

The topology is simple we have taken four routers R1 in BGP AS 1 , R5 in BGP AS 5 and R2,R3,R4 are in confederation 64511, our goal is to move multicast traffic from R1 to R5 , we are running Multicast Sparse-mode and using PIM BSR , all loopback0 interface of each router has joined a group 234.0.0.R where R is the router number.The sample diagram of gns3 is shown below.

Topology Overview:-

1.We are running OSPF Area 0 between R2 , R4  and R3 as IGP and put default route pointing towards EBGP peer on R1 and R5 towards R2 and R3 for the purpose of Back route,rest of the BGP and OSPF configuration are normal R4 is Route Reflector, rest nothing fancy.

2.We advertised Loopback0 interface of R1,R4and R5 into bgp address-family ipv4 and also in address-family ipv4 multicast.

Steps to configure Multicast over BGP cloud:-

1.Enable Multicast Routing by the command “ip multicast-routing” on each router.

2.Enable pim sparse-mode on every interface on a router by the command “ip pim sparse-mode” under interface config mode.

3.Join multicast group 234.0.0.R where R is router number on every router Lo0pback0 interface by the command “ip igmp join-group 234.0.0.R” under interface config mode.

4.We made PIM RP and BSR both on R1 Loopback0 for BGP AS 1.

5.We made PIM RP on R4 Loopback0 and BSR on R2 Loopback0 for BGP AS 243.

6.We made PIM RP R5 and BSR on R5 Loopback0 for BGP AS 5.

7.We set our PIM border on R2 S0/0 and R3 S0/0 by the command “ip pim bsr-border” under interface config mode that the PIM RP information cannot be used outside our own AS.

8.We then start building MSDP peering from AS 1 and AS 5 to AS 243 with the command “ip msdp peer x.x.x.x connect-source loopback0 remote-as Y”, make sure you make your MSDP peers between both AS’s RP only(R1-R4 and R5-R4), else it will not work.

9.We can check the MSDP output with the command “sh ip msdp summary”.

R4#sh run | i msdp
ip msdp peer connect-source Loopback0 remote-as 1
ip msdp peer connect-source Loopback0 remote-as 5
R4#sh ip msdp summ
MSDP Peer Status Summary
Peer Address     AS    State    Uptime/  Reset SA    Peer Name
Downtime Count Count          1     Up       00:19:59 1     0     ?          5     Up       00:26:02 0     0     ?

10.Then we will enable BGP address-family ipv4 multicast between R1 and R2,R2 and R4,R4 and R3, and lastly between R3 to R5.The sample config of R2 is below.

R2#sh run | s bgp
router bgp 64511
bgp log-neighbor-changes
bgp confederation identifier 243
neighbor remote-as 64511
neighbor update-source Loopback0
neighbor remote-as 1
address-family ipv4
neighbor activate
neighbor next-hop-self
neighbor activate
no auto-summary
no synchronization
address-family ipv4 multicast
neighbor activate
neighbor activate
no auto-summary
no synchronization

NOTE:-Make sure not to set “next-hop-self” on session between R2 to R4 and R3 to R4 in address-family ipv4 multicast as shown in the above config.

11.Upto this point our MSDP peers are up and our BGP ipv4 multicast address-families are up , now this is the time to run some SHOW commands to prove that we are correct till now.

R1#sh ip msdp summ
MSDP Peer Status Summary
Peer Address     AS    State    Uptime/  Reset SA    Peer Name
Downtime Count Count          243   Up       00:02:53 0     1     ?

R1#sh ip bgp ipv4 multicast
BGP table version is 4, local router ID is
Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
r RIB-failure, S Stale
Origin codes: i – IGP, e – EGP, ? – incomplete

Network          Next Hop            Metric LocPrf Weight Path
*>                  0         32768 i
*>                             0 243 i
*>                             0 243 5 i

R1#sh ip pim rp mapp
PIM Group-to-RP Mappings
This system is a candidate RP (v2)
This system is the Bootstrap Router (v2)

RP (?), v2
Info source: (?), via bootstrap, priority 0, holdtime 150
Uptime: 00:12:19, expires: 00:02:07
R1#sh ip pim int

Address          Interface                Ver/   Nbr    Query  DR     DR
Mode   Count  Intvl  Prior          Loopback0                v2/S   0      30     1       Serial0/0                v2/S   1      30     1

R1#sh ip pim neighbor
PIM Neighbor Table
Mode: B – Bidir Capable, DR – Designated Router, N – Default DR Priority,
S – State Refresh Capable
Neighbor          Interface                Uptime/Expires    Ver   DR
Address                                                            Prio/Mode        Serial0/0                00:52:30/00:01:39 v2    1 / S

R1#sh ip igmp groups
IGMP Connected Group Membership
Group Address    Interface                Uptime    Expires   Last Reporter   Group Accounted        Loopback0                00:55:15  00:02:35       Loopback0                00:55:15  00:02:33

Same verification commands run on R5 and found the configuration healthy and working.

Now this is the time to check our configuration is working in the way that we were supposed to,we can check by pinging the remote end R5 IGMP join group from R1 , if this is working then we are in a good shape.


Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to, timeout is 2 seconds:

Reply to request 0 from, 52 ms
Reply to request 0 from, 88 ms

–>>Boom and it is working like a champ.Lastly we will also check from R5 to R1.


Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to, timeout is 2 seconds:

Reply to request 0 from, 148 ms
Reply to request 0 from, 192 ms

Again the ping results shows that we indeed made it working from both ends

Afroz Ahmad
Afroz Ahmad

"Hey there, network enthusiasts! My name is Afroz, and I've been a CCIE for over 14 years. I work as a Network Designer, and my true passion is teaching others about the industry and sharing my knowledge through my blog and courses. I know the struggles of navigating the complex world of networking, but I firmly believe that teaching makes you a better learner and reinforces understanding. So, whether you're just starting out or a seasoned veteran, join me on this journey of learning and discovery, it will be worth it, and who knows, you might even have some fun along the way!"

Articles: 83

Leave a Reply

Your email address will not be published. Required fields are marked *