Example: interop8: igmp3/mld2¶
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 multi host-ena
ipv4 multi host-pro
ipv6 multi host-ena
ipv6 multi host-pro
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 igmp
ipv6 mld
no shutdown
exit
interface ens4
ip address 1.1.2.2/24
ipv6 address 1234:2::2/64
ip igmp
ipv6 mld
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 multi host-ena
ipv4 multi host-pro
ipv6 multi host-ena
ipv6 multi host-pro
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
- Install ContainerLab as described here
- Fetch intop8-mcast01 file
- Launch ContainerLab
intop8-mcast01.yml
topology:
containerlab deploy --topo intop8-mcast01.yml
intop8-mcast01.yml
topology:
containerlab destroy --topo intop8-mcast01.yml