documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Improve FAQ With Networking Related Questions

Open rauljordan opened this issue 5 years ago • 5 comments
trafficstars

Would be great to improve our FAQ with important networking related questions that pop-up in our discord such as:

  1. To run a beacon node, do I need a static IP?
  2. If yes, does a static IPv6 also work? How can I use IPv6 with beacon nodes?
  3. Is it possible run multiple beacon nodes on same server if we link to different port and static IPs?

rauljordan avatar May 25 '20 19:05 rauljordan

What're the answers to the 2nd and 3rd questions? :sweat_smile:

har00ga avatar May 26 '20 07:05 har00ga

@nisdas I believe did some work regarding ipv6, he can shed more light on it as I am no.t too sure. I believe 3 should definitely be possible, you also have to use:

  • different datadirs
  • different rpc ports (default is 4000)
  • different p2p-udp-port and p2p-tcp-port
  • different --monitoring-port for your different beacon nodes

rauljordan avatar May 27 '20 17:05 rauljordan

  1. Not needed although it might make peering more complicated. You could register a domain name to your IP if it is dynamic, and use --p2p-host-dns if you desire to advertise your peer.

  2. Yes we do support ipv6 in Prysm, you could provide a valid ipv6 host address and we will advertise that in libp2p and discoveryV5.

  3. Yes, it is definitely possible to run multiple beacon nodes as long as they have distinct network identities. Ex: Different ip + udp port + tcp port for each node. They could also be of the same IP address but have different ports.

nisdas avatar May 31 '20 06:05 nisdas

Thanks guys :slightly_smiling_face:

har00ga avatar Jun 01 '20 07:06 har00ga

Can a single node run with dual-stack, both IPv4 and IPv6, addresses? Would that require multiple --p2p-host-ip args?

msnelling avatar Aug 03 '20 12:08 msnelling