[erlang-questions] How to connect erlang nodes over IPv6 (on Ubuntu 10.04 server installations, Erlang R14B1)?
Boris Mühmer
boris.muehmer@REDACTED
Wed Feb 16 00:46:08 CET 2011
Oh, I forgot to include the "debug" output form epmd:
$ /opt/Erlang/OTP/R14B01/20110214/2100/bin/epmd -d
epmd: Tue Feb 15 19:25:27 2011: epmd running - daemon = 0
epmd: Tue Feb 15 19:25:33 2011: ** got ALIVE2_REQ
epmd: Tue Feb 15 19:25:33 2011: registering 'test1:1', port 46484
epmd: Tue Feb 15 19:25:33 2011: type 77 proto 0 highvsn 5 lowvsn 5
epmd: Tue Feb 15 19:25:33 2011: ** sent ALIVE2_RESP for "test1"
epmd: Tue Feb 15 19:25:40 2011: ** got ALIVE2_REQ
epmd: Tue Feb 15 19:25:40 2011: registering 'test2:2', port 42591
epmd: Tue Feb 15 19:25:40 2011: type 77 proto 0 highvsn 5 lowvsn 5
epmd: Tue Feb 15 19:25:40 2011: ** sent ALIVE2_RESP for "test2"
epmd: Tue Feb 15 19:26:03 2011: unregistering 'test2:2', port 42591
epmd: Tue Feb 15 19:26:10 2011: unregistering 'test1:1', port 46484
epmd: Tue Feb 15 19:26:17 2011: ** got NAMES_REQ
epmd: Tue Feb 15 19:26:17 2011: ** sent NAMES_RESP
epmd: Tue Feb 15 19:26:22 2011: ** got KILL_REQ
epmd: Tue Feb 15 19:26:22 2011: epmd killed
epmd: Tue Feb 15 19:26:22 2011: got KILL_REQ - terminates normal
- boris
2011/2/16 Boris Mühmer <boris.muehmer@REDACTED>:
> I am a little step further:
> 1) epmd accepts "kill" from (IPv6) localhost.
> 2) erl doesn't die when started with "erl -name test -setcookie secret"
> 3) Also "erl" can connect the IPv6 epmd.
> 4) I could connect two nodes on the same system using net_adm:ping/1
> and "[node() | nodes()]." gave the correct result. [Using "erl -name
> test1 -setcookie secret" and "erl -name test2 -setcookie secret" in
> two shells.]
>
> My current changes are in my github repository at
> "https://github.com/bsmr/otp" within the "epmd_ipv6_fix_for_localhost"
> branch:
> https://github.com/bsmr/otp/commit/680c1dc960d470d0f22f52b9fc0aad2d920fc463
>
> This isn't a tested patch... it is just my initial try (aka quick and
> dirty hack) to get "epmd" working in my IPv6 environment!
>
> But I also had my 1st surprise: I could connect two nodes without
> adding "-proto_dist inet6_tcp" to the erl call!
>
> I didn't test it with nodes on different machines, because of two things:
> 1) I had some problems with git and github (not enough experience with
> both systems).
> 2) I had a call from my company to solve/help with an email spam
> attack on our company's mail server.
>
> Well, back to the topic:
> a) Is there a set of tests to do proper (automated) checks if IPv6 is
> working correctly?
> b) Is there a tool for "C/C++" to check for IPv4 and IPv6 problems
> (like "lint for IPv6" ;-)?
>
>
> Well, I need some sleep...
> - boris
>
More information about the erlang-questions
mailing list