Step 1 |
configure
terminal
Example:
Router# configure terminal
|
Enters global
configuration mode.
|
Step 2 |
router
lisp
lisp-instantiation-number
Example:
Router(config)# router lisp
|
Creates the
specified LISP instantiation number and enters LISP configuration mode ( software only). All subsequent LISP
commands apply to that router LISP instantiation.
|
Step 3 |
locator-table
vrf
rloc-vrf-name
Example:
Router(config-router-lisp)# locator-table vrf BLUE
|
Configures a
router LISP instantiation to use the specified VRF as RLOC space when
encapsulating EIDs and sending control plane packets.
|
Step 4 |
eid-table
vrfEID-vrf-name
instance-id
instance-id
Example:
Router(config-router-lisp)# eid-table vrf PURPLE instance-id 101
|
Configures an
association between a VRF table and a LISP instance ID, and enters eid-table
configuration submode.
|
Step 5 |
database-mapping
EID-prefix/prefix-length
locator
priority
priority
weight
weight
Example:
Router(config-router-lisp-eid-table)# database-mapping 192.168.1.0/24 10.0.0.2 priority 1 weight 1
|
Configures an
EID-to-RLOC mapping relationship and its associated traffic policy for this
LISP site.
-
In this
example, a single IPv4 EID prefix, 192.168.1.0/24, within instance ID 1 at this
site is associated with the local IPv4 RLOC 10.0.0.2.
|
Step 6 | Repeat Step 4
until all EID-to-RLOC mappings within this eid-table vrf and instance ID for
this LISP site are configured.
Example:
Router(config-router-lisp-eid-table)# database-mapping 2001:db8:a:a::/64 10.0.0.2 priority 1 weight 1
|
Configures an
EID-to-RLOC mapping relationship and its associated traffic policy for this
LISP site.
-
In this
example, the IPv6 EID prefix, 2001:db8:a:a::/64, within instance ID 1 at this
site is also associated with the local IPv4 RLOC 10.0.0.2.
|
Step 7 |
exit
Example:
Router(config-router-lisp-eid-table)# exit
|
Exits
eid-table configuration submode and returns to LISP configuration mode.
|
Step 8 |
ipv4
itr
map-resolver
map-resolver-address
Example:
Router(config-router-lisp)# ipv4 itr map-resolver 10.0.2.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.
-
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 9 |
ipv4
etr
map-server
map-server-address
key
key-type
authentication-key
Example:
Router(config-router-lisp)# ipv4 etr map-server 10.0.2.2 key 0 PURPLE-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 within router lisp
configuration mode.
-
The map
server must be configured with EID prefixes and instance IDs matching those
configured on this ETR and with 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 10 |
ipv4
itr
Example:
Router(config-router-lisp)# ipv4 itr
|
Enables LISP
ITR functionality for the IPv4 address family.
|
Step 11 |
ipv4
etr
Example:
Router(config-router-lisp)# ipv4 etr
|
Enables LISP
ETR functionality for the IPv4 address family.
|
Step 12 |
ipv6
itr
map-resolver
map-resolver-address
Example:
Router(config-router-lisp)# ipv6 itr map-resolver 10.0.2.2
|
Configures a
locator address for the LISP map resolver to which this router will send map
request messages for IPv6 EID-to-RLOC mapping resolutions.
-
In this
example, the map resolver is specified within router lisp configuration mode.
-
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 addresses. (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 13 |
ipv6
etr
map-server
map-server-address
key
key-type
authentication-key
Example:
Router(config-router-lisp)# ipv6 etr map-server 10.0.2.2 key 0 PURPLE-key
|
Configures a
locator address for the LISP map-server and an authentication key that this
router, acting as an IPv6 LISP ETR, will use to register to the LISP mapping
system.
-
In this
example, the map server and authentication key are specified within router lisp
configuration mode.
-
The
map-server must be configured with EID prefixes and instance IDs matching those
configured on this ETR and with 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 |
ipv6
itr
Example:
Router(config-router-lisp)# ipv6 itr
|
Enables LISP
ITR functionality for the IPv6 address family.
|
Step 15 |
ipv6
etr
Example:
Router(config-router-lisp)# ipv6 etr
|
Enables LISP
ETR functionality for the IPv6 address family.
|
Step 16 |
exit
Example:
Router(config-router-lisp)# exit
|
Exits LISP
configuration mode and returns to global configuration mode.
|
Step 17 |
ip
route
vrf
rloc-vrf-name
ipv4-prefix
next-hop
Example:
Router(config)# ip route vrf BLUE 0.0.0.0 0.0.0.0 10.0.0.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 18 |
exit
Example:
|
Exits global
configuration mode.
|