ipv4-prefix
To configure the IPv4 prefix for the basic mapping rule in a Mapping Address and Port (MAP) domain, use the ipv4-prefix command in MAP domain basic mapping rule configuration mode. Use the no form of this command to remove the prefix.
ipv4-prefixipv4_network_addressnetmask
no ipv4-prefix ipv4_network_address netmask
Syntax Description
ipv4_network_address netmask |
The IPv4 prefix that defines the IPv4 address pool for the customer edge (CE) device. Specify a network address and subnet mask, for example, 192.168.3.0 255.255.255.0. You cannot use the same IPv4 prefix in different MAP domains. |
Command Default
No defaults.
Command Modes
The following table shows the modes in which you can enter the command:
Command Mode |
Firewall Mode |
Security Context |
|||
---|---|---|---|---|---|
Routed |
Transparent |
Single |
Multiple |
||
Context |
System |
||||
MAP domain basic mapping rule configuration mode |
|
— |
|
|
— |
Command History
Release |
Modification |
---|---|
9.13(1) |
This command was introduced. |
Usage Guidelines
The IPv4 prefix defines the IPv4 address pool for the customer edge (CE) device. The CE device first translates its IPv4 address to an address (and port number) in the pool defined by the IPv4 prefix. MAP then translates this new address to an IPv6 address using the prefix in the default mapping rule.
Examples
The following example creates a MAP-T domain named 1 and configures the translation rules for the domain.
ciscoasa(config)# map-domain 1
ciscoasa(config-map-domain)# default-mapping-rule 2001:DB8:CAFE:CAFE::/64
ciscoasa(config-map-domain)# basic-mapping-rule
ciscoasa(config-map-domain-bmr)# ipv4-prefix 192.168.3.0 255.255.255.0
ciscoasa(config-map-domain-bmr)# ipv6-prefix 2001:cafe:cafe:1::/64
ciscoasa(config-map-domain-bmr)# start-port 1024
ciscoasa(config-map-domain-bmr)# share-ratio 16