bestroute origin-as-validation (BGP-IPv4 unicast address family view)

Function

The bestroute origin-as-validation command applies the BGP origin AS validation result to route selection.

The undo bestroute origin-as-validation command restores the default configurations.

By default, the BGP origin AS validation result is not applied to route selection.

Format

bestroute origin-as-validation [ allow-invalid ]

undo bestroute origin-as-validation [ allow-invalid ]

Parameters

Parameter Description Value
allow-invalid

Indicates that the routes with BGP origin AS validation result Invalid can be selected.

-

Views

BGP-IPv4 unicast address family view, BGP-IPv6 unicast address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

Attackers can steal user data by advertising routes that are more specific than those advertised by carriers. Resource Public Key Infrastructure (RPKI) can address this issue by validating the origin ASs of BGP routes and apply the BGP origin AS validation result to route selection. To apply the BGP origin AS validation result to route selection, run the bestroute origin-as-validation command.

The validation result can be Valid, Not Found, or Invalid. BGP selects routes in the order of Valid, Not Found, and Invalid. If allow-invalid is not specified in the command, BGP ignores the routes with validation result Invalid during route selection.

Prerequisites

BGP origin AS validation has been enabled using the prefix origin-validation enable command.

Precautions

The origin AS validation function of RPKI verifies only the routes received from EBGP peers, but not the routes received from IBGP peers. After the bestroute origin-as-validation command is run:

  • The origin AS verification results of the routes received from EBGP peers are applied to BGP route selection. The route selection priority is Valid > NotFound > Invalid.
  • If the routes received from IBGP peers carry verification results, BGP uses the verification results during route selection.
  • If the routes received from IBGP peers carry no verification results, BGP uses NotFound as the verification results during route selection.

Example

# Apply the BGP origin AS validation result to route selection in the IPv4 unicast address family view.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] ipv4-family unicast
[*HUAWEI-bgp-af-ipv4] prefix origin-validation enable
[*HUAWEI-bgp-af-ipv4] bestroute origin-as-validation
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >