1

As part of a big solution incorporating blockchain and data networking, I'd like to know how would 2 nodes establish a blockchain peering on their direct L2 Ethernet Link that has no IP addresses configured?

In other words; is it possible to establish peering based on MAC addresses not IP addresses?

Thanks

0

No, node URL explicitly requires IP address.

The hostname can only be given as an IP address, DNS domain names are not allowed.

Source : https://github.com/ethereum/wiki/wiki/enode-url-format

  • Thank You! Is there any way one would change the code for a private chain to allow discovery and peering using L2 addresses instead of L3 addresses? (i.e. MAC addresses) – Moustafa Ali Dec 7 '18 at 12:08
  • Do these hosts have IP at all ? If yes, you can modify geth code to establish different means of connectivity (I.e./ to perform a arp and find out IP before connecting). – Shamit Verma Dec 7 '18 at 12:45
  • No the hosts don't have any IP connectivity between them. That is the point, I would like to allow blockchain discovery and peering to take place between them without IP addresses, solely based on L2 MAC addresses. – Moustafa Ali Dec 7 '18 at 12:50
  • Do you have any software layer that can connect to hosts over L2 address and act as a socks proxy ? – Shamit Verma Dec 7 '18 at 13:34
  • Great suggestion, however I'm not sure how would that work around the need for IP addressing at all? We still need IP connectivity between the SOCKS server and the rest of the blockchain nodes, right? – Moustafa Ali Dec 7 '18 at 16:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.