hostname xTR1
!Zakladna konfiguracia IP adries
int fa0/0
  ip add 192.168.2.1 255.255.255.0
  no sh
int se1/0
  ip add 10.12.0.1 255.255.255.252
  no sh


!Konfiguracia protokolu OSPF - underlay vrstva
router ospf 1
  network 10.0.0.0 0.255.255.255 area 0


!Uloha1: Nasadenie LISP sieti
router lisp
  database-mapping 192.168.2.0/24 10.12.0.1 priority 22 weight 13
  ipv4 itr map-resolver 10.22.22.22
  ipv4 itr
  ipv4 etr map-server 10.22.22.22 key L1_pass
  ipv4 etr
!lig self
!show ip lisp map-cache


!Uloha2: Nasadenie IPv6 LISP siete
ipv6 unicast-routing
int fa0/0
  ipv6 add 2001:db8:2:2::1/64
router lisp
  database-mapping 2001:db8:2:2::/64 10.12.0.1 priority 1 weight 1
  ipv6 itr map-resolver 10.22.22.22
  ipv6 itr
  ipv6 etr map-server 10.22.22.22 key L1_pass
  ipv6 etr
!lig self ipv6
!show ipv6 lisp map-cache

!Uloha3: Multihoming
!clear ip lisp map-cache *
!show adjacency lisp 0 detail


!Úloha4: remote
router lisp
  ipv4 use-petr 10.2.2.2

!Uloha5: Mobility
!clear ip lisp map-cache
