Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device.
Atlassian cookies and tracking notice, (opens new window)
Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
/
How to Configure Automatic Failover Dynamic WAN Connections in Standby Mode
Published Jan 09

How to Configure Automatic Failover Dynamic WAN Connections in Standby Mode

Jan 09, 2026
Subscribe

Only use this setup if you are using two WAN connections where the secondary connection is in Standby mode.  For all other setups, see How to Configure Link Balancing and Failover for Multiple WAN Connections or How to Configure Failover with Multiple xDSL or DHCP WAN Connections.

When using two Internet connections from the same ISP, both links cannot be active at the same time if they are connecting to the same remote network and using the same remote gateway IP address. Since it is not possible to have two default routes each using the same remote gateway, the backup uplink must be used in standby mode only and used if the primary connection goes down. A reachable IP is used to monitor the primary uplink. When the primary uplink becomes unavailable, a script is executed to activate the secondary uplink. Lowering the route metric of the secondary uplink ensures that the backup uplink is used. When the primary uplink becomes available again (probing is successful), a script will place the secondary uplink into standby again.

Step 1. Configure Two DHCP Connections

Configure two DHCP WAN connections. For more information, see How to Configure an ISP with Dynamic IP Addresses (DHCP). 

For the primary and secondary DHCP uplink, use the following settings:

Setting

Primary DHCP Connection

Secondary DHCP Connection

Link Active

yes

yes

Standby Mode

no

yes

Route Metric

100

99

Step 2. Configure Connection Monitoring

  1. Go to CONFIGURATION  > Configuration Tree  > Box > Network.

  2. In the left menu, select xDSL/DHCP.

  3. In the left Configuration menu, select Switch to Advanced.

  4. Click Lock.

  5. In the DHCPv4 Links table, perform the following steps for the primary DHCP uplink:

    1. Edit the entry.

    2. In the Reachable IPs table, add the IP address that has been assigned for the connection from your ISP.

    3. Select Increase-Metric + Command as the Unreachable Action.

    4. Enter the following scripts:

      • Unreachable Command: /epb/openxdhcp start DHCP02

      • Re-reachable Command: /epb/openxdhcp stop DHCP02

        By default, DHCP02 is the name for the secondary uplink. If applicable, replace DHCP02 with the name that you specified for your secondary DHCP uplink.

    1. Click OK.

  6. Click Send Changes and Activate.

You can now see the active routes of the primary uplink and the pending route of the secondary uplink on the Control > Network page. If the primary uplink goes down, the first script is executed, thereby activating the secondary uplink. When the primary connection is available again, the second script is executed, which places the secondary link into standby mode again.


We value your feedback.
If you have questions, suggestions, or feedback on our documentation, contact the Campus Product Documentation team.
For general product inquiries or technical support, please contact the global Barracuda Support team.

🔍 Discover Our Product Documentation

Barracuda CloudGen Firewall 9.0
Results will update as you type.
  • Deployment
  • Get Started
  • Network
    • Understanding the Usage of Operational-Relevant IP Addresses on the CloudGen Firewall
    • How to Configure the Management Network, IP, and Shared IPs in the Management Network
    • How to Configure VLANs
    • How to Configure Ethernet Bundles
    • Advanced Routing
    • Virtual Routing and Forwarding (VRF)
    • WAN Connections
      • How to Configure an ISP with Static IP Addresses
      • How to Configure an ISP with Dynamic IP Addresses (DHCP)
      • xDSL WAN Connections
      • How to Configure an ISP using a WWAN Modem
      • How to Configure an ISP with ISDN
      • How to Configure Link Balancing and Failover for Multiple WAN Connections
      • How to Configure Failover with Multiple xDSL or DHCP WAN Connections
      • How to Configure Automatic Failover Dynamic WAN Connections in Standby Mode
      • How to Configure Wi-Fi Client Connection
    • How to Configure Web Security Service Integration using GRE Tunnels and a Static Public IP
    • How to Make a CloudGen Firewall Centrally Manageable Without a Control Center
    • How to Configure the Consistency Verification for Network Configurations
    • How to Activate Network Changes
    • How to Change the Management IP Address
    • IPv6
    • How to Configure MAC to Interface Mapping
    • How to Configure IP Tunneling
    • Azure Networking
    • AWS Networking
    • How to Configure Shared Networks and IPs
    • How to Add Additional Network Interfaces
  • High Availability
  • Licensing
  • Administration
  • Authentication
  • Cloud Integration
  • Assigned Services
  • Services
  • Automated Critical Updates
  • Firewall Control Center
  • Barracuda Secure Connector
  • Best Practice
  • Implementation Guides
  • Monitoring and Reporting
  • Maintenance
  • Remote Access Clients
  • Management Interfaces, Tools, and Apps
  • TUFIN Integration API Service
  • Hardware Models
  • REST API

    You‘re viewing this with anonymous access, so some content might be blocked.
    {"serverDuration": 10, "requestCorrelationId": "57b66a10cf4348f781650aed715b0e03"}