> For the complete documentation index, see [llms.txt](https://docs.strnan.top/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.strnan.top/mainnet/algorand/switching-network.md).

# Switching Network

#### Stop the algorand service

{% code overflow="wrap" %}

```bash
sudo systemctl stop algorand
```

{% endcode %}

#### Go to directory

{% code overflow="wrap" %}

```bash
cd /var/lib/algorand/genesis/mainnet
```

{% endcode %}

#### Copy the mainnet genesis

{% code overflow="wrap" %}

```bash
sudo cp genesis.json /var/lib/algorand/
```

{% endcode %}

## Start Node

Start the node to make sure you're already switched in mainnet.

{% code overflow="wrap" %}

```bash
sudo systemctl start algorand
```

{% endcode %}

Check your node after start the service.

{% code overflow="wrap" %}

```bash
goal node status -d /var/lib/algorand
```

{% endcode %}

Here is the result if you're already set up to testnet.

<figure><img src="/files/zaghdF9Bf1oL5GBYNfD4" alt=""><figcaption><p>example screenshot from testnet</p></figcaption></figure>
