*-------------------------------------
* konfiguracija IPv6 na usmerjevalniku

Building configuration...

Current configuration : 187 bytes
!
interface Vlan1
 description --- common LAN ---
 ip address 153.5.188.4 255.255.255.192
 no ip redirects
 ipv6 address 2001:1470:FAC0::4/64
 ipv6 nd suppress-ra
 no ipv6 redirects
end

*-------------------------------------
* pozeni tcpdump

[root@ciprnik ~]# tcpdump -v -i eth2
tcpdump: listening on eth2, link-type EN10MB (Ethernet), capture size 96 bytes
13:22:53.735746 fe80::211:95ff:fe5c:ecaa > ff02::2: [icmp6 sum ok] icmp6: router solicitation (src lladdr: 00:11:95:5c:ec:aa) (len 16, hlim 255)
...

*-------------------------------------
* vklop ND router advertisement-ov na usmerjevalniku

router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
router(config)#interface Vlan1    
router(config-if)#ipv6 nd ra-interval 60
router(config-if)#no ipv6 nd suppress-ra

router#sh run int vlan1
Building configuration...

Current configuration : 190 bytes
!
interface Vlan1
 description --- common LAN ---
 ip address 153.5.188.4 255.255.255.192
 no ip redirects
 ipv6 address 2001:1470:FAC0::4/64
 ipv6 nd ra-interval 60
 no ipv6 redirects
end

*-------------------------------------
* PC dobi IPv6 naslov

[root@ciprnik ~]# tcpdump -v -i eth2 icmp6
tcpdump: listening on eth2, link-type EN10MB (Ethernet), capture size 96 bytes
13:37:22.854165 fe80::20e:38ff:fef4:65c0 > ff02::1: icmp6: router advertisement(chlim=64, pref=medium, router_ltime=1800, reachable_time=0, retrans_time=0)(src lladdr: 00:0e:38:f4:65:c0)(mtu: mtu=1500)[ndp opt] [class 0xe0] (len 64, hlim 255)
13:38:19.502951 fe80::20e:38ff:fef4:65c0 > ff02::1: icmp6: router advertisement(chlim=64, pref=medium, router_ltime=1800, reachable_time=0, retrans_time=0)(src lladdr: 00:0e:38:f4:65:c0)(mtu: mtu=1500)[ndp opt] [class 0xe0] (len 64, hlim 255)

[root@ciprnik ~]# ifconfig eth2
eth2      Link encap:Ethernet  HWaddr 00:11:95:5C:EC:AA  
          inet addr:153.5.188.31  Bcast:153.5.188.63  Mask:255.255.255.192
          inet6 addr: 2001:1470:fac0:0:211:95ff:fe5c:ecaa/64 Scope:Global
          inet6 addr: fe80::211:95ff:fe5c:ecaa/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:578 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1086 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:51704 (50.4 KiB)  TX bytes:72478 (70.7 KiB)
          Interrupt:193 Base address:0x4000 

[root@ciprnik ~]# ip -6 route
2001:1470:fac0::/64 dev eth2  proto kernel  metric 256  expires 214713sec mtu 1500 advmss 1440 hoplimit 64
fe80::/64 dev eth2  metric 256  expires 2133347sec mtu 1500 advmss 1440 hoplimit 64
ff00::/8 dev eth2  metric 256  expires 2133347sec mtu 1500 advmss 1440 hoplimit 1
default via fe80::20e:38ff:fef4:65c0 dev eth2  proto kernel  metric 1024  expires 177sec mtu 1500 advmss 1440 hoplimit 64
unreachable default dev lo  proto none  metric -1  error -101 hoplimit 255

*-------------------------------------
* ping usmerjevalnika

[root@ciprnik ~]# ping6 2001:1470:fac0::4
PING 2001:1470:fac0::4(2001:1470:fac0::4) 56 data bytes
64 bytes from 2001:1470:fac0::4: icmp_seq=0 ttl=64 time=4.92 ms
64 bytes from 2001:1470:fac0::4: icmp_seq=1 ttl=64 time=2.45 ms
64 bytes from 2001:1470:fac0::4: icmp_seq=2 ttl=64 time=0.517 ms

--- 2001:1470:fac0::4 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 0.517/2.633/4.925/1.804 ms, pipe 2

[root@ciprnik ~]# tcpdump -v -i eth2 icmp6
tcpdump: listening on eth2, link-type EN10MB (Ethernet), capture size 96 bytes
13:40:20.627330 2001:1470:fac0:0:211:95ff:fe5c:ecaa > ff02::1:ff00:4: [icmp6 sum ok] icmp6: neighbor sol: who has router.delavnica.arnes.si(src lladdr: 00:11:95:5c:ec:aa) (len 32, hlim 255)
13:40:20.630678 router.delavnica.arnes.si > 2001:1470:fac0:0:211:95ff:fe5c:ecaa: [icmp6 sum ok] icmp6: neighbor adv: tgt is router.delavnica.arnes.si(RSO)(tgt lladdr: 00:0e:38:f4:65:c0) [class 0xe0] (len 32, hlim 255)
13:40:20.630702 2001:1470:fac0:0:211:95ff:fe5c:ecaa > router.delavnica.arnes.si: icmp6: echo request seq 0 (len 64, hlim 64)
13:40:20.631247 router.delavnica.arnes.si > 2001:1470:fac0:0:211:95ff:fe5c:ecaa: icmp6: echo reply seq 0 (len 64, hlim 64)
13:40:21.627223 2001:1470:fac0:0:211:95ff:fe5c:ecaa > router.delavnica.arnes.si: icmp6: echo request seq 1 (len 64, hlim 64)
13:40:21.629655 router.delavnica.arnes.si > 2001:1470:fac0:0:211:95ff:fe5c:ecaa: icmp6: echo reply seq 1 (len 64, hlim 64)
13:40:22.628091 2001:1470:fac0:0:211:95ff:fe5c:ecaa > router.delavnica.arnes.si: icmp6: echo request seq 2 (len 64, hlim 64)
13:40:22.628580 router.delavnica.arnes.si > 2001:1470:fac0:0:211:95ff:fe5c:ecaa: icmp6: echo reply seq 2 (len 64, hlim 64)
13:40:25.627251 fe80::20e:38ff:fef4:65c0 > 2001:1470:fac0:0:211:95ff:fe5c:ecaa: [icmp6 sum ok] icmp6: neighbor sol: who has 2001:1470:fac0:0:211:95ff:fe5c:ecaa(src lladdr: 00:0e:38:f4:65:c0) [class 0xe0] (len 32, hlim 255)
13:40:25.627293 2001:1470:fac0:0:211:95ff:fe5c:ecaa > fe80::20e:38ff:fef4:65c0: [icmp6 sum ok] icmp6: neighbor adv: tgt is 2001:1470:fac0:0:211:95ff:fe5c:ecaa(S) (len 24, hlim 255)


*-------------------------------------
* kaj se zgodi, ko vklopimo usmerjevalnik -- ICMPv6 ND sporocila

[root@ciprnik ~]# tcpdump -v -i eth2
...

13:51:53.802570 :: > ff02::1:fff4:65c0: [icmp6 sum ok] icmp6: neighbor sol: who has fe80::20e:38ff:fef4:65c0 [class 0xe0] (len 24, hlim 255)
13:51:54.809302 fe80::20e:38ff:fef4:65c0 > ff02::1: [icmp6 sum ok] icmp6: neighbor adv: tgt is fe80::20e:38ff:fef4:65c0(RO)(tgt lladdr: 00:0e:38:f4:65:c0) [class 0xe0] (len 32, hlim 255)
13:51:54.809584 :: > ff02::1:ff00:4: [icmp6 sum ok] icmp6: neighbor sol: who has router.delavnica.arnes.si [class 0xe0] (len 24, hlim 255)
13:51:55.815757 router.delavnica.arnes.si > ff02::1: [icmp6 sum ok] icmp6: neighbor adv: tgt is router.delavnica.arnes.si(RO)(tgt lladdr: 00:0e:38:f4:65:c0) [class 0xe0] (len 32, hlim 255)
13:51:59.414576 fe80::20e:38ff:fef4:65c0 > ff02::1: icmp6: router advertisement(chlim=64, pref=medium, router_ltime=1800, reachable_time=0, retrans_time=0)(src lladdr: 00:0e:38:f4:65:c0)(mtu: mtu=1500)[ndp opt] [class 0xe0] (len 64, hlim 255)
13:51:59.700106 :: > ff02::1:ff5c:ecaa: [icmp6 sum ok] icmp6: neighbor sol: who has 2001:1470:fac0:0:211:95ff:fe5c:ecaa (len 24, hlim 255)
13:52:48.874307 fe80::20e:38ff:fef4:65c0 > ff02::1: icmp6: router advertisement(chlim=64, pref=medium, router_ltime=1800, reachable_time=0, retrans_time=0)(src lladdr: 00:0e:38:f4:65:c0)(mtu: mtu=150
