Step 1 |
configure
terminal
Router# configure terminal
|
Enters global
configuration mode.
|
Step 2 |
router
lisp
Router(config)# router lisp
|
Enters LISP
configuration mode ( software only).
|
Step 3 |
site
site-name
Router(config-router-lisp)# site TRANS
|
Specifies a
LISP site named TRANS and enters LISP site configuration mode.
Note
|
A LISP site
name is locally significant to the map server on which it is configured. It has
no relevance anywhere else. This name is used solely as an administrative means
of associating EID-prefix or prefixes with an authentication key and other
site-related mechanisms.
|
|
Step 4 |
authentication-key [key-type]
authentication-key
Router(config-router-lisp-site)# authentication-key 0 TRANS-key
|
Configures the
password used to create the SHA-2 HMAC hash for authenticating the map register
messages sent by an ETR when registering to the map server.
Note
|
The LISP ETR
must be configured with an identical authentication key as well as matching EID
prefixes and instance IDs.
|
|
Step 5 |
eid-prefix
instance-id
instance-id
EID-prefix/ prefix-length
accept-more-specifics
Router(config-router-lisp-site)# eid-prefix instance-id 1 10.1.0.0/16 accept-more-specifics
|
Configures an
EID prefix and instance ID that are allowed in a map register message sent by
an ETR when registering to this map server. Repeat this step as necessary to
configure additional EID prefixes under this LISP site.
-
In the
example, EID-prefix 10.1.0.0/16 and instance-id 1 are associated together. The
EID-prefix 10.1.0.0/16 is assumed to be an aggregate covering all TRANS
EID-prefixes at all LISP Sites. The keyword
accept-more-specifics is needed in this case to
allow each site to register its more-specific EID-prefix contained within that
aggregate. If aggregation is not possible, simply enter all EID-prefixes
integrated within instance-id 1.
|
Step 6 |
exit
Router(config-router-lisp-site)# exit
|
Exits LISP
site configuration mode and returns to LISP configuration mode.
|
Step 7 |
Repeat steps
3 through 6 for each LISP site to be configured.
|
In this
example, steps 3 through 6 would be repeated for the site SOC and FIN as
illustrated in the complete configuration example at the end of this task.
|
Step 8 |
ipv4
map-resolver
Router(config-router-lisp)# ipv4 map-resolver
|
Enables LISP
map resolver functionality for EIDs in the IPv4 address family.
|
Step 9 |
ipv4
map-server
Router(config-router-lisp)# ipv4 map-server
|
Enables LISP
map server functionality for EIDs in the IPv4 address family.
|
Step 10 |
eid-table
vrf vrf-name
instance-id
instance-id
Router(config-router-lisp)# eid-table vrf TRANS instance-id 1
|
Configures an
association between a VRF table and a LISP instance ID, and enters eid-table
configuration submode.
|
Step 11 |
database-mapping
EID-prefix/prefix-length
locator
priority
priority
weight
weight
Router(config-router-lisp-eid-table)# database-mapping 10.1.1.0/24 172.16.1.2 priority 1 weight 100
|
Configures an
EID-to-RLOC mapping relationship and its associated traffic policy for this
LISP site.
|
Step 12 |
Repeat Step
11 until all EID-to-RLOC mappings within this eid-table vrf and instance ID for
the LISP site are configured.
Router(config-router-lisp-eid-table)# database-mapping 10.1.1.0/24 172.16.1.6 priority 1 weight 100
|
Configures an
EID-to-RLOC mapping relationship and its associated traffic policy for this
LISP site.
|
Step 13 |
ipv4
etr
map-server
map-server-address
key
key-type
authentication-key
Router(config-router-lisp-eid-table)# ipv4 etr map-server 172.16.1.2 key 0 TRANS-key
|
Configures a
locator address for the LISP map server and an authentication key for which
this router, acting as an IPv4 LISP ETR, will use to register with the LISP
mapping system.
-
In this
example, the map server and authentication-key are specified here, within the
eid-table subcommand mode, so that the authentication key is associated only
with this instance ID, within this VPN.
Note
|
The map
server must be configured with EID prefixes and instance-ids matching the
one(s) configured on this ETR, as well as an identical authentication key.
|
Note
|
The locator
address of the map server may be an IPv4 or IPv6 address. In this example,
because each xTR has only IPv4 RLOC connectivity, the map server is reachable
using its IPv4 locator addresses. (See the
LISP
Command Reference Guide for more details.)
|
|
Step 14 |
Repeat Step 13
to configure another locator address for the same LISP map server
Router(config-router-lisp-eid-table)# ipv4 etr map-server 172.16.1.6 key 0 TRANS-key
|
Configures a
locator address for the LISP map server and an authentication key for which
this router, acting as an IPv4 LISP ETR, will use to register with the LISP
mapping system.
-
In this
example, a redundant map server is configured. (Because the MS is co-located
with the xTRs in this case, this command indicates that this xTR is pointing to
itself for registration (and its neighbor xTR/MS/MR at the same site).
|
Step 15 |
exit
Router(config-router-lisp-eid-table)# exit
|
Exits
eid-table configuration submode and returns to LISP configuration mode.
|
Step 16 |
ipv4
itr
map-resolver
map-resolver-address
Router(config-router-lisp)# ipv4 itr map-resolver 172.16.1.2
|
Configures a
locator address for the LISP map resolver to which this router will send map
request messages for IPv4 EID-to-RLOC mapping resolutions.
-
In this
example, the map resolver is specified within router lisp configuration mode
and inherited into all eid-table instances since nothing is related to any
single instance ID. In addition, redundant map resolvers are configured.
(Because the MR is co-located with the xTRs in this case, this command
indicates that this xTR is pointing to itself for mapping resolution (and its
neighbor xTR/MS/MR at the same site).
-
The
locator address of the map resolver may be an IPv4 or IPv6 address. In this
example, because each xTR has only IPv4 RLOC connectivity, the map resolver is
reachable using its IPv4 locator address. (See the
LISP
Command Reference Guide for more details.)
Note
|
Up to two
map resolvers may be configured if multiple map resolvers are available. (See
the
LISP
Command Reference Guide for more details.)
|
|
Step 17 |
Repeat Step 16
to configure another locator address for the LISP map resolver
Router(config-router-lisp)# ipv4 itr map-resolver 172.16.1.6
|
Configures a
locator address for the LISP map resolver to which this router will send map
request messages for IPv4 EID-to-RLOC mapping resolutions.
-
In this
example, a redundant map resolver is configured. (Because the MR is co-located
with the xTRs in this case, this command indicates that this xTR is pointing to
itself for mapping resolution (and its neighbor xTR/MS/MR at the same site).
-
The
locator address of the map resolver may be an IPv4 or IPv6 address. In this
example, because each xTR has only IPv4 RLOC connectivity, the map resolver is
reachable using its IPv4 locator address. (See the
LISP
Command Reference Guide for more details.)
Note
|
Up to two
map resolvers may be configured if multiple map resolvers are available. (See
the
LISP
Command Reference Guide for more details.)
|
|
Step 18 |
ipv4
itr
Router(config-router-lisp)# ipv4 itr
|
Enables LISP
ITR functionality for the IPv4 address family.
|
Step 19 |
ipv4
etr
Router(config-router-lisp)# ipv4 etr
|
Enables LISP
ETR functionality for the IPv4 address family.
|
Step 20 |
exit
Router(config-router-lisp)# exit
|
Exits LISP
configuration mode and returns to global configuration mode.
|
Step 21 |
ip
route
ipv4-prefix
next-hop
Router(config)# ip route 0.0.0.0 0.0.0.0 172.16.1.1
|
Configures a
default route to the upstream next hop for all IPv4 destinations.
-
All IPv4
EID-sourced packets destined to both LISP and non-LISP sites are forwarded in
one of two ways:
- LISP-encapsulated to a LISP
site when traffic is LISP-to-LISP
- natively forwarded when
traffic is LISP-to-non-LISP
-
Packets
are deemed to be a candidate for LISP encapsulation when they are sourced from
a LISP EID and the destination matches one of the following entries:
- a current map-cache entry
- a default route with a
legitimate next-hop
- no route at all
In this configuration example, because the xTR has IPv4 RLOC
connectivity, a default route to the upstream SP is used for all IPv4 packets
to support LISP processing.
|
Step 22 |
exit
|
Exits global
configuration mode.
|