setnetworkactive true|false

The setnetworkactive RPC disables/enables all P2P network activity.

*bitcoin-cli help setnetworkactive

setnetworkactive true|false

Disable/enable all p2p network activity.

Arguments:
1. "state"        (boolean, required) true to enable networking, false to disable