The import-source command prevents the information of active sources in a domain from being advertised when a Source Active (SA) message is created.
The undo import-source command restores the default configuration.
| Parameter | Description | Value |
|---|---|---|
| acl-number | Specifies the number of the ACL. The ACL controls the advertisement of the local (S, G) entry. | The number is an integer ranging from 2000 to 3999. The ACL with the number ranging from 2000 to 2999 belongs to the basic ACL and the ACL with the number ranging from 3000 to 3999 belongs to the advanced ACL. The ACL is defined to filter the source and multicast group. If the ACL is not specified, no information about the multicast source is advertised. |
By default, the information of all active sources is advertised in a domain through SA messages.
When the import-source command is used, MSDP filters advertised (S, G) forwarding entries based on source addresses when creating SA messages. Therefore, when creating SA messages, MSDP can control the transmission of information about multicast sources.
In addition to controlling the SA message creation, MSDP can filter forwarded SA messages through the peer sa-policy import or peer sa-policy export commands.
In the basic ACL view, set the source address range of multicast packets that is advertised through the SA message by specifying the source parameter in the rule command.
In the advanced ACL view, set the source address range of multicast packets that is advertised through the SA message by specifying the source parameter in the rule command, and set the address range of multicast groups that is advertised through the SA message by specifying the destination parameter in the rule command.
# Configure an MSDP peer to advertise the information about a specified active source when creating SA messages. The multicast source is on 10.10.0.0/16 network segment, and the multicast group address is 225.1.0.0/16.
<sysname> system-view
[sysname] acl number 3101
[sysname-acl-adv-3101] rule permit ip source 10.10.0.0 0.0.255.255 destination 225.1.0.0 0.0.255.255
[sysname-acl-adv-3101] quit
[sysname] multicast routing-enable
[sysname] msdp
[sysname-msdp] import-source acl 3101