---
title: MAP Configuration
slug: routing/map-configuration
createdAt: 2025-12-04T04:06:51.997Z
---

## <font color="#1d50a2">MAP Configuration</font>

### <font color="#1d50a2">show map interface \[role \{CE|BR\}\]</font>

**\[Command]**
**show map interface \[role \{CE|BR}]**

**\[Purpose]**

Display the MAP binding port

**\[Parameter]**

| <font color="#0C121D">**Parameter**</font> | <font color="#0C121D">**Description**</font>                                                |
| ------------------------------------------ | ------------------------------------------------------------------------------------------- |
| CE                                         | A Customer Edge device, which acts as the user's edge router in a MAP deployment            |
| BR                                         | A Border Relay device, which acts as the service provider's edge router in a MAP deployment |

**\[View]**

System view

**\[Use Cases]**

```plaintext
sonic# show map interface
+-----------------------------+
| MAP_BR_ZONE |
+===============+
| Ethernet16 |
+------------------------------+
+------------------------------+
| MAP_CE_ZONE |
+===============+
+------------------------------+
```

### <font color="#1d50a2">show map-e domain \[name *domain\_name*|role \{CE|BR\}\]</font>

**\[Command]**
**show map-e domain \[name *domain\_name*|role \{CE|BR}]**

**\[Purpose]**

Display MAP-E configuration

**\[View]**

System view

**\[Use Cases]**

```plaintext
sonic# show map-e domain role BR
BR Domain:
Name : test1
basic-mapping-rule : BMR
rule_ipv6_prefix : 2001:db8:1012::/48
rule_ipv4_prefix : 192.0.2.0/24
ea_length : 16
psid_len : 8
psid_offset : 4
forwarding-mapping-rule : None
br-ipv6-address-rule : BRaddr
ipv6_address : 2001:db8:1012:1234::10/64
sharing-ip-no-embedded-rule : None
Params :
END
```

### <font color="#1d50a2">show map-e statistics \[name *domain\_name*|role \{CE|BR\}\]</font>

**\[Command]**
**show map-e statistics \[name *domain\_name*|role \{CE|BR}]**

**\[Purpose]**

Display MAP-E packet hit statistics

**\[View]**

System view

**\[Use Cases]**

```plaintext
sonic# show map-e statistics role BR
MAP-E Border Relay Statistics:
+--------+--------------+---------------+---------------+----------------+
| name | Input Pkts | Input Bytes | Output Pkts | Output Bytes |
+========+==============+===============+===============+================+
| test1 | 0 | 0 | 0 | 0 |
+--------+--------------+---------------+---------------+----------------+
```

### <font color="#1d50a2">show map-t domain \[name *domain\_name*|role \{CE|BR\}\]</font>

**\[Command]**
**show map-t domain \[name *domain\_name*|role \{CE|BR}]**

**\[Purpose]**

Display MAP-T configuration

**\[View]**

System view

**\[Use Cases]**

```plaintext
sonic# show map-t domain role BR
BR Domain:
Name : test2
basic-mapping-rule : BMR
rule_ipv6_prefix : 2001:db8:1012::/48
rule_ipv4_prefix : 192.0.2.0/24
ea_length : 16
psid_len : 8
psid_offset : 4
forwarding-mapping-rule : None
default-mapping-rule : DMR
ipv6_prefix : 2001:db8:1012:1234::/64
sharing-ip-no-embedded-rule : None
Params :
END
```

### <font color="#1d50a2">show map-t statistics \[name *domain\_name*|role \{CE|BR\}\]</font>

**\[Command]**
**show map-t statistics \[name *domain\_name*|role \{CE|BR}]**

**\[Purpose]**

Display MAP-T packet hit statistics

**\[View]**

System view

**\[Use Cases]**

```plaintext
sonic# show map-t statistics role BR
MAP-T Border Relay Statistics:
+--------+--------------+---------------+---------------+----------------+
| name | Input Pkts | Input Bytes | Output Pkts | Output Bytes |
+========+==============+===============+===============+================+
| test2 | 0 | 0 | 0 | 0 |
+--------+--------------+---------------+---------------+----------------+
```

### <font color="#1d50a2">show map-rule \[rule\_type \{basic-mapping-rule|default-mapping-rule|br-ipv6-address-rule|sharing-ip-no-embedded-rule|local-ipv4-prefix-rule\} | rule\_name *rule\_name*\]</font>

**\[Command]**
**show map-rule \[rule\_type \{basic-mapping-rule|default-mapping-rule|br-ipv6-address-rule|sharing-ip-no-embedded-rule|local-ipv4-prefix-rule} | rule\_name *rule\_name*]**

**\[Purpose]**

Display MAP rules

**\[View]**

System view

**\[Use Cases]**

```plaintext
sonic# show map-rule rule_type basic-mapping-rule
basic-mapping-rule:
+--------+--------------------+--------------------+--------------+------------+---------------+
| name | rule_ipv6_prefix | rule_ipv4_prefix | ea_bit_len | psid_len | psid_offset |
+========+====================+====================+==============+============+===============+
| BMR | 2001:db8:1012::/48 | 192.0.2.0/24 | 16 | 8 | 4 |
+--------+--------------------+--------------------+--------------+------------+---------------+
```

