ipv4 adjacency

Function

The ipv4 adjacency command configures a static adjacency segment ID (SID) for the segment routing connection to be established between the local and remote interfaces.

The undo ipv4 adjacency command deletes the static adjacency SID configured for the segment routing connection to be established between the local and remote interfaces.

By default, no static adjacency SID is configured for the segment routing connection to be established between the local and remote interfaces.

Format

ipv4 adjacency local-ip-addr local-ip-address remote-ip-addr remote-ip-address sid sid-value

undo ipv4 adjacency local-ip-addr local-ip-address remote-ip-addr remote-ip-address sid sid-value

Parameters

Parameter Description Value
remote-ip-addr remote-ip-address

Specifies the IP address of the remote interface.

The value is in dotted decimal notation.

sid sid-value

Specifies a static adjacency SID.

The value is an integer that ranges from 284688 to 294927.

local-ip-addr local-ip-address

Specifies the IP address of the local interface.

The value is in dotted decimal notation.

Views

Segment routing view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
segr write

Usage Guidelines

Usage Scenario

After Segment Routing is enabled, an adjacency SID needs to be configured for the segment routing link to be established between the local and remote interfaces.

Configuration Impact

Running the command may cause the tunnel to go Down.

Precautions

If no direct route corresponding to local-ip-addr local-ip-address exists on the device, no entry is generated after this command is run.

SIDs can be repeatedly used. If multiple adjacencies are configured with the same static SID, the SIDs are called parallel adjacency SIDs, which can be flooded through IS-IS, advertised to BGP LS, and then reported to the controller through BGP LS.

Currently, a maximum of six static SIDs can be configured for an adjacency.

In VS mode, this command is supported only by the admin VS.

Example

# Configure a static adjacency SID for the segment routing.
<HUAWEI> system-view
[~HUAWEI] segment-routing
[*HUAWEI-segment-routing] ipv4 adjacency local-ip-addr 10.2.1.1 remote-ip-addr 10.2.1.2 sid 290000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >