Configuring UDP helper to convert broadcast to multicast
Network requirements
As shown in Figure 75, Router B can receive multicast packets destined for 225.1.1.1.
Configure UDP helper to convert broadcast to multicast on GigabitEthernet 1/0/1 of Router A. This feature enables Router A to forward broadcast packets with UDP destination port number 55 to the multicast group 225.1.1.1.
Figure 75: Network diagram
Configuration procedure
Make sure Router A can reach the subnet 10.2.0.0/16.
# Enable UDP helper.
<RouterA> system-view [RouterA] udp-helper enable
# Enable the UDP port 55 for UDP helper.
[RouterA] udp-helper port 55
# Configure UDP helper to convert broadcast packets to multicast packets destined for 225.1.1.1 on GigabitEthernet 1/0/1.
[RouterA] interface gigabitethernet 1/0/1 [RouterA-GigabitEthernet1/0/1] ip address 10.110.1.1 16 [RouterA-GigabitEthernet1/0/1] udp-helper broadcast-map 225.1.1.1 [RouterA-GigabitEthernet1/0/1] quit
# Enable IP multicast routing globally.
[RouterA] multicast routing [RouterA-mrib] quit
# Enable PIM-DIM and IGMP on GigabitEthernet 1/0/1.
[RouterA] interface gigabitethernet 1/0/1 [RouterA-GigabitEthernet1/0/1] pim dm [RouterA-GigabitEthernet1/0/1] igmp enable
# Configure GigabitEthernet 1/0/1 as a static member of the multicast group 225.1.1.1.
[RouterA-GigabitEthernet1/0/1] igmp static-group 225.1.1.1
# Enable PIM-DIM and IGMP on GigabitEthernet 1/0/2.
[RouterA-GigabitEthernet1/0/2] pim dm [RouterA-GigabitEthernet1/0/2] igmp enable
# Configure GigabitEthernet 1/0/2 as a static member of the multicast group 225.1.1.1.
[RouterA-GigabitEthernet1/0/2] igmp static-group 225.1.1.1
Verifying the configuration
Verify that you can capture multicast packets from Router A on Router B.