Converting Broadcasts to Multicasts
Problem
You have a broadcast-based application that you want to treat as multicast so that it can cross the network.
Solution
Cisco has a special feature called an IP Multicast Helper, which you can use to convert broadcast packets to multicast packets. Then you can use PIM to send these packets throughout the network. At the last-hop routers you can then convert the multicast packets back to broadcast. This is useful for older broadcast-based applications that do not support multicast transmission.
Router1 is the first-hop
router, or the one closest to the broadcast source, which is on the
interface FastEthernet0/0. It converts broadcast
packets with UDP port 3535 received
on this interface into multicast packets in group 239.3.5.35:
Router1#configure terminalEnter configuration commands, one per line. End with CNTL/Z. Router1(config)#ip multicast-routingRouter1(config)#access-list115permit any any udpRouter1(config)#3535access-list115deny any any udpRouter1(config)#interfaceRouter1(config-if)#FastEthernet0/0ip directed broadcastRouter1(config-if)#ip multicast helper-map broadcastRouter1(config-if)#239.3.5.35 115exitRouter1(config)#ip pim sparse-dense-modeRouter1(config)#ip forward-protocol udpRouter1(config)#3535endRouter1#
The last-hop router’s configuration is similar, except that it must be configured to turn multicast packets for this group back into broadcasts:
Router2#configure terminal Enter configuration commands, one per ...Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access