Skip to content

Example: multicast routing with static flooding

Alt text

r1

hostname r1
vrf def v1
 rd 1:1
 exit
int eth1
 vrf for v1
 ipv4 addr 1.1.1.1 255.255.255.252
 ipv6 addr 1234:1::1 ffff:ffff::
 ipv4 multi static 232.2.2.2 1.1.1.1
 ipv6 multi static ff06::1 1234:1::1
 exit
ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.2
ipv6 route v1 :: :: 1234:1::2

r2

hostname r2
vrf def v1
 rd 1:1
 exit
int eth1
 vrf for v1
 ipv4 addr 1.1.1.2 255.255.255.252
 ipv6 addr 1234:1::2 ffff:ffff::
 exit
int eth2
 vrf for v1
 ipv4 addr 1.1.1.6 255.255.255.252
 ipv6 addr 1234:2::2 ffff:ffff::
 ipv4 multi static 232.2.2.2 1.1.1.1
 ipv6 multi static ff06::1 1234:1::1
 exit
int eth3
 vrf for v1
 ipv4 addr 1.1.1.10 255.255.255.252
 ipv6 addr 1234:3::2 ffff:ffff::
 ipv4 multi static 232.2.2.2 1.1.1.1
 ipv6 multi static ff06::1 1234:1::1
 exit

r3

hostname r3
vrf def v1
 rd 1:1
 exit
int eth1
 vrf for v1
 ipv4 addr 1.1.1.5 255.255.255.252
 ipv6 addr 1234:2::1 ffff:ffff::
 exit
ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.6
ipv6 route v1 :: :: 1234:2::2
ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.6
ipv6 mroute v1 :: :: 1234:2::2
ipv4 multi v1 join 232.2.2.2 1.1.1.1
ipv6 multi v1 join ff06::1 1234:1::1

r4

hostname r4
vrf def v1
 rd 1:1
 exit
int eth1
 vrf for v1
 ipv4 addr 1.1.1.9 255.255.255.252
 ipv6 addr 1234:3::1 ffff:ffff::
 exit
ipv4 route v1 0.0.0.0 0.0.0.0 1.1.1.10
ipv6 route v1 :: :: 1234:3::2
ipv4 mroute v1 0.0.0.0 0.0.0.0 1.1.1.10
ipv6 mroute v1 :: :: 1234:3::2
ipv4 multi v1 join 232.2.2.2 1.1.1.1
ipv6 multi v1 join ff06::1 1234:1::1
r2 tping 100 5 1.1.1.9 vrf v1
r2 tping 100 5 1.1.1.5 vrf v1
r2 tping 100 5 1.1.1.1 vrf v1
r2 tping 100 5 1234:3::1 vrf v1
r2 tping 100 5 1234:2::1 vrf v1
r2 tping 100 5 1234:1::1 vrf v1
r1 tping 100 5 1.1.1.9 vrf v1
r1 tping 100 5 1.1.1.5 vrf v1
r1 tping 100 5 1234:3::1 vrf v1
r1 tping 100 5 1234:2::1 vrf v1
r3 tping 100 5 1.1.1.1 vrf v1
r3 tping 100 5 1234:1::1 vrf v1
r4 tping 100 5 1.1.1.1 vrf v1
r4 tping 100 5 1234:1::1 vrf v1
r1 tping 200 5 232.2.2.2 vrf v1 sou eth1 multi
r1 tping 200 5 ff06::1 vrf v1 sou eth1 multi
r2 output show ipv4 mroute v1
r2 output show ipv6 mroute v1
output ../binTmp/rout-mcast.html
<html><body bgcolor="#000000" text="#FFFFFF" link="#00FFFF" vlink="#00FFFF" alink="#00FFFF">
here is the ipv4 route:
here is the ipv6 route:
  1. Install ContainerLab as described here
  2. Fetch rout-mcast01 file
  3. Launch ContainerLab rout-mcast01.yml topology:

   containerlab deploy --topo rout-mcast01.yml  
4. Destroy ContainerLab rout-mcast01.yml topology:

   containerlab destroy --topo rout-mcast01.yml  
5. Copy-paste configuration for each node in the lab topology

  1. Fetch or compile freeRtr rtr.jar file.
    You can grab it here
  2. Fetch rout-mcast01.tst file here
  3. Launch rout-mcast01.tst test:

   java -jar ../../rtr.jar test tester rout-mcast01 path ./ temp ./ wait
4. Destroy freeRtr rout-mcast01.tst test:

   Ctrl-C (In freeRtr test window)