Multicast Configuration
Multicast is a method of sending IP datagrams to a group of interested receivers in one 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 tell the network that they are interested in receiving packets sent to that group.
For example, if some content is related to group 239.1.1.1, the source sends data packets destined to 239.1.1.1. Receivers for that content tell 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 < if_name> on
- Set PIM mode to Dense:
> 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 < if_name> off
- For each applicable interface, run:
For dense mode:
> set pim mode dense
For spare mode:
> set pim mode sparse
- For each applicable interface, run:
> set pim interface < if_name> on
Validation
Run:
> 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 you use SMCRoute, dynamic multicast routing should be disabled. The SMCRoute is not included in the OS and must be added manually. Contact Check Point support.
To configure SMCRoute:
Run:
> 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
To start the SMCRoute daemon:
Run:
> g_all tellpm process:smcroute t
To stop the SMCRout daemon:
Run:
> g_all tellpm process:smcroute
> g_all /bin/smcroute -k
SMCRoute Routing Configuration
To add a route:
Run:
> g_all /bin/smcroute -a <InputIntf> <OriginIpAdr> <McGroupAdr> {<OutputIntf1> <OutputIntf2>…}
To remove route:
Run:
> g_all /bin/smcroute -r <InputIntf> <OriginIpAdr> <McGroupAdr> - remove route
Parameter
|
Description
|
<InputIntf>
|
Any network interface listed by ifconfig but not the loopback interface.
|
<OriginIpAdr>
|
The source IP address of the multicast packets routed by this entry. It is a unicast IP address, not a multicast IP address
|
<McGroupAdr>
|
The IP address of the multicast group that is forwarded.
|
<OutputIntf1> <OutputIntf2>…
|
A list of one or more network interfaces to which the multicast packets are forwarded
|
Example:
> g_all /bin/smcroute -a eth2-01 2.2.2.1 225.0.90.90 eth1-01 eth1-02
|