database-mapping (LISP EID-table)
To configure an IPv4 or IPv6 endpoint identifier-to-routing locator (EID-to-RLOC) mapping relationship and an associated traffic policy for Locator/ID Separation Protocol (LISP), use the database-mapping command in LISP EID-table or LISP EID-table dynamic-EID configuration mode. To remove the configured database mapping, use the no form of this command.
database-mapping eid-prefix/prefix-length { { locator-address | ipv4-interface interface-name | ipv6-interface interface-name} priority priority weight weight [ down] } | auto-discover-rlocs | locator-set locator-set-name}
no database-mapping eid-prefix/prefix-length [ ipv4-interface interface-name | ipv6-interface interface-name | auto-discover-rlocs | locator-set]
Syntax Description
eid-prefix/prefix-length |
IPv4 or IPv6 EID prefix and length to be advertised by the router. |
locator-address |
IPv4 or IPv6 routing locator (RLOC) associated with the value specified for the eid-prefix/prefix-length argument. |
ipv4-interface interface-name |
Specifies the IPv4 address and name of the interface to be used as the RLOC for the EID prefix. |
ipv6-interface interface-name |
Specifies the IPv6 address and name of the interface to be used as the RLOC for the EID prefix. |
priority priority |
Specifies the priority assigned to the RLOC. Range is from 0 to 255. |
weight weight |
Specifies the weight assigned to the locator. Range is from 0 to 100. |
down |
(Optional) Configures the database mapping down. |
auto-discover-rlocs |
Configures the Egress Tunnel Router (ETR) to discover the locators of all other routers configured to function as both an ETR and an Ingress Tunnel Router (ITR) - such routers are referred to as xTRs - in the LISP site when the site uses multiple xTRs and each xTR can only be configured to refer indirectly to its own local locator, such as in the case where all xTRs obtain their locator address dynamically (e.g. via DHCP). |
locator-set locator-set-name |
Uses locators defined by the specified locator-set. |
Command Default
No LISP database entries are defined.
Command Modes
LISP EID-table configuration (config-router-lisp-eid-table)
LISP EID-table dynamic-EID (config-router-lisp-eid-table-dynamic-eid)
Note |
The EID-table dynamic-EID command mode only supports the locator-set option for configuring RLOCs and its associated policies. |
Command History
Release |
Modification |
---|---|
Cisco IOS 15.1(1)XB |
This command was introduced. |
Cisco IOS 15.1(4)M |
This command was modified. Support for this command was removed at the global configuration level and added for LISP configuration mode. Also, the ip , ipv6 , and lisp keywords were removed from the command syntax. |
Cisco IOS XE 3.3S |
This command was modified. Support for this command was removed at the global configuration level and added for LISP configuration mode. Also, the ip , ipv6 , and lisp keywords were removed from the command syntax. |
Cisco IOS 15.2(3)T |
This command was modified to permit up to 100 database-mapping entries per site. |
Cisco IOS XE 3.6S |
This command was modified to permit up to 100 database-mapping entries per site. |
Cisco IOS 15.3(1)T |
This command was modified and support was added for the LISP EID-table dynamic-EID configuration mode. |
Cisco IOS XE 3.8S |
This command was modified and support was added for the LISP EID-table dynamic-EID configuration mode. |
Cisco IOS 15.3(1)S |
This command was modified. The down keyword was added. |
Usage Guidelines
This command configures the LISP database parameters for a specified IPv4 or IPv6 EID-prefix block. Parameters for each IPv4 or IPv6 EID-prefix block include the associated locator, priority, and weight. The IPv4 or IPv6 address specified in the eid-prefix/prefix-length argument of the command syntax is the LISP IPv4 or IPv6 EID-prefix block associated with the site.
Typically, the device registers as being authoritative with a map server. The locator is typically the IPv4 or IPv6 address of any interface used as the RLOC address for the EID prefix assigned to the site but can also be the IPv4 or IPv6 address of a loopback interface. Priority and weight values are associated with the locator address to define traffic policies when multiple RLOCs are defined for the same EID-prefix block.
When a device is configured as an ETR, the LISP database-mapping parameters are advertised within a map-reply message to indicate the EID-prefix block and ingress traffic preferences of the site. An ITR then selects a destination locator (outer header) address for encapsulating packets destined to the EID prefix based on these advertised parameters.
Note |
When LISP is configured for virtualization, multitenancy can be achieved by associating a LISP instance ID with a virtual routing and forwarding (VRF) table. The database-mapping command is configured after entering the eid-table command in LISP configuration mode so that the subsequent database-mapping entries are associated with the appropriate LISP instance ID specified in the eid-table command. Additional details on this usage of the database-mapping command with instance IDs can be found on the eid-table command page. |
When a LISP site has multiple locators associated with the same EID-prefix block, multiple database-mapping commands are used to configure all of the locators for a given EID-prefix block. Each locator may be assigned the same or a different priority value from 0 to 255. When multiple locators are assigned different priority values, the priority value alone is used to determine which locator to prefer. A lower value indicates a more preferable path. A value of 255 indicates that the locator must not be used for unicast traffic forwarding. When multiple locators have the same priority, they can be used in a load-sharing manner.
In this case, for a given priority, the weight given to each locator is used to determine how to load-balance unicast packets between them. Weight is a value between 0 and 100 and represents the percentage of traffic to be load-shared to that locator. If a nonzero weight value is assigned to any locator for a given EID-prefix block, then all locators with the same priority for that same EID-prefix block must also be assigned a nonzero weight value. If a weight value of zero is assigned to any locator for a given EID-prefix block, then all locators with the same priority for that same EID-prefix block must also be assigned a weight value of zero. A weight value of zero indicates to an ITR receiving the map reply that it may decide how to load-share traffic destined to that EID-prefix block.
When a LISP site is assigned multiple IPv4 or IPv6 EID-prefix blocks, database mapping is configured for each IPv4 or IPv6 EID-prefix block assigned to the site and for each locator by which the IPv4 or IPv6 EID-prefix block is reachable.
Note |
Prior to Cisco IOS Release 15.2(3)T and Cisco IOS XE Release 3.6S, a maximum of 10 database-mapping entries were permitted per site. Beginning with Cisco IOS Release 15.2(3)T and Cisco IOS XE Release 3.6S, this limit has been raised to 100 database-mapping entries. |
When multiple ETRs are used at a LISP site, the database-mapping command must be configured on all ETRs for all locators by which an IPv4 or IPv6 EID-prefix block is reachable, even when the locator is not local to the specific ETR being configured. For example, if a site uses two ETRs and each has a single locator, both ETRs must be configured with the database-mapping command for the assigned IPv4 or IPv6 EID-prefix block for its own locator as well as the locator of the other ETR. That is, all ETRs will have identical database-mapping command configurations.
When the IPv4 or IPv6 address of an interface to be used as a routing locator is determined dynamically, such as by DHCP, you must specify the name of the interface that will be used as the locator rather than directly configuring the IP address. In this case, use the ipv4-interface interface-name or ipv6-interface interface-name keyword-argument pair of the database-mapping command to configure the appropriate RLOC.
When multiple ETRs are used at a LISP site, you must configure consistent database-mapping commands on all ETRs for all locators—including those local and not local to each ETR. To accomplish this when the database-mapping eid-prefix/prefix-length ipv4-interface interface-name or ipv6-interface interface-name form of the database-mapping command is configured for local locators, the database-mapping eid-prefix/prefix-length auto-discover-rlocs form of the command must be used to indicate that other ETRs within the same LISP site also have dynamic locators. Configuring the auto-discover-rlocs keyword signals to the map server that it should merge all locators for the associated EID prefixes within map-register messages it receives from all of the ETRs within a LISP site and send the merged locator set back to all registering ETRs via a map-notify message.
Note |
To reduce the configuration length and complexity when a LISP site contains multiple xTRs, configure the auto-discover-rlocs form of the database-mapping command (even when static addresses are used for local locators). |
When the optional down keyword is used with the database-mapping command, the priority value of the specified locator is set to 255 in registrations to the mapping system as well as in advertised mapping records to indicate to remote sites that the locator is down. Using the "down" option eliminates the need to change the priority configuration (to 255) of the same database-mapping command.
Examples
The following example shows how to enter LISP EID table configuration mode and configure the database-mapping command with the EID prefix 172.16.91.0/24, using the IPV4 address from interface gigabitEthernet 0/0 as its locator, and with priority 1 weight 100 as a policy:
Device> enable
Device# configure terminal
Device(config)# router lisp
Device(config-router-lisp)# eid-table default instance-id 0
Device(config-router-lisp-eid-table)# database-mapping 172.16.91.0/24 ipv4-interface gigabitEthernet 0/0 priority 1 weight 100
The following example shows how to enter LISP EID-table dynamic-EID configuration mode and configure the database-mapping command with the EID prefix 192.168.5.0/24, using the locator(s) defined by the locator-set 'LOCS':
Device> enable
Device# configure terminal
Device(config)# router lisp
Device(config-router-lisp)# locator-set LOCS
Device(config-router-lisp-locator-set)# ipv4-interface Ethernet 0/0 priority 1 weight 100
Device(config-router-lisp-locator-set)# exit
Device(config-router-lisp)# eid-table default instance-id 0
Device(config-router-lisp-eid-table)# dynamic-eid MOVER
Device(config-router-lisp-eid-table-dynamic-eid)# database-mapping 192.168.5.0/24 locator-set LOCS
The following example shows how to configure LISP database-mapping entries for a single IPv4 EID-prefix block with two IPv4 locators. It also shows how to configure a single IPv6 EID-prefix block and the same two IPv4 locators. Each locator is assigned the same priority (1) and weight (50), indicating that ingress traffic is expected to be load-shared equally across both paths. In this example, both IPv4 and IPv6 EIDs are reachable via IPv4 locators.
Device(config)# router lisp
Device(config-router-lisp)# eid-table default instance-id 0
Device(config-router-lisp-eid-table)# database-mapping 172.16.91.0/24 10.1.1.1 priority 1 weight 50
Device(config-router-lisp-eid-table)# database-mapping 172.16.91.0/24 10.2.1.1 priority 1 weight 50
Device(config-router-lisp-eid-table)# database-mapping 2001:DB8:BB::/48 10.1.1.1 priority 1 weight 50
Device(config-router-lisp-eid-table)# database-mapping 2001:DB8:BB::/48 10.2.1.1 priority 1 weight 50
The following example shows how to configure LISP database-mapping entries for a single IPv4 EID-prefix block with the IPv4 addresses from Gigabit Ethernet interface 0/0/0 referenced as the RLOC:
Device(config)# router lisp
Device(config-router-lisp)# eid-table default instance-id 0
Device(config-router-lisp-eid-table)# database-mapping 172.16.91.0/24 ipv4-interface GigabitEthernet0/0/0 priority 1 weight 100
The following example shows how to configure database-mapping entries for two xTRs (xTR-1 and xTR-2) at a LISP site. Both xTRs have a single database-mapping entry for a single IPv6 EID-prefix block with the IPv4 addresses from Gigabit Ethernet interface 0/0/0 referenced as the RLOC. In this case, because both xTRs use dynamically determined locator addresses, the auto-discover-rlocs form of the command is also added to indicate to the map server that it should merge the locators and send the merged locator set back to the xTRs via map-notify messages.
Configuration on xTR-1
Device(config)# router lisp
Device(config-router-lisp)# eid-table default instance-id 0
Device(config-router-lisp-eid-table)# database-mapping 2001:db8:a::/48 ipv4-interface GigabitEthernet0/0/0 priority 1 weight 50
Device(config-router-lisp-eid-table)# database-mapping 2001:db8:a::/48 auto-discover-rlocs
Configuration on xTR-2
Device(config)# router lisp
Device(config-router-lisp)# eid-table default instance-id 0
Device(config-router-lisp-eid-table)# database-mapping 2001:db8:a::/48 ipv4-interface GigabitEthernet0/0/0 priority 1 weight 50
Device(config-router-lisp-eid-table)# database-mapping 2001:db8:a::/48 auto-discover-rlocs
Verification on xTR-2
Device# show ipv6 lisp database
LISP ETR IPv6 Mapping Database for EID-table default (IID 0), LSBs: 0x3, 1 entries
Device# 2001:db8:a::/48, auto-discover-rlocs
Locator Pri/Wgt Source State
10.7.6.6 1/1 cfg-addr site-self, reachable
10.7.7.7 1/1 auto-disc site-other, report-reachable
xTR-2#