router-id filter (BGP IPv4 SR-Policy address family view)

Function

The router-id filter command enables router ID filtering.

The undo router-id filter command disables router ID filtering.

By default, router ID filtering is enabled.

Format

router-id filter

undo router-id filter

Parameters

None

Views

BGP IPv4 SR-Policy address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

In an SRv6 TE Policy establishment scenario, SRv6 TE Policy routes only need to be delivered to specific devices. If the controller is connected to devices one by one, the controller delivers the routes to the devices. If an RR is deployed to reduce the number of connections, non-RRs need to filter routes and discard the routes that they do not need. To enable the non-RRs to filter routes received from the RR based on router IDs, run this command on the non-RRs. After the command is run, the non-RRs accept the routes with the same router IDs as local router IDs and discard those with router IDs different from local router IDs. This prevents the non-RRs from accepting a large number of useless routes, which would otherwise reduce performance.

Example

# Enable router ID filtering.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] ipv4-family sr-policy
[*HUAWEI-bgp-af-srpolicy] router-id filter
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic