Tip

This is the documentation for the 20.02 version. Looking for the documentation of the latest version? Have a look here.

MAP Example

Environment

MAP Border Relay

Item

Value

MAP Domain Name

cpoc

IPv6 Prefix

2001:db8::/32

IPv6 Source Prefix

1234:5678:90ab:cdef::/64

IPv4 Prefix

192.168.1.0/24

Port Set Length

8

Port Set Offset

0

Embedded Address Bits

16

MTU

1300

Interface

GigabitEthernet0/14/0

IPv6 Address

fd01:2::1/64

IPv4 Address

203.0.113.2/24

TNSR Border Relay Configuration

This shows an example Border Relay (BR) configuration in TNSR to provide service to MAP-T Customer Edge (CE) clients. This example assumes some configuration details are already in place, such as the IPv4 prefix already being routed to the BR from upstream, and default routes configured in TNSR for upstream gateways.

First, configure the interface connected to the upstream network. There could be separate interfaces for reaching the Internet and for reaching the CE network, but this example uses a single interface.

tnsr(config)# interface GigabitEthernet0/14/0
tnsr(config-interface)# ip address 203.0.113.2/24
tnsr(config-interface)# ipv6 address fd01:2::1/64
tnsr(config-interface)# exit

Next, configure the MAP domain:

tnsr(config)# nat nat64 map cpoc
tnsr(config-map)# ipv4 prefix 192.168.1.0/24
tnsr(config-map)# ipv6 prefix 2001:db8::/32
tnsr(config-map)# ipv6 source 1234:5678:90ab:cdef::/64
tnsr(config-map)# embedded-address bit-length 16
tnsr(config-map)# port-set length 4
tnsr(config-map)# port-set offset 6
tnsr(config-map)# mtu 1280
tnsr(config-map)# exit

Then add a static route:

tnsr(config)# route ipv6 table ipv6-VRF:0
tnsr(config-route-table-v6)# route 2001:db8::/32
tnsr(config-rttbl6-next-hop)# next-hop 0 via fd01:2::2 GigabitEthernet0/14/0
tnsr(config-rttbl6-next-hop)# exit
tnsr(config-route-table-v6)# exit

Lastly, enable MAP and MAP-T translation for the interface:

tnsr(config)# interface GigabitEthernet0/14/0
tnsr(config-interface)# map translate
tnsr(config-interface)# map enable
tnsr(config-interface)# exit

See also

For information on configuring other operating systems to act as a CE, consult their documentation or check the links in Additional MAP Reading and Tools for additional information.