Cardano Relay Configuration

Let's create a simple configuration for your core/relay node (for core node you will need to register keys/certificates which we will touch later)
Let's start by creating a folder structure for our nodes:
mkdir -p cnode
cd cnode
mkdir -p config db sockets keys logs scripts
cd config
We will be download the latest default configuration and genesis files from here:
cardano alonzo configuration files
Let's download them from our server's console:
#checking the latest built for configs
export LAST_BUILD=$(curl -s | grep -e "This item has moved" | sed -e 's/.*build\/\(.*\)\/download.*/\1/')
#downloading configs
wget -q -O mainnet-config.json${LAST_BUILD}/download/1/mainnet-config.json
wget -q -O mainnet-alonzo-genesis.json${LAST_BUILD}/download/1/mainnet-alonzo-genesis.json
wget -q -O mainnet-byron-genesis.json${LAST_BUILD}/download/1/mainnet-byron-genesis.json
wget -q -O mainnet-shelley-genesis.json${LAST_BUILD}/download/1/mainnet-shelley-genesis.json
wget -q -O mainnet-topology.json${LAST_BUILD}/download/1/mainnet-topology.json
#list downloaded files
ls -al mainnet*
#checking the latest built for configs
export LAST_BUILD=$(curl -s | grep -e "This item has moved" | sed -e 's/.*build\/\(.*\)\/download.*/\1/')
#downloading configs
wget -q -O testnet-config.json${LAST_BUILD}/download/1/testnet-config.json
wget -q -O testnet-alonzo-genesis.json${LAST_BUILD}/download/1/testnet-alonzo-genesis.json
wget -q -O testnet-byron-genesis.json${LAST_BUILD}/download/1/testnet-byron-genesis.json
wget -q -O testnet-shelley-genesis.json${LAST_BUILD}/download/1/testnet-shelley-genesis.json
wget -q -O testnet-topology.json${LAST_BUILD}/download/1/testnet-topology.json
#list downloaded files
ls -al testnet*
you should have now 5 files in the config folder:
OPTIONAL: By default you have IOG ( relay in your topology file, let's add one more:
cat > mainnet-topology.json << EOF
"Producers": [
"addr": "",
"port": 3001,
"valency": 2
"addr": "",
"port": 3001,
"valency": 1
We are almost done - I know that you are eager to test what we have done so far :) So let's test and run our Node on port 3000
Let's start with the core node:
cardano-node run --database-path /home/cardano/cnode/db --socket-path /home/cardano/cnode/sockets/node.socket --port 3000 --config /home/cardano/cnode/config/mainnet-config.json --topology /home/cardano/cnode/config/mainnet-topology.json
Starting from version 1.23.0 the "LiveView" screen has been removed - now we have only text-based output. For more graphical output check the RTView application.
If you followed the guide, you should see this:
carano node syncing blocks
great! You can now exit this by pressing ctrl+c and continuing to the next chapter!