On Thu 18 Aug 2016 at 12:51:08 (+0200), Pascal Hambourg wrote: > Le 18/08/2016 à 01:26, Henrique de Moraes Holschuh a écrit : > > > >Too bad it is WinXP, otherwise you'd have instant connectivity via IPv6 > >SLAAC. > > Windows XP supports IPv6. It is just disabled by default, so you > need to enable it with something like "ipv6 enable". Even Windows > 2000 could have experimental basic IPv6 support. > > SLAAC (stateless address autoconfiguration) requires a properly > configured IPv6 router sending RA's (router advertisements). Debian > running radvd can do this. > > Or do you mean link local addresses (fe80::/10) ? They're not the > most convenient for everyday use.
The latter is certainly what I meant earlier. I find it very convenient, just by using an alias and function (which I deliberately avoid below). Here's the networking on my laptop as normally configured wirelessly (with uname -a; /sbin/ifconfig -a; ip route show; ip neigh show) and then when I connect to a host with cat5 cable, and back again. (I edited out the lo interface for brevity): -- Laptop connected normally by wireless: Linux west 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) i686 GNU/Linux eth0 Link encap:Ethernet HWaddr 00:1c:23:3b:9f:34 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:18 wlan0 Link encap:Ethernet HWaddr 00:1c:bf:d5:28:76 inet addr:192.168.1.15 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::21c:bfff:fed5:2876/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:284407 errors:0 dropped:0 overruns:0 frame:0 TX packets:147975 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:430082452 (410.1 MiB) TX bytes:13065473 (12.4 MiB) default via 192.168.1.1 dev wlan0 192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.15 192.168.1.19 dev wlan0 lladdr 00:13:72:83:0e:66 REACHABLE 192.168.1.1 dev wlan0 lladdr 44:94:fc:39:1f:ce REACHABLE -- Remove 192.168.1.19's ethernet cable from wall and plug into laptop: Linux west 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) i686 GNU/Linux eth0 Link encap:Ethernet HWaddr 00:1c:23:3b:9f:34 inet6 addr: fe80::21c:23ff:fe3b:9f34/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:47 errors:0 dropped:0 overruns:0 frame:0 TX packets:48 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:10259 (10.0 KiB) TX bytes:10392 (10.1 KiB) Interrupt:18 wlan0 Link encap:Ethernet HWaddr 00:1c:bf:d5:28:76 inet addr:192.168.1.15 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::21c:bfff:fed5:2876/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:322207 errors:0 dropped:0 overruns:0 frame:0 TX packets:166891 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:486912567 (464.3 MiB) TX bytes:14726418 (14.0 MiB) default via 192.168.1.1 dev wlan0 192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.15 fe80::213:72ff:fe83:e66 dev eth0 lladdr 00:13:72:83:0e:66 REACHABLE 192.168.1.19 dev wlan0 lladdr 00:13:72:83:0e:66 STALE 192.168.1.1 dev wlan0 lladdr 44:94:fc:39:1f:ce REACHABLE -- Log in to 192.168.1.19: $ ssh -X fe80::213:72ff:fe83:e66%eth0 Linux alum 3.2.0-4-686-pae #1 SMP Debian 3.2.81-1 i686 [...] You have new mail. Last login: Thu Aug 18 10:08:12 2016 from west $ -- Transfer file from 192.168.1.19 back to the laptop: $ scp -p a_file david@[fe80::21c:23ff:fe3b:9f34%eth0]:/tmp/ a_file 100% 1280KB 1.3MB/s 00:01 $ -- Log out of 192.168.1.19: $ [typed ^D] Connection to fe80::213:72ff:fe83:e66%eth0 closed. $ -- Transfer a file from laptop to 192.168.1.19: $ scp -p a_file david@[fe80::213:72ff:fe83:e66%eth0]:/tmp/ a_file 100% 1280KB 1.3MB/s 00:01 $ -- Reconnect 192.168.1.19 to the wall socket: Linux west 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) i686 GNU/Linux eth0 Link encap:Ethernet HWaddr 00:1c:23:3b:9f:34 inet6 addr: fe80::21c:23ff:fe3b:9f34/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:1385 errors:0 dropped:0 overruns:0 frame:0 TX packets:1495 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:1457798 (1.3 MiB) TX bytes:1464872 (1.3 MiB) Interrupt:18 wlan0 Link encap:Ethernet HWaddr 00:1c:bf:d5:28:76 inet addr:192.168.1.15 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::21c:bfff:fed5:2876/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:324108 errors:0 dropped:0 overruns:0 frame:0 TX packets:167844 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:489469428 (466.7 MiB) TX bytes:14814545 (14.1 MiB) default via 192.168.1.1 dev wlan0 192.168.1.0/24 dev wlan0 proto kernel scope link src 192.168.1.15 fe80::213:72ff:fe83:e66 dev eth0 lladdr 00:13:72:83:0e:66 STALE 192.168.1.19 dev wlan0 lladdr 00:13:72:83:0e:66 REACHABLE 192.168.1.1 dev wlan0 lladdr 44:94:fc:39:1f:ce REACHABLE -- Note that if you copy this method, you'll add lines to your ~/.ssh/known_hosts file. Cheers, David.