This section provides an example for configuring the distributed MAP-T function on the device that functions as the MAP-BR and BRAS.
In a distributed scenario shown in Figure 1, both the MAP-BR and BRAS reside on Router A. The BRAS functions as a DHCPv6 server to deliver MAP addresses and mapping rules to MAP-CEs in DHCPv6 IA_PD mode. Router A also functions as a MAP-BR and resides on the edge of a MAP domain. Router A allows the MAP-CEs to access the public IPv4 network through the IPv6 network that is within the MAP domain. In addition, the MAP-CEs can use each other's public IPv4 address to communicate through the MAP-BR.
The MAP license has been loaded to the MAP-BR, and the MAP function has been activated.
The MAP-BR has at least one interface board that supports the MAP function.
The configuration roadmap is as follows:
BMR name (bmr_name), IPv6 address (2001:db8:1::1), prefix length (48), IPv4 address (1.1.1.0), mask length (24), EA-length (16), and PSID-offset length (4)
DMR name (dmr_name), IPv6 address (2001:db8:3::1), and prefix length (96 bits)
MAP-T instance name (1) and ID (1)
<RouterA> system-view [~RouterA] map rule bmr_name [*RouterA-map-rule-bmr_name] rule-prefix 2001:db8:1::1 prefix-length 48 ipv4-prefix 1.1.1.0 prefix-length 24 ea-length 16 psid-offset 4 [*RouterA-map-rule-bmr_name] commit [~RouterA-map-rule-bmr_name] quit
[~RouterA] dmr-prefix dmr_name ipv6-prefix 2001:db8:3::1 prefix-length 96 [*RouterA] commit
[~RouterA] ipv6 prefix pre1 delegation [*RouterA-ipv6-prefix-pre1] map-rule bmr_name [*RouterA-ipv6-prefix-pre1] commit [~RouterA-ipv6-prefix-pre1] quit
[~RouterA] ipv6 pool pool1 bas delegation [*RouterA-ipv6-pool-pool1] prefix pre1 [*RouterA-ipv6-pool-pool1] option-s46 dmr-prefix dmr_name [*RouterA-ipv6-pool-pool1] commit [~RouterA-ipv6-pool-pool1] quit
[~RouterA] map-t instance 1 id 1 [*RouterA-map-t-instance-1] dmr-prefix dmr_name [*RouterA-map-t-instance-1] map-rule bmr_name [*RouterA-map-t-instance-1] commit [~RouterA-map-t-instance-1] quit
[~RouterA] interface GigabitEthernet0/1/8 [~RouterA-GigabitEthernet0/1/8] ipv6 enable [*RouterA-GigabitEthernet0/1/8] ipv6 address auto link-local [*RouterA-GigabitEthernet0/1/8] commit [~RouterA-GigabitEthernet0/1/8] quit
[~RouterA] aaa [*RouterA-aaa] domain map-t [*RouterA-aaa-map-t] authentication-scheme default0 [*RouterA-aaa-map-t] accounting-scheme default0 [*RouterA-aaa-map-t] commit [~RouterA-aaa-map-t] ipv6-pool pool1 [~RouterA-aaa-map-t] quit [~RouterA-aaa] quit
[~RouterA] dhcpv6 duid llt [*RouterA] commit
[~RouterA] interface GigabitEthernet0/1/8 [*RouterA-GigabitEthernet0/1/8] bas [*RouterA-GigabitEthernet0/1/8-bas] access-type layer2-subscriber default-domain authentication map-t [~RouterA-GigabitEthernet0/1/8-bas] authentication-method-ipv6 bind [*RouterA-GigabitEthernet0/1/8-bas] commit
#
dmr-prefix dmr_name ipv6-prefix 2001:db8:3::1 prefix-length 96
#
map rule bmr_name
rule-prefix 2001:db8:1::1 prefix-length 48 ipv4-prefix 1.1.1.0 prefix-length 24 ea-length 16 psid-offset 4
#
map-t instance 1 id 1
dmr-prefix dmr_name
map-rule bmr_name
#
ipv6 prefix pre1 delegation
map rule bmr_name
ipv6 pool pool1 bas delegation
prefix pre1
option-s46 dmr-prefix dmr_name
#
aaa
domain map-t
authentication-scheme default0
accounting-scheme default0
ipv6-pool pool1
#
dhcpv6 duid 0001000125a7625df063f9761497
#
interface GigabitEthernet0/1/8
undo negotiation auto
undo shutdown
ipv6 enable
ipv6 address auto link-local
bas
access-type layer2-subscriber default-domain authentication map-t
authentication-method-ipv6 bind
#