--- title: "How to configure Network Connector agents" slug: "network-connector-how-to-configure-network-connector-agents" updated: 2026-11-03T14:48:02Z published: 2026-11-03T14:48:02Z canonical: "docs.senhasegura.io/network-connector-how-to-configure-network-connector-agents" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.senhasegura.io/llms.txt > Use this file to discover all available pages before exploring further. # How to configure Network Connector agents In this document, you’ll find a step-by-step guide on how to configure **Network Connector** agents. ## Requirements It's necessary to have the agent **Network Connector** installed. To do this, follow the steps in the document [How to install Network Connector](/docs/en/network-connector-how-to-install-network-connector). ## Configure Network Connector agents On the machine where the primary **Network Connector** agent is installed: 1. Locate the `docker-compose.yml` file of the **Network Connector** agent. 2. Change the `SENHASEGURA_SECONDARY` parameter value to `false` in the primary agent's `docker-compose.yml` file. The `docker-compose.yml` file should look like this example: ``` services: senhasegura-network-connector-agent: image: "registry.senhasegura.io/network-connector/agent-v2:latest" restart: unless-stopped networks: - senhasegura-network-connector environment: SENHASEGURA_FINGERPRINT: "CHANGE_ME" SENHASEGURA_AGENT_PORT: "CHANGE_ME" SENHASEGURA_ADDRESSES: "CHANGE_ME" SENHASEGURA_AGENT_SECONDARY: "false" networks: senhasegura-network-connector: driver: bridge ``` ### Configure secondary agents 1. Change the `SENHASEGURA_SECONDARY` parameter value to `true` in the `docker-compose.yml` file of all secondary agents. The `docker-compose.yml` file should look like this example: ``` services: senhasegura-network-connector-agent: image: "registry.senhasegura.io/network-connector/agent-v2:latest" restart: unless-stopped networks: - senhasegura-network-connector environment: SENHASEGURA_FINGERPRINT: "CHANGE_ME" SENHASEGURA_AGENT_PORT: "CHANGE_ME" SENHASEGURA_ADDRESSES: "CHANGE_ME" SENHASEGURA_AGENT_SECONDARY: "true" networks: senhasegura-network-connector: driver: bridge ``` After configuring the agents in the **Network Connector Server** you can switch agents via an SSH/Telnet connection. Even if you choose to shut down the primary agent, you won’t lose remote access, as the secondary SNC will automatically take over. ## Manage the primary and secondary Network Connector To turn off the **Network Connector** primary, access the `network-connector-ha-dr-one` and run the `docker-compose down` command. To turn off the **Network Connector** secondary, access the `network-connector-ha-dr-two` and run the `docker-compose down` command. --- Do you still have questions? Reach out to the [Segura™ Community](https://community.senhasegura.io/).