### <font color="#1d50a2">nat64 \{map-zone-br|map-zone-ce\} enable</font>

**\[Command]**
**nat64 \{map-zone-br|map-zone-ce} enable**

**\[Purpose]**

Enable MAP on the interface

**\[Parameter]**

| <font color="#0C121D">**Parameter**</font> | <font color="#0C121D">**Description**</font> |
| ------------------------------------------ | -------------------------------------------- |
| map-zone-br                                | Enable MAP-BR on the interface               |
| map-zone-ce                                | Enable MAP-CE on the interface               |

**\[View]**

Interface view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# interface ethernet 16
sonic(config-if-16)# nat64 map-zone-br enable
```

### <font color="#1d50a2">map-rule basic-mapping-rule *rule\_name* rule-ip6-prefix *ipv6\_prefix* rule-ip4-prefix *ipv4\_prefix* ea-length *Embedded\_Address\_bits* psid-len *psid\_len* psid-offset *psid\_offset*</font>

**\[Command]**
**map-rule basic-mapping-rule *rule\_name* rule-ip6-prefix *ipv6\_prefix* rule-ip4-prefix *ipv4\_prefix* ea-length *Embedded\_Address\_bits* psid-len *psid\_len* psid-offset *psid\_offset***

**\[Purpose]**

Configure MVRP timer time

**\[Parameter]**

| <font color="#0C121D">**Parameter**</font> | <font color="#0C121D">**Description**</font>                                                                                        |
| ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------- |
| *rule\_name*                               | The name of the Basic Mapping Rule (BMR)                                                                                            |
| *ipv6\_prefix*                             | The IPv6 prefix assigned by the BMR                                                                                                 |
| *ipv4\_prefix*                             | The IPv4 prefix assigned by the BMR                                                                                                 |
| *Embedded\_Address\_bits*                  | The total length (in bits) of the IPv4 address and port set information embedded in the subscriber's IPv6 address. Range: 0-64 bits |
| *psid\_len*                                | The length of the Port Set Identifier (PSID). Range: 0-15 bits                                                                      |
| *psid\_offset*                             | The starting bit position of the PSID within the port number. Range: 0-15 bits                                                      |

**\[View]**

System configuration view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# map-rule basic-mapping-rule BMR rule-ip6-prefix 2001:db8:1012::/48 rule-ip4-prefix 192.0.2.0/24 ea-length 16 psid-len 8 psid-offset 4
```

### <font color="#1d50a2">map-rule br-ipv6-address *rule\_name* ipv6-address *br\_ipv6\_address*</font>

**\[Command]**
**map-rule br-ipv6-address *rule\_name* ipv6-address *br\_ipv6\_address***

**\[Purpose]**

Configure the Border Relay IPv6 address rule

**\[Parameter]**

| <font color="#0C121D">**Parameter**</font> | <font color="#0C121D">**Description**</font>     |
| ------------------------------------------ | ------------------------------------------------ |
| *rule\_name*                               | The name of the rule                             |
| *br\_ipv6\_address*                        | The IPv6 address of the Border Relay (BR) device |

**\[View]**

System configuration view

**\[Notes]**

This command specifies the physical address of the BR device to act as the next hop for traffic, typically used in MAP-E mode

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# map-rule br-ipv6-address BRaddr ipv6-address 2001:db8:1012:1234::10/64
```

### <font color="#1d50a2">map-rule default-mapping-rule *rule\_name* ipv6-prefix *ipv6\_prefix*</font>

**\[Command]**
**map-rule default-mapping-rule *rule\_name* ipv6-prefix *ipv6\_prefix***

**\[Purpose]**

Configure the Default Mapping Rule (DMR)

**\[Parameter]**

| <font color="#0C121D">**Parameter**</font> | <font color="#0C121D">**Description**</font> |
| ------------------------------------------ | -------------------------------------------- |
| *rule\_name*                               | The name of the rule                         |
| *ipv6\_prefix*                             | The IPv6 prefix for the Default Mapping Rule |

**\[View]**

System configuration view

**\[Notes]**

This rule is typically used in MAP-T mode

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# map-rule default-mapping-rule DMR ipv6-prefix 2001:db8:1012:1234::/64
```

### <font color="#1d50a2">map-rule sharing-ip-no-embedded *rule\_name*</font>

**\[Command]**
**map-rule sharing-ip-no-embedded *rule\_name***

**\[Purpose]**

Configure the Non-embedded Shared IPv4 Address rule

**\[Parameter]**

| <font color="#0C121D">**Parameter**</font> | <font color="#0C121D">**Description**</font> |
| ------------------------------------------ | -------------------------------------------- |
| *rule\_name*                               | The name of the rule                         |

**\[View]**

System configuration view

**\[Notes]**

