ping link-local ipv6 (linux/windows)
linux ping link-local ipv6
sourceIP eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.100.150 netmask 255.255.252.0 broadcast 192.168.3.255 inet6 fe80::d294:66ff:fe36:d3dd prefixlen 64 scopeid 0x20<link> destinationIP eth1 Link encap:Ethernet HWaddr inet addr:192.168.100.222 Bcast:192.168.255.255 Mask:255.255.0.0 inet6 addr: fe80::220:8fff:fe1e:1b86/64 Scope:Link [test]$ ping 192.168.100.222 PING 192.168.100.222 (192.168.100.222) 56(84) bytes of data. 64 bytes from 192.168.100.222: icmp_seq=1 ttl=255 time=0.585 ms 64 bytes from 192.168.100.222: icmp_seq=2 ttl=255 time=0.287 ms [test]$ ping6 -I eth0 fe80::220:8fff:fe1e:1b86 PING fe80::220:8fff:fe1e:1b86(fe80::220:8fff:fe1e:1b86) from fe80::d294:66ff:fe36:d3dd%eth0 eth0: 56 data bytes 64 bytes from fe80::220:8fff:fe1e:1b86%eth0: icmp_seq=1 ttl=64 time=0.594 ms 64 bytes from fe80::220:8fff:fe1e:1b86%eth0: icmp_seq=2 ttl=64 time=0.275 ms [test]$ ping6 fe80::220:8fff:fe1e:1b86%eth0 PING fe80::220:8fff:fe1e:1b86%eth0(fe80::220:8fff:fe1e:1b86%eth0) 56 data bytes 64 bytes from fe80::220:8fff:fe1e:1b86%eth0: icmp_seq=1 ttl=64 time=0.305 ms 64 bytes from fe80::220:8fff:fe1e:1b86%eth0: icmp_seq=2 ttl=64 time=0.292 ms [test]$ tcpdump -i lct | grep 1b86 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on lct, link-type EN10MB (Ethernet), capture size 262144 bytes 08:25:01.214353 IP6 fe80::d294:66ff:fe36:d3dd > fe80::220:8fff:fe1e:1b86: ICMP6, echo request, seq 10, length 64 08:25:01.214409 IP6 fe80::220:8fff:fe1e:1b86 > fe80::d294:66ff:fe36:d3dd: ICMP6, echo reply, seq 10, length 64
windows ping link-local ipv6
sourceIP Link-local IPv6 Address . . . . . : fe80::293a:18d9:84ca:1c94%4 IPv4 Address. . . . . . . . . . . : 192.168.100.54 Subnet Mask . . . . . . . . . . . : 255.255.254.0 Default Gateway . . . . . . . . . : 192.168.101.254 destinationIP Link-local IPv6 Address . . . . . : fe80::b401:26b6:c3c0:52c5%12 IPv4 Address. . . . . . . . . . . : 192.168.100.90 Subnet Mask . . . . . . . . . . . : 255.255.254.0 Default Gateway . . . . . . . . . : 192.168.101.254 C:Users>ping 192.168.100.90 Pinging 192.168.100.90 with 32 bytes of data: Reply from 192.168.100.90: bytes=32 time<1ms TTL=128 Reply from 192.168.100.90: bytes=32 time=1ms TTL=128 C:Users>ping fe80::b401:26b6:c3c0:52c5%4 Pinging fe80::b401:26b6:c3c0:52c5%4 with 32 bytes of data: Reply from fe80::b401:26b6:c3c0:52c5%4: time<1ms Reply from fe80::b401:26b6:c3c0:52c5%4: time=1ms
下一篇:
linux上启动两个nginx实例