session (RPKI view)

Function

The session command specifies the address of a Resource Public Key Infrastructure (RPKI) server to establish a TCP connection between the router and the RPKI server.

The undo session command restores the default setting.

By default, no TCP connection is established.

Format

session [ vpn-instance vpn-instance-name ] { ipv4-address | ipv6-address }

undo session [ vpn-instance vpn-instance-name ] { ipv4-address | ipv6-address }

Parameters

Parameter Description Value
vpn-instance vpn-instance-name

Specifies the VPN instance to which the RPKI session belongs.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

ipv4-address

Specifies the IPv4 address used by an RPKI session.

The value is in dotted decimal notation.

ipv6-address

Specifies the IPv6 address used by an RPKI session.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

Views

RPKI view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
rpki write

Usage Guidelines

Usage Scenario

The session command specifies the address of an RPKI server to establish a TCP connection between the router and the RPKI server. You can also specify vpn-instance vpn-instance-name in the command to set the VPN instance to which the RPKI session belongs. If the command is not run, TCP connections cannot be established, and the RPKI server cannot collect statistics about origin ASs of BGP routes.

Example

# Create an RPKI session with 10.1.1.1 as the session address in the VPN instance named vrf1.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vrf1
[~HUAWEI-vpn-instance-vrf1] ipv4-family
[~HUAWEI-vpn-instance-vrf1-af-ipv4] quit
[~HUAWEI-vpn-instance-vrf1] quit
[~HUAWEI] rpki
[*HUAWEI-rpki] session vpn-instance vrf1 10.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >