rule-prefix

Function

The rule-prefix command sets BRM parameters used to verify and encapsulate MAP packets.

The undo map rule command deletes BMR parameters.

By default, no BMR parameters are set.

This command is supported only on the NetEngine 8000 F1A.

Format

rule-prefix ipv6-prefix prefix-length v6prefix-length ipv4-prefix ipv4-prefix prefix-length v4prefix-length [ vpn-instance vpn-instance-name ] ea-length ea-length [ psid-offset offset-length ]

undo rule-prefix [ ipv6-prefix prefix-length v6prefix-length ipv4-prefix ipv4-prefix prefix-length v4prefix-length [ vpn-instance vpn-instance-name ] ea-length ea-length [ psid-offset offset-length ] ]

Parameters

Parameter Description Value
prefix-length v6prefix-length

Specifies an IPv6 prefix address in a BMR.

The value is an integer ranging from 1 to 64.

prefix-length v4prefix-length

Specifies an IPv4 prefix address in a BMR.

The value is an integer ranging from 1 to 32.

ipv4-prefix ipv4-prefix

Specifies an IPv4 prefix address in a BMR.

The value is in dotted decimal notation.

vpn-instance vpn-instance-name

Specifies the name of a VPN instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

ea-length ea-length

Specifies an embedded address length.

The value is an integer ranging from 0 to 48.

psid-offset offset-length

Specifies a PSID offset.

The value is an integer ranging from 1 to 16. The default value is 6.

rule-prefix ipv6-prefix

Specifies an IPv6 prefix address in a BMR.

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

Views

MAP rule view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
map write

Usage Guidelines

Usage Scenario

After you run the map-rule command to create a BMR, run the rule-prefix command to configure BMR parameters used to verify and encapsulate MAP packets in the MAP rule view.

Precautions

  • A single rule-prefix command instance can be run for each BMR.
  • The IPv4 address is mutually exclusive with an interface IP address, an address in a BRAS address pool, and an address in a NAT address pool.

Example

# Create a BMR named Test, access the BMR view, and set an IPv6 prefix.
<HUAWEI> system-view
[~HUAWEI] map rule Test
[*HUAWEI-map-rule-Test] rule-prefix 2001:db8::1 prefix-length 32 ipv4-prefix 10.1.1.1 prefix-length 24 ea-length 16 psid-offset 4
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >