Start a New Ethereum Private Network

This section describes how to start a new Ethereum private network.

If you want to start a new private Ethereum network with "geth (Go Ethereum)", you need at least 2 pieces of information:

1. Giving a unique network ID. "geth" has 4 built-in network IDs to identify 4 public Ethereum networks:

--networkid <id>

   where id is one of: 
      1 - Frontier, the main Ethereum network
      2 - Morden, disused now 
      3 - Ropsten, the test network, "testnet"
      4 - Rinkeby, the second test network

You chose any ID value higher than 4 for your private network. For example, 314:

geth --networkid 314

   specifying a new ID for the "geth" Ethereum to join or create.  

2. Giving a unique data directory where private network blockchain will be stored.

geth --datadir \herong\Ethereum\personal

Here is what I did to start my own personal Ethereum network:

C:\>\local\bin\geth.exe console --networkid 314 
   --datadir \herong\Ethereum\personal 
   2>> ether-personal.log

instance: Geth/v1.8.1-stable-1e67410e/windows-386/go1.9.2
 modules: admin:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 
 rpc:1.0 txpool:1.0 web3:1.0

>

Cool, I have my first private Ethereum network running!

Last update: 2017.

Table of Contents

 About This Book

 Introduction of Ethereum

 Ethereum Blockchain

 Ethereum Mist Wallet

 geth - Go Ethereum

 Testnet - Ropsten network

Private Ethereum Network

 What Is Ethereum Private Network

Start a New Ethereum Private Network

 Ethereum Private Network Log and Data

 Private Network - Default Genesis Block

 Create Account on Ethereum Network

 What Is Ether Account

 What Is Ethereum Blockchain Miner

 Start "geth" Miner

 "geth" Crashed - Out of Memory

 64-Bit "geth" for Private Ethereum Network

 Private Network with Custom Genesis Block

 Transferring Funds between Ether Accounts

 MetaMask - Browser Based Ethereum Wallet

 Managing Ethereum Account

 ethereumfaucet.info - Mining Ether with Browser

 References

 PDF Printing Version