peer sa-policy export

Function

The peer sa-policy export command configures a policy for filtering (S, G) information in source active (SA) messages to be forwarded to a specified Multicast Source Discovery Protocol (MSDP) peer.

The undo peer sa-policy export command restores the default configuration.

By default, (S, G) information in SA messages is not filtered, so that all (S, G) entry information can be forwarded to an MSDP peer.

Format

peer peer-address sa-policy export acl { advanced-acl-number | acl-name }

peer peer-address sa-policy export

undo peer peer-address sa-policy export

Parameters

Parameter Description Value
peer-address

Specifies the address of an MSDP peer.

The value is in dotted decimal notation.

acl advanced-acl-number

Specifies the number of an advanced ACL.

The value is an integer that ranges from 3000 to 3999. If this parameter is not specified, all the SA messages that carry the (S, G) entry are filtered out.

acl acl-name

Specifies the name of a named ACL.

The value is a string of 1 to 64 case-sensitive characters, spaces not supported. The value must start with a letter (a to z or A to Z).

Views

VPN instance MSDP view, MSDP view of a public network instance

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
msdp write

Usage Guidelines

Usage Scenario

To filter (S, G) information in SA messages to be forwarded to a specified MSDP peer, run the peer sa-policy export command, implementing control over the receiving or sending of multicast source information.

In addition, you can run the import-source command on an MSDP peer to specify (S, G) information that can be advertised by SA messages.

Prerequisites

The multicast routing function has been enabled using the multicast routing-enable command in the public network instance view or VPN instance view.

MSDP peers have been configured.

Configuration Impact

If the peer sa-policy export command is run more than once, the latest configuration overrides the previous one.

Before forwarding an SA message to a specified peer, the peer sa-policy export acl command filters the SA message based on the export policy to determine whether to forward the SA message.

  • If acl is not set, the Router does not forward any (S, G) information in the SA message to a specified MSDP peer.
  • If acl is set, the Router forwards only the (S, G) information that matches the permit clause in an ACL rule.

Example

# In the public network instance, configure an ACL 3100 and configure the router to filter (S, G) information to be forwarded to the peer 10.10.7.6. based on ACL 3100.
<HUAWEI> system-view
[~HUAWEI] acl number 3100
[*HUAWEI-acl4-advance-3100] rule permit ip source 10.15.0.0 0.0.255.255 destination 225.1.0.0 0.0.255.255
[*HUAWEI-acl4-advance-3100] quit
[*HUAWEI] multicast routing-enable
[*HUAWEI] msdp
[*HUAWEI-msdp] peer 10.10.7.6 connect-interface GigabitEthernet 0/1/0
[*HUAWEI-msdp] peer 10.10.7.6 sa-policy export acl 3100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >