Adjusting Control Parameters for a Multicast Source
Pre-configuration Tasks
Before setting the parameters for controlling a multicast source, complete the following tasks:
- Configure an IPv6 unicast routing protocol to ensure normal unicast routing on the network.
- Enable IPv6 PIM-SM.
Context
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 lifetime of the source. If the device receives a packet from the source before the timer expires, it resets the timer. If the device does not receive any multicast packet from the source within the lifetime of the source, it considers the corresponding (S, G) entry invalid and deletes this entry.
You can configure the lifetime of the source. To control multicast traffic or ensure data security, configure source address-based filtering policies on the PIM router so that the PIM router accepts only multicast data allowed by the policies.
Procedure
- Run system-view
The system view is displayed.
- Run pim-ipv6
The PIM-IPv6 view is displayed.
- Run source-lifetime interval
The lifetime of a multicast source is configured.
- Run source-policy { acl6-number | acl6-name acl6-name }
A multicast source address-based filtering policy is configured.
If a basic access control list (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 based on statically configured MLD (S, G) entries.
Verifying the Configuration
After the control parameters of a multicast source are adjusted, you can check entries in the IPv6 PIM routing table.
Run the following commands to check the IPv6 PIM routing table.
- display pim ipv6 routing-table [ ipv6-source-address [ mask mask-length ] | ipv6-group-address [ mask mask-length ] | flags flag-value | fsm | incoming-interface { interface-type interface-number | register } | mode { dm | sm | ssm } | outgoing-interface { exclude | include | match } { interface-type interface-number | none | register } ] * [ outgoing-interface-number [ number ] ]
display pim ipv6 routing-table brief [ ipv6-source-address [ mask mask-length ] | ipv6-group-address [ mask mask-length ] | incoming-interface { interface-type interface-number | register } ] *