PG1X WIKI

My Knowledge Base

User Tools

Site Tools


tech:network:cisco:multicast:routing:pim:pim-dm:config:config

Multicast PIM-DM Configuration

Lab 1: PIM-DM Introduction 96ed25d3-a288-42bd-963d-6f85474fbbd2

96ed25d3-a288-42bd-963d-6f85474fbbd2
network-infrastructure.multicast.pim.pim-dm.96ed25d3
  1. Dependent Custom Images(This lab require following custom images!!)

Common Configuration Snippet

R1

R2

px-ubuntu-nw-0

px-ubuntu-nw-1

Configure PIM-DM

  • R1, R2
configure terminal
!
ip multicast-routing
!
interface GigabitEthernet0/0
 ip pim dense-mode
interface GigabitEthernet0/1
 ip pim dense-mode
!
end

Sender, Receiver Tool Selection

mtools

./msend -g 239.0.1.1 -p 8888 -text "hello multicast world" -t 60
./mreceive -g 239.0.1.1 -p 8888

OK

ubuntu@ubuntu-0:~/mtools$ ./msend -g 239.0.1.1 -p 8888 -text "hello multicast world3" -t 60
Now sending to multicast group: 239.0.1.1
Sending msg 1, TTL 60, to 239.0.1.1:8888: hello multicast world3
Sending msg 2, TTL 60, to 239.0.1.1:8888: hello multicast world3
Sending msg 3, TTL 60, to 239.0.1.1:8888: hello multicast world3
Sending msg 4, TTL 60, to 239.0.1.1:8888: hello multicast world3
Sending msg 5, TTL 60, to 239.0.1.1:8888: hello multicast world3
Sending msg 6, TTL 60, to 239.0.1.1:8888: hello multicast world3
Sending msg 7, TTL 60, to 239.0.1.1:8888: hello multicast world3
Sending msg 8, TTL 60, to 239.0.1.1:8888: hello multicast world3
Sending msg 9, TTL 60, to 239.0.1.1:8888: hello multicast world3
Sending msg 10, TTL 60, to 239.0.1.1:8888: hello multicast world3
^C
ubuntu@ubuntu-0:~/mtools$ 
ubuntu@ubuntu-1:~/mtools$ ./mreceive -g 239.0.1.1 -p 8888
Now receiving from multicast group: 239.0.1.1
Receive msg 1 from 10.1.1.100:8888: hello multicast world
Receive msg 2 from 10.1.1.100:8888: hello multicast world
Receive msg 3 from 10.1.1.100:8888: hello multicast world
Receive msg 4 from 10.1.1.100:8888: hello multicast world2
Receive msg 5 from 10.1.1.100:8888: hello multicast world2
Receive msg 6 from 10.1.1.100:8888: hello multicast world2
Receive msg 7 from 10.1.1.100:8888: hello multicast world3
Receive msg 8 from 10.1.1.100:8888: hello multicast world3
Receive msg 9 from 10.1.1.100:8888: hello multicast world3
Receive msg 10 from 10.1.1.100:8888: hello multicast world3
Receive msg 11 from 10.1.1.100:8888: hello multicast world3
Receive msg 12 from 10.1.1.100:8888: hello multicast world3
Receive msg 13 from 10.1.1.100:8888: hello multicast world3
Receive msg 14 from 10.1.1.100:8888: hello multicast world3
Receive msg 15 from 10.1.1.100:8888: hello multicast world3
^C
ubuntu@ubuntu-1:~/mtools$ 

Multicat

difficult to use for me…

Multicat

Python Implementation

Python Implementation Not Work For Me…

Python Implementation

Verification cc9b543c-f74c-4f59-bc42-501798521ca5

  • Sender
cd mtools/
./msend -g 239.0.1.1 -p 8888 -text "hello multicast world" -t 60
  • Receiver
cd mtools/
./mreceive -g 239.0.1.1 -p 8888
show ip igmp groups
show ip pim interface
show ip pim neighbor
show ip mroute
show ip mroute summary
sh ip mroute | begin \(
sh ip mroute summary | begin \(
show ip rpf x.x.x.x
debug ip mpacket
debug ip pim
debug ip mrouting

Wireshark Filter Expression Cheat Sheet

!ospf && (pim || (icmp && icmp.type != 3 ) || igmp || ip.addr  == 224.0.0.0/4)
network-infrastructure.multicast.pim.pim-dm.96ed25d3.cc9b543c.lab1.r1ge0-1_ubuntu-0-ens2.pcapng
network-infrastructure.multicast.pim.pim-dm.96ed25d3.cc9b543c.lab1.r1ge0-0_r2ge0-1.pcapng
network-infrastructure.multicast.pim.pim-dm.96ed25d3.cc9b543c.lab1.r2ge0-0_ubuntu-1-ens2.pcapng

Notes

  1. ip pim dense-mode must be enabled all multicast packet path including Sender, Receiver connected interfaces.
  2. If an interface be enabled PIM, IGMPv2 enabled automatically. So, IGMP only enable/disable configuration not exist.
  3. Unicast routing is successfully operational is prerequisite.
  4. And RPF check must be successful to flood OIL interface.
    1. RPF check verify received interface to Sender shortest path.

References

tech/network/cisco/multicast/routing/pim/pim-dm/config/config.txt · Last modified: 2021/08/25 13:18 by wnoguchi