Configuring UDP helper to convert multicast to broadcast or unicast
You can configure UDP helper to convert multicast packets with specific UDP port numbers and multicast addresses to broadcast or unicast packets.
Upon receiving a UDP multicast packet, UDP helper uses the configured UDP ports to match the UDP destination port number of the packet.
If a match is found, UDP helper searches the configured mappings based on the packet's destination multicast address.
UDP helper duplicates the packet and modifies the copy's destination IP address to the broadcast or unicast address in the matched mapping. Then UDP helper forwards the packet to its destination.
If no match is found, UDP helper does not process the packet.
If the packet's destination port number does not match the configured UDP ports, UDP helper does not process the packet.
To configure UDP helper to convert multicast to broadcast or unicast:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enable UDP helper. | udp-helper enable | By default, UDP helper is disabled. |
3. Specify a UDP port number. | udp-helper port { port-number | dns | netbios-ds | netbios-ns | tacacs | tftp | time } | By default, no UDP port numbers are specified. |
4. Enter interface view. | interface interface-type interface-number | N/A |
5. Map a multicast address to a directed broadcast or a unicast address for UDP helper. | udp-helper multicast-map multicast-address ip-address [ global | vpn-instance vpn-instance-name ] [ acl acl-number ] | By default, no address mapping is specified for UDP helper. If you specify multiple multicast and unicast addresses, UDP helper creates one copy for each address. For multicast to broadcast conversion, do not specify a limited broadcast address for the ip-address argument. Use this command on the interface that receives multicast packets. |