The peer advertise dependent-filter command configures a conditional BGP route advertisement policy.
The undo peer advertise dependent-filter command cancels the configuration of a conditional BGP route advertisement policy.
The peer advertise dependent-filter-disable command disables a conditional BGP route advertisement policy.
The undo peer advertise dependent-filter-disable command removes the configuration of disabling a conditional BGP route advertisement policy.
By default, conditional advertisement is not enabled.
peer { peerIpv4Addr | peerIpv6Addr } advertise dependent-filter dependent-filter-list outDependType [ condition-filter condition-filter-list ]
peer { peerIpv4Addr | peerIpv6Addr } advertise dependent-filter-disable
undo peer { peerIpv4Addr | peerIpv6Addr } advertise dependent-filter dependent-filter-list outDependType [ condition-filter condition-filter-list ]
undo peer { peerIpv4Addr | peerIpv6Addr } advertise dependent-filter
undo peer { peerIpv4Addr | peerIpv6Addr } advertise dependent-filter-disable
Parameter | Description | Value |
---|---|---|
peerIpv4Addr |
Specifies the IPv4 address of a peer. |
It is in dotted decimal notation. |
peerIpv6Addr |
Specifies the IPv6 address of a peer. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
dependent-filter dependent-filter-list |
Specifies the name of a dependent route prefix list. |
The value is a string of 1 to 63 case-sensitive characters. It cannot contain spaces. |
outDependType |
Specifies the matching type. |
The value is an enumerated type, which can be:
|
condition-filter condition-filter-list |
Specifies the name of the prefix list for conditional route advertisement. |
The value is a string of 1 to 63 case-sensitive characters. It cannot contain spaces. |
Usage Scenario
Conditional advertisement provides additional control over BGP route advertisement. Before advertising routes, the system checks whether the specified dependent routes exist in the BGP routing table and determines whether to advertise BGP routes accordingly.
The condition-filter parameter is optional and is used to specify the routes for which conditional advertisement is enabled.The outDependType parameter specifies the dependency check type.
Prerequisites
An IP prefix list has been created using the filter-list ipv6-prefix command.
Configuration Impact
If you run this command for the same peer, the latest configuration overwrites the previous one.
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vrf [*HUAWEI-vpn-instance-vrf] ipv6-family [*HUAWEI-vpn-instance-vrf-af-ipv6] quit [*HUAWEI-vpn-instance-vrf] quit [*HUAWEI] filter-list ipv6-prefix cond-list [*HUAWEI-ipv6-prefix-list-cond-list] prefix 2001:db8:2:: 96 [*HUAWEI-ipv6-prefix-list-cond-list] quit [*HUAWEI] filter-list ipv6-prefix depend-list [*HUAWEI-ipv6-prefix-list-depend-list] prefix 2001:db8:3:: 96 [*HUAWEI-ipv6-prefix-list-depend-list] prefix 2001:db8:4:: 96 [*HUAWEI-ipv6-prefix-list-depend-list] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] vpn-instance vrf [*HUAWEI-bgp] peer 2001:db8:1::1 as-number 100 [*HUAWEI-bgp] ipv6-family unicast [*HUAWEI-bgp-af-ipv6] peer 2001:db8:1::1 enable [*HUAWEI-bgp-af-ipv6] peer 2001:db8:1::1 advertise dependent-filter depend-list match-all condition-filter cond-list