Multicast Configuration
Description
Multicast is a method of sending IP datagrams to a group of interested receivers in a single transmission. The Multicast group address is used to send and receive multicast messages. Sources use the group address as the IP destination address in their data packets. Receivers use this group address to inform the network that they are interested in receiving packets sent to that group.
For example, if some content is associated with group 239.1.1.1, the source will send data packets destined to 239.1.1.1. Receivers for that content will inform the network that they are interested in receiving data packets sent to the group 239.1.1.1. The receiver joins 239.1.1.1.
Dynamic Multicast Routing (PIM Dense Mode) Configuration
- For each interface that uses PIM Dense mode, run:
set pim interface <interface name> on
- Set PIM mode to Dense. Run via gclish:
set pim mode dense
To change the PIM Multicast Routing mode between dense and sparse:
|
Important - You must use this procedure to change the mode. Failure to do so can cause unexpected behavior.
|
- For each applicable interface, run:
set pim interface <interface name> off
- For each applicable interface, run:
set pim mode dense|sparse
- For each applicable interface, run:
set pim interface <interface name> on
Validation
Run from gclish:
show pim interfaces
Example
> set pim interface eth1-01 on
1_01:
success
> set pim interface eth1-02 on
1_01:
success
> set pim interface eth2-01 on
1_01:
success
> set pim mode dense
1_01:
success
> show pim interfaces
1_01:
Status flag: V - virtual address option enabled
Mode flag: SR - state refresh enabled
Interface Status State Mode DR Address DR Pri NumNbrs
eth2-01 Up DR dense 2.2.2.10 1 0
eth1-01 Up DR dense 12.12.12.10 1 0
eth1-02 Up DR dense 22.22.22.10 1 0
Static Multicast Routing (SMCRoute) configuration
When working with SMCRoute, dynamic multicast routing should be disabled. The SMCRoute is not included in the OS and should be added manually. Please contact Check Point support.
SMCRoute daemon configuration:
g_all dbset process:smcroute:runlevel 4
g_all dbset process:smcroute:path /bin
g_all dbset process:smcroute:arg:1 -d
g_all dbset :save
Start the SMCRoute daemon
g_all tellpm process:smcroute t
Stopping the SMCRout daemon
g_all tellpm process:smcroute
g_all /bin/smcroute -k
SMCRoute Routing configuration
To add route:
g_all /bin/smcroute -a <InputIntf> <OriginIpAdr> <McGroupAdr> <OutputIntf> [<OutputIntf>]…
To remove route:
g_all /bin/smcroute -r <InputIntf> <OriginIpAdr> <McGroupAdr> - remove route
Parameter
|
Description
|
InputIntf
|
<InputIntf> can be any network interface as listed by 'ifconfig' but not the loopback interface.
|
OriginIpAdr
|
The source IP address of the multicast packets that will be routed by this entry. It is a unicast IP address not a multicast IP address
|
McGroupAdr
|
The IP address of the multicast group that will be forwarded.
|
<OutputIntf>
[<OutputIntf>]…
|
a list of one or more network interfaces to which the multicast packets will be forwarded
|
Example:
g_all /bin/smcroute -a eth2-01 2.2.2.1 225.0.90.90 eth1-01 eth1-02
|