H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – Multicast
H3C S7500 Series Ethernet Switches Chapter 6
PIM Configuration Commands
6-19
6.1.20 source-policy
Syntax
source-policy acl-number
undo source-policy
View
PIM view
Parameters
acl-number: Basic or advanced ACL number, in the range of 2000 to 3999.
Description
Use the source-policy command to configure the router to filter the received multicast
data packets according to the source address or group address.
Use the undo source-policy command to remove the configuration.
z If source address filtering is configured, as well as basic ACLs, then the router
filters the source addresses of all received multicast data packets. Those failing to
match the ACL will be discarded.
z If source address filtering is configured, as well as advanced ACLs, then the router
filters the source addresses and group addresses of all received multicast data
packets. Those failing to match the ACL will be discarded.
When this feature is configured, the router filters not only multicast data, but also
multicast data encapsulated in register message.
The new configuration overwrites the old one if you run the command for a second time.
Examples
# Set to receive the multicast data packets from source address 10.10.1.2, but discard
those from 10.10.1.1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] multicast routing-enable
[H3C] pim
[H3C-pim] source-policy 2000
[H3C-pim] quit
[H3C] acl number 2000
[H3C-acl-basic-2000] rule permit source 10.10.1.2 0
[H3C-acl-basic-2000] rule deny source 10.10.1.1 0