Hardware and
software versions used in the configuration example are given below:
Table 3. Hardware and
software versions
Functional Role
|
Hardware Platform
|
Software Version
|
Border spine
and border leaf switch
|
Cisco Nexus
7000 and 7700 Series switches with F3/M3 line card
|
For the F3
line card, support was introduced in the Cisco NX-OS Software Release 7.2.
For the M3 line card, support was introduced in the 8.2(1)
release.
|
Map server
and map resolver
|
Cisco ASR
1000 Series Aggregation Services Routers
|
Cisco IOS XE
Software Release 3.13.2
|
Border spine
switch configuration in Data Center 1 (BGP AS 65001)
This section
summarizes the steps for configuring LISP for a hand-off from VXLAN on the
border spine or border leaf switch.
Note |
Important—This document
contains LISP related configurations on the border spine/leaf switch. You
should also enable VXLAN BGP EVPN configurations on this switch. For VXLAN BGP
EVPN configuration details, refer the
Forwarding
Configurations chapter,
Cisco Nexus
7000 Series switch configuration section.
|
Enable the LISP feature and
LISP encapsulation/decapsulation functionality
(config) #
feature lisp
ip lisp itr
ip lisp etr
Configure LISP map server
and map resolver reachability
(config) #
ip lisp itr map-resolver 10.8.12.9
ip lisp etr map-server 10.8.12.9 key 0 123456789
The above commands
configure the LISP map resolver address for the LISP ITR functionality, and the
LISP map server address (along with a shared key) for the LISP ETR
functionality.
Configure the LISP hand-off
for tenant VRF instances—The following example shows a two-tenant VRF
instance configuration.
(config) #
vrf context evpn-tenant-1
lisp instance-id 10
ip lisp locator-vrf default
lisp dynamic-eid lisp-subnets
ip lisp database-mapping 10.0.0.0/8 10.8.12.10 priority 1 weight 1
register-route-notifications tag 65001
-
The above
commands creates a LISP instance ID (which needs to be the same across data
centers) and defines the RLOC VRF to use (The mapping database is reachable
through that RLOC VRF).
-
The tag in the
route notification (65001) has to match the BGP Autonomous Systems Number that
datacenter 1 and the spine switch belong to.
-
The
database-mapping command configures an EID-to-RLOC
mapping relationship and its associated traffic policy for the LISP site.
-
The
register-route-notifications command triggers
mobility registration on reception of host routes with the tag configured.
A sample configuration of
the second tenant VRF is given below
(config) #
vrf context evpn-tenant-2
lisp instance-id 20
ip lisp locator-vrf default
lisp dynamic-eid lisp-subnets
ip lisp database-mapping 10.21.0.0/8 10.8.12.10 priority 1 weight 1
register-route-notifications tag 65001
If you need to
configure additional EID (IP address) subnets to map to the VRF instance, then
you will have to create another dynamic EID subnet name. A sample configuration
is given below.
(config) #
vrf context evpn-tenant-2
lisp dynamic-eid lisp-subnets-1
ip lisp database-mapping 209.165.200.225/24 10.0.0.2 priority 1 weight 1
register-route-notifications tag 650001
The LISP instance
ID provides a means of maintaining unique address spaces in the control and
data plane. Instance IDs are numerical tags defined in the LISP canonical
address format (LCAF). The instance ID has been added to LISP to support
virtualization.
When multiple
organizations within a LISP site are using private addresses as EID prefixes,
their address spaces must remain segregated to prevent address duplication. An
instance ID in the address encoding can be used to create multiple segmented
VPNs within a LISP site at which you want to keep using EID-prefix based
subnets. The LISP instance ID is currently supported in LISP ingress tunnel
routers and egress tunnel routers (ITRs and ETRs), map server (MS), and map
resolver (MR).
The LISP locator
VRF is used to associate a VRF table through which the routing locator address
space is reachable with a router LISP instantiation.
Border Leaf
Configuration in Data Center 2 (BGP AS 65002)
Configuration of
the border leaf switch is similar to that of the border spine switch. A
consolidated configuration is given below.
(config) #
feature lisp
ip lisp itr
ip lisp etr
ip lisp itr map-resolver 10.8.2.45
ip lisp etr map-server 10.8.2.45 key 0 123456789
vrf context evpn-tenant-1
lisp instance-id 10
ip lisp locator-vrf default
lisp dynamic-eid lisp-subnets
ip lisp database-mapping 10.0.0.0/8 10.8.2.46 priority 1 weight 50
register-route-notifications tag 65002
vrf context evpn-tenant-2
lisp instance-id 20
ip lisp locator-vrf default
lisp dynamic-eid lisp-subnets
ip lisp database-mapping 10.21.0.0/8 10.8.2.46 priority 1 weight 50
register-route-notifications tag 65002
The tag in the
route notification (65002) has to match the BGP Autonomous Systems Number that
datacenter 2 and the border leaf switch belong to.
LISP
Map-System Database Configuration
Configure the map
server and map resolver on the switch. The map server and map resolver can be
either on the same device or multiple devices. The scenario here uses an ASR
1000 Series router as the map server and map resolver.
(config) #
router lisp
lisp site DC
authentication-key shared-key
eid-prefix instance-id 10 10.0.0.0/8 accept-more-specifics
eid-prefix instance-id 10 10.21.0.0/8 accept-more-specifics
The above commands
defines the data center administrative scope, and maps the EID prefixes from
the data center sites to the LISP mapping system.
(config) #
lisp site branch
authentication-key shared-key
eid-prefix instance-id 10 10.12.0.0/8 accept-more-specifics
The above commands
define the branch location administrative scope.
Configure the branch site
(config) #
router lisp
eid-table default instance-id 10
database-mapping 10.1.0.0/24 10.100.0.1 priority 1 weight 50
router lisp
ipv4 itr map-resolver 10.9.9.9
ipv4 etr map-server 10.9.9.9 key s3cr3t-k3y
The above commands
configure the LISP Map resolver and Map server addresses.
(config) #
router lisp
ipv4 itr
ipv4 etr
The above
commands configure the device as a LISP ITR and ETR.
Verification
To check for the
EID (host IP address) learnt on the LISP site gateway on a Cisco Nexus 7000
Series or 7700 platform, use the command shown here.
N7700-Border-Spine# show lisp dynamic-eid summary vrf evpn-tenant-1
LISP Dynamic EID Summary for VRF " evpn-tenant-1"
* = Dyn-EID learned by site-based Map-Notify
! = Dyn-EID learned by routing protocol
^ = Dyn-EID learned by EID-Notify
Dyn-EID-Name Dynamic-EID Interface Uptime Last-Packet Pending-Ping-Count
lisp-subnets !10.1.1.12 Eth4/1 06:50:21 00:12:12 0
lisp-subnets !10.1.1.13 Eth4/2 03:20:01 00:10:12 0
In the above
sample output,
lisp-subnets refers to the EID subnet name,
Dynamic-EID column refers to the End host IP addresses
(EID), and
Interface
refers to the interface connecting to the leaf switches.
To check for
LISP map-cache entries on the map server, use the command shown below:
Map-Server# show lisp site
LISP Site Registration Information
* = Some locators are down or unreachable
Site-Name Last-Register Up Who-Last-Registered Inst-ID EID-Prefix
DC Never No --- 10 10.0.0.0/8
00:00:50 Yes 10.8.2.46 10 10.1.1.12/32
00:00:50 Yes 10.8.2.46 10 10.1.1.13/32
00:00:40 Yes 10.8.12.10 10 10.1.1.15/32
00:00:40 Yes 10.8.12.10 10 10.1.1.16/32
Never No --- 10 10.21.0.0/8
In the above
example, the
Who Last
Registered column refers to the LISP site gateway/RLOC.