Skip to content

Example: interop8: pim

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.0
 ipv6 addr 1234:1::1 ffff:ffff:ffff:ffff::
 ipv4 pim ena
 ipv6 pim ena
 exit
ipv4 route v1 1.1.2.0 255.255.255.0 1.1.1.2
ipv6 route v1 4321::2 ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff fe80::2

r2

hostname r2
ip forwarding
ipv6 forwarding
interface ens3
 ip address 1.1.1.2/24
 ipv6 address 1234:1::2/64
 ip pim
 ipv6 pim
 no shutdown
 exit
interface ens4
 ip address 1.1.2.2/24
 ipv6 address 1234:2::2/64
 ip pim
 ipv6 pim
 no shutdown
 exit

r3

hostname r3
vrf def v1
 rd 1:1
 exit
int eth1
 vrf for v1
 ipv4 addr 1.1.2.1 255.255.255.0
 ipv6 addr 1234:2::1 ffff:ffff:ffff:ffff::
 ipv4 pim ena
 ipv6 pim ena
 exit
ipv4 route v1 1.1.1.0 255.255.255.0 1.1.2.2
ipv6 route v1 1234:1::1 ffff:ffff:ffff:ffff:: 1234:2::2
ipv4 mroute v1 1.1.1.0 255.255.255.0 1.1.2.2
ipv6 mroute v1 1234:1::1 ffff:ffff:ffff:ffff:: 1234:2::2
ipv4 multi v1 join 232.2.2.2 1.1.1.1
ipv6 multi v1 join ff06::1 1234:1::1
r1 tping 100 60 1.1.1.1 vrf v1 sou eth1
r1 tping 100 60 1234:1::1 vrf v1 sou eth1
r3 tping 100 60 1.1.2.1 vrf v1 sou eth1
r3 tping 100 60 1234:2::1 vrf v1 sou eth1
r1 tping 100 60 232.2.2.2 vrf v1 sou eth1
!r1 tping 100 60 ff06::1 vrf v1 sou eth1
  1. Install ContainerLab as described here
  2. Fetch intop8-mcast02 file
  3. Launch ContainerLab intop8-mcast02.yml topology:

   containerlab deploy --topo intop8-mcast02.yml  
4. Destroy ContainerLab intop8-mcast02.yml topology:

   containerlab destroy --topo intop8-mcast02.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 intop8-mcast02.tst file here
  3. Launch intop8-mcast02.tst test:

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

   Ctrl-C (In freeRtr test window)