Before setting the parameters for controlling a multicast source, complete the following tasks:
After a PIM device receives a multicast packet from a multicast source, it starts a timer for the (S, G) entry and sets the timer to the multicast source lifetime. If the device receives a packet from the source before the timer expires, it resets the timer. If not, the device considers the corresponding (S, G) entry invalid and deletes it. The multicast source lifetime is configurable.
To control multicast traffic or ensure data security, configure source address-based filtering policies on PIM devices to ensure that they accept only multicast data allowed by the policies.
The system view is displayed.
The PIM view is displayed.
The multicast source lifetime is configured.
A multicast source address-based filtering policy is configured.
If a basic ACL is specified in the command, the allowed multicast packets are specified by the source parameter in the rule configured under the basic ACL. The device forwards only the multicast packets with the source addresses allowed by the filtering policy.
If an advanced ACL is specified in the command, the allowed multicast packets are specified by source and destination parameters in the rule configured under the advanced ACL. The device forwards only the multicast packets with both source addresses and group addresses allowed by the filtering policy.
If the specified ACL contains no rule, the device does not forward multicast packets from any sources.
This command does not filter multicast packets that match the PIM entries generated from statically configured IGMP (S, G) entries.
After configuring control parameters of a multicast source, run the following commands to check the PIM routing table information.
display pim [ vpn-instance vpn-instance-name | all-instance ] routing-table [ group-address [ mask { group-mask-length | group-mask } ] | source-address [ mask { source-mask-length | source-mask } ] | incoming-interface { interface-type interface-number | register } | outgoing-interface { include | exclude | match } { interface-type interface-number | register | none } | mode { dm | sm | ssm } | flags flag-value | fsm ] * [ outgoing-interface-number [ number ] ]
display pim [ vpn-instance vpn-instance-name | all-instance ] routing-table brief [ group-address [ mask { group-mask-length | group-mask } ] | source-address [ mask { source-mask-length | source-mask } ] | incoming-interface { interface-type interface-number | register } ] *