database-mapping (LISP dynamic-EID)
To configure an IPv4 mapping relationship and an associated traffic policy for Locator/ID Separation Protocol (LISP) Virtual Machine (VM)-mobility (dynamic-EID) policy, enter dynamic-EID configuration mode, use the database-mapping command in LISP dynamic-EID EID-table configuration mode. To remove the configured database mapping, use the no form of this command.
database-mapping dynamic-eid-prefix / prefix-length locator-set name
no database-mapping
Syntax Description
dynamic-eid-prefix/prefix-length |
IPv4 dynamic-EID prefix and length to be registered as a roaming EID for the policy. |
locator-set |
Specifies the IPv4 routing locator (RLOC) associated with the EID prefix. |
name |
Name of the existing locator set. |
Command Default
No dynamic-EID database entries are defined.
Command Modes
LISP dynamic-EID EID-table configuration (config-router-lisp-eid-table-dynamic-eid)
Command History
Release |
Modification |
---|---|
15.3(1)T |
This command was introduced. |
Cisco IOS XE Release 3.8S |
This command was integrated into Cisco IOS XE Release 3.8S. |
Usage Guidelines
When a dynamic-EID policy is configured, you must specify the dynamic-EID-to-RLOC mapping relationship and its associated traffic policy to use for each permitted prefix. 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 (or entries) 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 (LISP dynamic-EID) entry command is allowed per dynamic-eid dynamic-eid-policy-name . Both dynamic-eid-prefix and locator-set can be IPv4 addresses.
Note |
All database-mapping dynamic-EID commands must be consistent on all LISP-VM routers supporting the same roaming dynamic EID. |
Examples
The following example shows how to configure the dynamic EID prefix to describe attributes about the dynamic EID prefix and its range in comparison to any static entries configured. It must use the locator set functionality because it cannot use a RLOC address directly. It enters the LISP dynamic-EID EID-table configuration mode and configures the database-mapping command with the dynamic-EID prefix 172.15.1.0/24.
Device> enable
Device# configure terminal
Device(config)# router lisp
Device(config-router-lisp)# locator-set Site-1
Device(config-router-lisp-locator-set)# 172.16.1.1 priority 0 weight 0
R1(config-router-lisp-locator-set)# exit
Device(config-router-lisp)# eid-table default instance-id 0
Device(config-router-lisp-eid-table)# dynamic-eid Roamer-1
Device(config-router-lisp-eid-table-dynamic-eid)# database-mapping 172.15.1.0/24 locator-set Site-1