ip extcommunity-list segmented-nh basic

Function

The ip extcommunity-list segmented-nh basic command configures a segmented-nh attribute, which is a basic extended community attribute.

The undo ip extcommunity-list segmented-nh basic command deletes a segmented-nh attribute.

By default, no segmented-nh attribute is configured.

Format

ip extcommunity-list segmented-nh basic segmented-nh-name [ index index-value ] matchMode { segmented-nh-value } &<1-16>

undo ip extcommunity-list segmented-nh basic segmented-nh-name [ index index-value ]

Parameters

Parameter Description Value
segmented-nh-name

Sets a name for a segmented-nh attribute list.

The value is a string of 1 to 51 characters.

index index-value

Specifies a sequence number.

The value is an integer ranging from 1 to 4294967295.

matchMode

Sets the matching mode of the community filter.

The value is an enumerated type:

  • permit: Sets the matching mode of the community filter to permit.
  • deny: Sets the matching mode of the community filter to deny.
segmented-nh-value

Specifies a name for a segmented-nh attribute.

The segmented-nh attribute can be expressed in any of the following formats:

  • 2-byte AS number:4-byte user-defined number, for example, 1:3. The AS number ranges from 0 to 65535, and the user-defined number ranges from 0 to 4294967295.
  • IPv4-address:2-byte user-defined number, for example, 192.168.122.15:1. The IP address ranges from 0.0.0.0 to 255.255.255.255, and the user-defined number ranges from 0 to 65535.
  • Integral 4-byte AS number:2-byte user-defined number, for example, 0:3 or 65537:3. An AS number ranges from 65536 to 4294967295. A user-defined number ranges from 0 to 65535.
  • 4-byte AS number in dotted notation:2-byte user-defined number, for example, 0.0:3 or 0.1:0. A 4-byte AS number in dotted notation is in the format of x.y, where x and y are integers ranging from 1 to 65535 and from 0 to 65535, respectively. A user-defined number ranges from 0 to 65535.
basic

Indicates a basic extended community attribute.

-

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
route-base write

Usage Guidelines

Usage Scenario

In an NG MVPN scenario using segmented tunnels, to configure a segmented-nh (with the full name being segmented next-hop) attribute for intra-AS I-PMSI A-D routes, run the ip extcommunity-list segmented-nh command.

Precautions

The name of a basic segmented-nh extended community attribute and that of an advanced segmented-nh extended community attribute are mutually exclusive.

Example

# Configure a basic segmented-nh attribute with the sequence number being aa.
<HUAWEI> system-view
[~HUAWEI] ip extcommunity-list segmented-nh basic aa permit 1.1.1.1:5
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >