peer filter-policy export (BGP-IPv4 multicast address family view) (group)

Function

The peer filter-policy export command configures an ACL-based policy for filtering BGP routes to be advertised to a specified peer group.

The undo peer filter-policy export command cancels this configuration.

By default, no filtering policy is set for a peer group.

Format

peer peerGroupName filter-policy aclNum export

peer peerGroupName filter-policy acl-name aclname export

undo peer peerGroupName filter-policy aclNum export

undo peer peerGroupName filter-policy acl-name aclname export

Parameters

Parameter Description Value
peerGroupName

Specifies the name of an MBGP peer group.

The value is a string of 1 to 47 case-sensitive characters.

aclNum

Specifies the number of a basic ACL.

The value is an integer ranging from 2000 to 2999.

acl-name aclname

Specifies the name of a named basic ACL.

The value is a string of 1 to 64 case-sensitive characters, spaces not supported. The name must start with a letter or digit, and cannot contain only digits.

Views

BGP-IPv4 multicast address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

The peer filter-policy export command is used to configure an ACL-based policy for filtering routes to be advertised to a peer group.

A proper basic ACL needs to be selected based on the address family of a peer group.

Configuration Impact

If the peer filter-policy export command is run multiple times, the latest configuration overwrites the previous one.

Precautions

When the rule command is run to configure rules for a named ACL, only the source address range specified by source and the time period specified by time-range take effect.

The peer route-filter export command is mutually exclusive with the peer route-filter export commands.

Example

# Apply a routing policy based on ACL 2003 to the routes advertised to a peer group named test.
<HUAWEI> system-view
[~HUAWEI] acl number 2003
[*HUAWEI-acl4-basic-2003] quit
[*HUAWEI] bgp 100
[*HUAWEI-bgp] group test internal
[*HUAWEI-bgp] ipv4-family multicast
[*HUAWEI-bgp-af-multicast] peer test enable
[*HUAWEI-bgp-af-multicast] peer test filter-policy 2003 export
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >