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 either the LISP instance service configuration mode or dynamic-eid configuration mode.
The Router-LISP-Instance-Service configuration mode supports the following syntax:
database-mapping eid-prefix / prefix-length { locator | ipv4 interface interface | ipv6 interface interface | auto-discover-rlocs } priority priority weight weight
The dynamic-eid configuration mode supports the following syntax:
database-mapping eid-prefix / prefix-length locator-set RLOC-name
Syntax Description
eid-prefix / prefix-length
|
The IPv4 or IPv6 endpoint identifier prefix and length that is advertised by the router.
|
locator
|
The routing locator (RLOC) associated with the value specified for the eid-prefix.
|
ipv4 interface interface
|
Specifies the IPv4 address and name of the interface to be used as the RLOC for the EID prefix.
|
ipv6 interface interface
|
Specifies the IPv6 address and name of the interface to be used as the RLOC for the EID prefix.
|
auto-discover-rlocs
|
Configures the Egress Tunnel Router (ETR) to discover the locators of all routers configured to function as both an ETR and
an Ingress Tunnel Router (ITR)—such routers are referred to as xTRs—in the ETR LISP site when the site uses multiple xTRs
and each xTR is configured to use DHCP-learned locators or configured with only its own locators.
|
priority priority
|
Specifies the priority assigned to the RLOC. Valid values are from 0 to 255.
|
weight weight
|
Specifies the weight assigned to the locator. Valid values are from 0 to 100.
|
locator-set
RLOC-name
|
The routing locator that has to be associated with the specified EID.
|
Command Default
No LISP database entries are defined.
Command Modes
Router LISP Instance Service (router-lisp-instance-service)
Router LISP Instance Dynamic-EID (router-lisp-instance-dynamic-eid)
Command History
Release |
Modification |
Cisco IOS XE Everest 16.6.1
|
This command was introduced.
|
Usage Guidelines
In the LISP-instance-service configuration mode, the database-mapping command configures LISP database parameters like locator, priority, and weight for a specified IPv4 or IPv6 eid-prefix block.
The locator is 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 loopback address of the interface.
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
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. When multiple locators have the same priority, they are used in a load-sharing
manner.
The dynamic-eid configuration mode supports only the locator-set option in the database-mappingcommand to configure the RLOCs and its associated policies. When a packet is received on an interface on which the lisp mobility command has been applied, the source address of the packet is compared against the EID configured in the database-mapping
(LISP dynamic-eid) entry of the referenced LISP dynamic-eid
dynamic-eid-policy-name that matches the lisp mobility dynamic-eid-policy-name.
When a dynamic-eid match is discovered, the dynamic-eid will be registered to the map server with a locator set. Only one
database-mapping entry command is allowed per dynamic-eid
dynamic-eid-policy-name.
Examples
The following example shows how to map the eid-prefix with the locator-set, SET1, in the dynamic-eid configuration mode:
Note |
Ensure that the locator-set SET1 is already configured.
|
device(config)# router lisp
device(config-router-lisp)# instance-id 3
device(config-router-lisp-inst)# dynamic-eid Eng.mod
device(config-router-lisp-inst-dynamic-eid)# database-mapping 10.1.1.1/8 locator-set SET1
device(config-router-lisp-inst-dynamic-eid)#exit-dynamic-eid
device(config-router-lisp-inst-dynamic-eid)#