This section provides an example for configuring the centralized MAP-E function on the device that functions as a MAP BR.
In a centralized scenario shown in Figure 1, the MAP-BR and BRAS reside on different devices. The BRAS delivers MAP addresses and mapping rules to MAP-CEs in DHCPv6 IA_PD mode. Router A resides on the edge of a MAP domain and allows MAP-CEs to access the public IPv4 network through the IPv6 network that is within the MAP domain. The MAP-CEs use each other's public IPv4 address to communicate through the MAP-BR.
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:
BR name (br_name), IPv6 address (2001:db8:1124::1), and prefix length (96 bits)
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)
MAP-E instance name (2) and ID (2)
Interface1's IPv6 address (2001:db8:2::1) and mask length (64 bits).
Interface2's IPv4 address (11.1.1.1) and mask length (24 bits)
<BRAS> system-view [~BRAS] br-ipv6-address br_name ipv6-address 2001:db8:1124::1 prefix-length 96 [*BRAS] commit
[~BRAS] map rule bmr_name [*BRAS-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 [*BRAS-map-rule-bmr_name] commit [~BRAS-map-rule-bmr_name] quit
[~BRAS] ipv6 prefix pre1 delegation [*BRAS-ipv6-prefix-pre1] map-rule bmr_name [*BRAS-ipv6-prefix-pre1] commit [~BRAS-ipv6-prefix-pre1] quit
<BRAS> system-view [~BRAS] ipv6 pool pool1 bas delegation [*BRAS-ipv6-pool-pool1] prefix pre1 [*BRAS-ipv6-pool-pool1] option-s46 br-ipv6-address br_name [*BRAS-ipv6-pool-pool1] commit [~BRAS-ipv6-pool-pool1] quit
<RouterA> system-view [~RouterA] br-ipv6-address br_name ipv6-address 2001:db8:1124::1 prefix-length 96 [*RouterA] commit
[~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] map-e instance 2 id 2 [*RouterA-map-e-instance-2] br-ipv6-address br_name [*RouterA-map-e-instance-2] map-rule bmr_name [*RouterA-map-e-instance-2] commit [~RouterA-map-e-instance-2] quit
[~RouterA] interface GigabitEthernet0/1/8 [~RouterA-GigabitEthernet0/1/8] ipv6 enable [*RouterA-GigabitEthernet0/1/8] ipv6 address 2001:db8:2::1 64 [*RouterA-GigabitEthernet0/1/8] commit [~RouterA-GigabitEthernet0/1/8] quit [~RouterA] interface GigabitEthernet0/1/9 [~RouterA-GigabitEthernet0/1/9] ip address 11.1.1.1 24 [*RouterA-GigabitEthernet0/1/9] commit [~RouterA-GigabitEthernet0/1/9] quit [~RouterA] ipv6 route-static 2001:db8:1::1 48 2001:db8:2::2 [*RouterA] commit
[~BRAS] interface GigabitEthernet0/1/8 [*BRAS-GigabitEthernet0/1/8] ipv6 enable [*BRAS-GigabitEthernet0/1/8] ipv6 address 2001:db8:2::2 64 [*BRAS-GigabitEthernet0/1/8] undo shutdown [*BRAS-GigabitEthernet0/1/8] commit [~BRAS] ipv6 route-static 2001:db8:1124::1 64 2001:db8:2::1 [*BRAS] commit
# br-ipv6-address br_name ipv6-address 2001:db8:1124::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-e instance 2 id 2 br-ipv6-address br_name map-rule bmr_name # interface GigabitEthernet0/1/8 undo negotiation auto undo shutdown ipv6 enable ipv6 address 2001:db8:2::/64 # interface GigabitEthernet0/1/9 undo negotiation auto undo shutdown control-flap ip address 11.1.1.1 255.255.255.0 # ipv6 route-static 2001:db8:1::1 48 2001:db8:2::2 #
#
br-ipv6-address br_name ipv6-address 2001:db8:1124::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
#
ipv6 prefix pre1 delegation
map-rule bmr_name
ipv6 pool pool1 bas delegation
prefix pre1
option-s46 br-ipv6-address br_name
#
interface GigabitEthernet0/1/8
undo shutdown
ipv6 enable
ipv6 address 2001:db8:2::2/64
#
ipv6 route-static 2001:db8:1124::1 64 2001:db8:2::1
#