NLNOG / nlnog-ring

NLNOG Server Ring Project
http://ring.nlnog.net/
54 stars 24 forks source link

Corrent ring-ping IPv6 compatibility #72

Closed ArkadiuszNowicki closed 9 years ago

ArkadiuszNowicki commented 9 years ago

At this moment script (default: /usr/local/bin/ring-ping) do not work with IPv6. The IPv6 address is interpreted like hostname:

tfskok@tfskok01:~$ ring-ping -v -n12 2001:67c:24c::b Invalid hostname 2001:67c:24c::b tfskok@tfskok01:~$

This path correct it:

tfskok@tfskok01:~$ ./ring-ping -v -n4 2001:67c:24c::b ipvisie01: 35.599 Netherlands - AS198089 (ripencc, IPVN-AS01 IP Visie Networking B.V.,NL) sapphire01: 75.768 Gibraltar - AS34803 (ripencc, BGL Broadband Gibraltar Limited,GI) octopuce01: 38.381 France - AS39389 (ripencc, CURSYS-MAIN Cursys Sarl,FR) 3 servers: 49ms average ssh connection failed: citynetwork01 tfskok@tfskok01:~$

ArkadiuszNowicki commented 9 years ago

It should match

IPv6 addresses zero compressed IPv6 addresses (section 2.2 of rfc5952) link-local IPv6 addresses with zone index (section 11 of rfc4007) IPv4-Embedded IPv6 Address (section 2 of rfc6052 IPv4-mapped IPv6 addresses (section 2.1 of rfc2765) IPv4-translated addresses (section 2.1 of rfc2765)