I'm running 3 nodes with the following command:
geth --verbosity 4 --autodag --nat any --genesis /opt/blockchain/genesis.json \
--datadir /opt/blockchain/data --networkid 4828 --port 30303 --rpc \
--rpcaddr 10.48.247.25 --rpcport 8545 --rpcapi db,eth,net,web3,admin \
--rpccorsdomain '*' --fast --mine --ipcdisable
The genesis.json file
is the same for every node (I've checksumed them to be sure).
What happens is the nodes can't find each other alone, I have to manually connect them throw admin.addPeer
.
To test it, I've created a interval loop in the console to print admin.peers
every 1 sec.:
var interval = setInterval(function(){console.log(admin.peers)}, 1000);
If if connect node 1
to node 2
(1--2
), they keep connecting to and disconnecting from each other. But node 3
is not able to connect to any of them.
Why is this happening?