This rule is applied when the subscriber does not use the embedded address format

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# map-rule sharing-ip-no-embedded test
```

### <font color="#1d50a2">map-e domain *domain\_name* \{CE|BR\}</font>

**\[Command]**
**map-e domain *domain\_name* \{CE|BR}**

**\[Purpose]**

Create a MAP-E domain

**\[Parameter]**

| <font color="#0C121D">**Parameter**</font> | <font color="#0C121D">**Description**</font> |
| ------------------------------------------ | -------------------------------------------- |
| *domain\_name*                             | The name of the MAP-E domain                 |

**\[View]**

System configuration view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# map-e domain test1 BR
```

### <font color="#1d50a2">basic-mapping-rule *rule\_name*</font>

**\[Command]**
**basic-mapping-rule *rule\_name***

**\[Purpose]**

Bind a Basic Mapping Rule within the MAP domain

**\[Parameter]**

| <font color="#0C121D">**Parameter**</font> | <font color="#0C121D">**Description**</font> |
| ------------------------------------------ | -------------------------------------------- |
| *rule\_name*                               | The name of the rule                         |

**\[View]**

Map-domain view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# map-e domain test1 BR
sonic(config-map-e-domain-test1)# basic-mapping-rule BMR
```

### <font color="#1d50a2">br-ipv6-address *rule\_name*</font>

**\[Command]**
**br-ipv6-address *rule\_name***

**\[Purpose]**

Bind a br-ipv6-address Rule within the MAP-E domain

**\[Parameter]**

| <font color="#0C121D">**Parameter**</font> | <font color="#0C121D">**Description**</font> |
| ------------------------------------------ | -------------------------------------------- |
| *rule\_name*                               | The name of the rule                         |

**\[View]**

MAP-E-domain view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# map-e domain test1 BR
sonic(config-map-e-domain-test1)# br-ipv6-address BRaddr
```

### <font color="#1d50a2">frag-ignore-df enable</font>

**\[Command]**
**frag-ignore-df enable**

**\[Purpose]**

Configure to ignore the Don't Fragment (DF) flag within the MAP domain

**\[View]**

Map-domain view

**\[Notes]**

This is used when a packet with the DF bit set to 1 needs to be fragmented normally after passing through the device

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# map-e domain test1 BR
sonic(config-map-e-domain-test1)# frag-ignore-df enable
```

### <font color="#1d50a2">frag-inner enable</font>

**\[Command]**
**frag-inner enable**

**\[Purpose]**

Configure inner-layer fragmentation within the MAP-E domain

**\[View]**

MAP-E-domain view

**\[Notes]**

When a packet exceeds the MTU after encapsulation and requires fragmentation, this setting enables fragmentation at the inner IPv4 layer. This configuration is applicable only in MAP-E mode

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# map-e domain test1 BR
sonic(config-map-e-domain-test1)# frag-inner enable
```

### <font color="#1d50a2">security-check enable</font>

**\[Command]**
**security-check enable**

**\[Purpose]**

Configure packet security check within the MAP domain

**\[View]**

Map-domain view

**\[Notes]**

Enables security check for packets in the MAP domain. Packets that do not comply with the rules defined in the MAP domain will be discarded. Enabled by default

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# map-e domain test1 BR
sonic(config-map-e-domain-test1)# security-check enable
```

### <font color="#1d50a2">tcp-mss *value*</font>

**\[Command]**
**tcp-mss *value***

**\[Purpose]**

Configure the TCP maximum segment size (MSS) for packets

**\[Parameter]**

| <font color="#0C121D">**Parameter**</font> | <font color="#0C121D">**Description**</font> |
| ------------------------------------------ | -------------------------------------------- |
| *value*                                    | Range: 160\~9540                             |

**\[View]**

Map-domain view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# map-e domain test1 BR
sonic(config-map-e-domain-test1)# tcp-mss 1460
```

### <font color="#1d50a2">map-t domain *domain\_name* \{CE|BR\}</font>

**\[Command]**
**map-t domain *domain\_name* \{CE|BR}**

**\[Purpose]**

Create a MAP-T domain

**\[Parameter]**

| <font color="#0C121D">**Parameter**</font> | <font color="#0C121D">**Description**</font> |
| ------------------------------------------ | -------------------------------------------- |
| *domain\_name*                             | The name of the MAP-E domain                 |

**\[View]**

System configuration view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# map-t domain test2 BR
```

### <font color="#1d50a2">default-mapping-rule *rule\_name*</font>

**\[Command]**
**default-mapping-rule *rule\_name***

**\[Purpose]**

Bind a Default Mapping Rule within the MAP-T domain

**\[Parameter]**

| <font color="#0C121D">**Parameter**</font> | <font color="#0C121D">**Description**</font> |
| ------------------------------------------ | -------------------------------------------- |
| *rule\_name*                               | The name of the rule                         |

**\[View]**

MAP-T-domain view

**\[Use Cases]**

```plaintext
sonic# configure terminal
sonic(config)# map-t domain test2 BR
sonic(config-map-t-domain-test2)# default-mapping-rule DMR
```

