map-rule (IPv6 prefix pool view)

Function

The map-rule command binds a MAP rule to an IPv6 delegation prefix pool.

The undo map-rule command deletes the binding between a MAP rule and an IPv6 delegation prefix pool.

By default, no MAP rule is bound to an IPv6 delegation prefix pool.

This command is supported only on the NetEngine 8000 F1A.

Format

map-rule rule-name

undo map-rule rule-name

Parameters

Parameter Description Value
map-rule rule-name

Specifies a MAP rule name.

The value is a string of 1 to 31 case-sensitive characters.

Views

IPv6 prefix pool view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ipv6pool write

Usage Guidelines

Usage Scenario

In the MAP-E or MAP-T scenario, the device uses IA-PD to assign MAP prefixes to MAP users. After a MAP rule is bound to an IPv6 delegation prefix pool configured using the map-rule command, the device uses the configured MAP rule to assign MAP prefixes to MAP-E and MAP-T users.

Prerequisites

The map-rule command has been run in the system view, and an IPv6 prefix and its length, an IPv4 prefix and its length, and an EA length have been specified for the MAP rule.

Precautions

  • A MAP rule can only bound to the IPv6 delegation prefix pool.
  • The prefix command cannot be run after a MAP rule is bound to an IPv6 delegation prefix pool.
  • The map-rule command is mutually exclusive with the slaac-unshare-only, pd-unshare-only, dhcpv6-unshare-only, and vpn-instance commands.

Example

# Bind a MAP rule named map to an IPv6 delegation prefix pool named test.
<HUAWEI> system-view
[~HUAWEI] map rule map
[*HUAWEI-map-rule-map] rule-prefix 1111::1 prefix-length 48 ipv4-prefix 192.168.10.0 prefix-length 24 ea-length 16 psid-offset 4
[*HUAWEI-map-rule-map] commit
[~HUAWEI-map-rule-map] quit
[~HUAWEI] ipv6 prefix test delegation
 Info: Create a prefix pool.
[*HUAWEI-ipv6-prefix-test] commit
[~HUAWEI-ipv6-prefix-test] map-rule map
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >