
[fabiand@proprietary ~]$ su -
Passwort: 

[root@proprietary ~]# # inet6 scope: link
[root@proprietary ~]# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:17:F2:32:03:D8  
          inet addr:192.168.1.144  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::217:f2ff:fe32:3d8/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4179 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3760 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1770741 (1.6 MiB)  TX bytes:580845 (567.2 KiB)
          Interrupt:16 

[root@proprietary ~]# # try to ping a host on the LAN (avahi with IPv6 enabled) raises the connect error (because of scope link)
[root@proprietary ~]# ping6 decade.local -c 1
connect: Invalid argument

[root@proprietary ~]# # (as expected) error is not present when specifing the interface/link
[root@proprietary ~]# ping6 decade.local -I eth0 -c 1
PING decade.local(decade.local) from fe80::217:f2ff:fe32:3d8 eth0: 56 data bytes
64 bytes from decade.local: icmp_seq=1 ttl=64 time=0.404 ms

--- decade.local ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.404/0.404/0.404/0.000 ms

[root@proprietary ~]# # Now: Change the inet6 scope from link to global/ula, by changing the inet6 prefix from fe80 (link) tp fd00 (scope/random-host-addr) - on both hosts ..
[root@proprietary ~]# ifconfig eth0 del fe80::217:f2ff:fe32:3d8/64
[root@proprietary ~]# ifconfig eth0 add fd00::217:f2ff:fe32:3d8/64

[root@proprietary ~]# # verify: scope changed to Global
[root@proprietary ~]# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:17:F2:32:03:D8  
          inet addr:192.168.1.144  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fd00::217:f2ff:fe32:3d8/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4255 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3853 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1780784 (1.6 MiB)  TX bytes:592002 (578.1 KiB)
          Interrupt:16 

[root@proprietary ~]# # Send one ping, just one ... runs fine.
[root@proprietary ~]# ping decade.local -c 1
PING decade.local (192.168.1.20) 56(84) bytes of data.
64 bytes from decade.fritz.box (192.168.1.20): icmp_seq=1 ttl=64 time=0.444 ms

--- decade.local ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 4ms
rtt min/avg/max/mdev = 0.444/0.444/0.444/0.000 ms

[root@proprietary ~]# # Just for completness ...
[root@proprietary ~]# ping decade.local -I eth0 -c 1
PING decade.local (192.168.1.20) from 192.168.1.144 eth0: 56(84) bytes of data.
64 bytes from decade.fritz.box (192.168.1.20): icmp_seq=1 ttl=64 time=0.671 ms

--- decade.local ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 4ms
rtt min/avg/max/mdev = 0.671/0.671/0.671/0.000 ms


