<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Redundancy group in juniper srx cluster - Juniper Firewall				            </title>
            <link>https://www.hacktheforum.com/juniper-firewall/redundancy-group-in-juniper-srx-cluster/</link>
            <description>Hack The Forum Discussion Board</description>
            <language>en</language>
            <lastBuildDate>Sun, 31 May 2026 11:32:31 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Redundancy group in juniper srx cluster</title>
                        <link>https://www.hacktheforum.com/juniper-firewall/redundancy-group-in-juniper-srx-cluster/#post-861</link>
                        <pubDate>Fri, 13 Dec 2024 12:51:33 +0000</pubDate>
                        <description><![CDATA[In a Juniper SRX Cluster, a Redundancy Group (RG) is a logical construct that is used to group interfaces and other resources that share a common state in the High Availability (HA) configur...]]></description>
                        <content:encoded><![CDATA[<p>In a <strong>Juniper SRX Cluster</strong>, a <strong>Redundancy Group</strong> (RG) is a logical construct that is used to group interfaces and other resources that share a common state in the High Availability (HA) configuration. The concept of redundancy groups is central to SRX’s HA clustering because they define how traffic is handled and how failover occurs between the nodes (SRX devices) in the cluster.</p>
<p>Each <strong>Redundancy Group</strong> is associated with one or more physical interfaces (called <strong>Redundant Ethernet interfaces</strong> or <strong>reth interfaces</strong>), and these interfaces carry traffic for a specific redundancy group. When a failover occurs, the active node (master node) in the cluster controls the interfaces associated with that redundancy group, while the backup node (slave node) is in standby mode. If the master node fails, the backup node takes over the interfaces in that redundancy group.</p>
<h3>Key Points of a Redundancy Group</h3>
<ol>
<li><strong>Redundancy Groups (RGs)</strong> are configured to define which interfaces will failover together and how traffic is distributed in case of failure.</li>
<li>Each redundancy group can have one or more <strong>physical interfaces</strong> (referred to as <strong>reth interfaces</strong>) associated with it.</li>
<li>Redundancy Groups help to control which devices handle which traffic in the event of failover.</li>
<li>In case of a failure on the active node, the passive node (backup) assumes control of the <strong>reth interfaces</strong> associated with the failed group, ensuring continuity of traffic.</li>
</ol>
<h3>Redundancy Group Configuration</h3>
<p>Each <strong>Redundancy Group</strong> is assigned a unique <strong>ID</strong> (from 0 to 15), and these groups are configured under the <code>chassis cluster</code> settings. In practice, redundancy groups provide high availability by controlling failover behaviors at the interface level.</p>
<p>Here is a typical configuration for <strong>Redundancy Groups</strong> in a <strong>Juniper SRX Cluster</strong>:</p>
<hr />
<h3>Example Configuration Steps for Redundancy Groups</h3>
<h4>1. <strong>Define the Redundancy Groups</strong></h4>
<p>In an HA setup, you define redundancy groups to specify which interfaces will be shared and failover together.</p>
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none">
<pre contenteditable="false"># On both devices
set chassis cluster redundancy-group 0 node 0 priority 100   # Primary node
set chassis cluster redundancy-group 0 node 1 priority 50    # Backup node
</pre>
</div>
</div>
<ul>
<li>In this example, <strong>Redundancy Group 0</strong> is being configured.</li>
<li><strong>node 0</strong> is the active node with a <strong>priority of 100</strong>.</li>
<li><strong>node 1</strong> is the passive node with a <strong>priority of 50</strong>.</li>
</ul>
<h4>2. <strong>Associate Redundant Ethernet Interfaces (reth) with Redundancy Groups</strong></h4>
<p>You then map the <strong>reth interface</strong> to the appropriate redundancy group. Each redundancy group must have one or more <strong>reth interfaces</strong> associated with it.</p>
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none">
<pre contenteditable="false"># On both devices
set interfaces reth0 redundant-ethernet-group 0
set interfaces reth1 redundant-ethernet-group 1
</pre>
</div>
</div>
<p>In this configuration:</p>
<ul>
<li><strong>reth0</strong> is assigned to <strong>Redundancy Group 0</strong>.</li>
<li><strong>reth1</strong> is assigned to <strong>Redundancy Group 1</strong>.</li>
</ul>
<h4>3. <strong>Assign IP Addresses to Redundant Ethernet Interfaces</strong></h4>
<p>You assign IP addresses to the <strong>reth interfaces</strong>, which will be the virtual IP (VIP) addresses that clients and other systems will connect to.</p>
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none">
<pre contenteditable="false"># On both devices
set interfaces reth0 unit 0 family inet address 192.168.100.1/24  # VIP for redundancy group 0
set interfaces reth1 unit 0 family inet address 192.168.200.1/24  # VIP for redundancy group 1
</pre>
</div>
</div>
<p>Here, <strong>reth0</strong> is given a virtual IP address of <code>192.168.100.1/24</code> for redundancy group 0, and <strong>reth1</strong> is assigned a different virtual IP address for redundancy group 1.</p>
<h4>4. <strong>Enable Redundancy Group Synchronization</strong></h4>
<p>For <strong>session synchronization</strong> and other HA mechanisms, you need to enable synchronization between the nodes for each redundancy group.</p>
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none">
<pre contenteditable="false"># On both devices
set chassis cluster redundancy-group 0 sync
</pre>
</div>
</div>
<p>This command ensures that both nodes in the cluster synchronize session states for <strong>Redundancy Group 0</strong>, allowing seamless failover without dropping connections.</p>
<h4>5. <strong>Configure Failover Behavior and State</strong></h4>
<p>In case of a failure, you can specify the failover behavior for the redundancy group. Typically, the system will use <strong>priority</strong> to determine which node becomes the master and which becomes the backup. Higher priority values are preferred as the active node.</p>
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none">
<pre contenteditable="false"># On both devices
set chassis cluster redundancy-group 0 node 0 priority 100
set chassis cluster redundancy-group 0 node 1 priority 50
</pre>
</div>
</div>
<p>Here, node 0 (Device 1) will be the primary node for <strong>Redundancy Group 0</strong> because it has a higher priority (100 vs. 50).</p>
<h4>6. <strong>Verify Redundancy Group Status</strong></h4>
<p>Once configured, you can verify the status of redundancy groups using the following command:</p>
<div class="contain-inline-size rounded-md border- border-token-border-medium relative bg-token-sidebar-surface-primary dark:bg-gray-950">
<div class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between rounded-t-md h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none">
<pre contenteditable="false"># On either device
show chassis cluster redundancy-group
</pre>
</div>
</div>
<p>This will display the current state of each redundancy group, such as which node is active (master) and which is passive (backup), and the status of associated interfaces.</p>
<hr />
<h3>Redundancy Group Failover</h3>
<p>The failover mechanism in a Juniper SRX HA cluster relies on <strong>Redundancy Groups</strong>. When a failure occurs (e.g., link failure, node failure, or interface failure), the following happens:</p>
<ol>
<li>The <strong>backup node</strong> takes over the role of the active node for the affected <strong>Redundancy Group</strong>.</li>
<li>The <strong>Virtual IP (VIP)</strong> associated with the <strong>reth interface</strong> in the redundancy group moves to the backup node.</li>
<li>Traffic flows through the backup node, and failover should be transparent to clients if session synchronization is properly set up.</li>
</ol>
<p>For example, if the primary node in <strong>Redundancy Group 0</strong> fails, the backup node (with the lower priority) will take over the <strong>reth0</strong> interface and the VIP (<code>192.168.100.1</code>).</p>]]></content:encoded>
						                            <category domain="https://www.hacktheforum.com/juniper-firewall/">Juniper Firewall</category>                        <dc:creator>kajal</dc:creator>
                        <guid isPermaLink="true">https://www.hacktheforum.com/juniper-firewall/redundancy-group-in-juniper-srx-cluster/#post-861</guid>
                    </item>
							        </channel>
        </rss>
		