Professional Documents
Culture Documents
05 FW - Cluster - JSEC - 12.a - C11 - HA - Clustering - Implementation
05 FW - Cluster - JSEC - 12.a - C11 - HA - Clustering - Implementation
© 2012 Juniper Networks, Inc. All rights reserved. | www.juniper.net | Worldwide Education Services
Chapter Objectives
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-2
Agenda: High Availability Clustering
Implementation
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-3
Cluster Operation: Forming a Cluster
Cluster
RGx
reth1 reth2
First chassis
boots
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-4
Cluster Operation: Joining a Cluster
Cluster
RGx RGx
reth1 reth2 reth1 reth2
Second chassis
boots
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-5
Cluster Operation: Leaving a Cluster
Leaving a cluster:
•The leave action can happen when the chassis reboots or
powers off
•The leave action can cause RG state changes from
secondary to the primary
Cluster
RGx RGx
reth1 reth2 reth1 reth2
Chassis boots
or powers off
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-6
Cluster Operation: Splitting a Cluster
Primary Disabled
reth1 reth2 reth1 reth2
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-7
Cluster Operation: Merging Clusters
Cluster A Cluster B
RGx RGx
reth1 reth2 reth1 reth2
Cluster
RGx RGx
reth1 reth2 reth1 reth2
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-8
Active-Passive Mode
Node 0 Node 1
fab n
Cluster
Active Session
Backup Session
RTO Packet
Upstream Traffic
Downstream Traffic
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-9
Active-Active Mode (1 of 2)
fab n
Node 0 Node 1
Cluster
Forward Session
Active Session
Backup Session
RTO Packet
Upstream Traffic Switch Fabric Forwarding
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-10
Active/Active Mode (2 of 2)
node
Data
RG 1 RG 2
Upstream
traffic
Downstream
traffic
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-11
Agenda: High Availability Clustering
Implementation
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-12
Preparing a Cluster
Physically connect two Junos security devices
•Ensure that both devices are of the same model
•Connect any two Ethernet interfaces (one per node) of the
same media type to create the fabric link
• Must be a fiber connection for high-end security platforms
•Connect control ports to create the control link
• SPCs must be in the same slots
• Use revenue port for branch security platforms (varies by device)
Configure SPC control ports (high-end platforms only)
Enable clustering
•Set up the cluster-id id and node id for each device
•Reboot desired primary device, then the secondary device
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-13
Enabling the Chassis Cluster
First node:
[edit chassis cluster]
user@srx1# show
control-ports {
fpc slot port port;
fpc slot port port; Control ports
} require
configuration
[edit chassis cluster] only on high-end
user@srx1# commit and-quit security
commit complete platforms
Exiting configuration mode
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-14
Cluster Configuration Steps
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-15
Configuring Management Interfaces
{primary:node0}
user@srx1> configure
warning: Clustering enabled; using private edit
warning: uncommitted changes will be discarded on {primary:node0}[edit]
exit user@srx1# set apply-groups “${node}”
Entering configuration mode
{primary:node0}[edit]
user@host1# edit groups
{primary:node0}[edit groups]
user@srx1# show Ensures proper group
node0 { assignment to both
system { nodes
host-name unique-name1;
}
interfaces {
fxp0 {
unit 0 {
family inet {
address ip-address1;
}
...
node1 {
system {
host-name unique-name2;
}
interfaces {
fxp0 {
unit 0 {
family inet {
address ip-address2;
…
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-16
Configuring Fabric Interfaces
{primary:node0}[edit]
user@srx1# show interfaces Interface from
fab0 { Node 0
fabric-options {
member-interfaces {
interface-name;
}
}
} Interface from
fab1 { Node 1
fabric-options {
member-interfaces {
interface-name;
}
}
}
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-17
Configuring a Redundancy Group
{primary:node0}[edit] Priorities range
user@srx1# show chassis cluster from 1–254
redundancy-group number {
node [0 | 1] priority priority-number;
node [0 | 1] priority priority-number;
preempt; Optional
gratuitous-arp-count number; command
interface-monitor {
interface-name weight number;
interface-name weight number; Default
} value is 4
}
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-18
Configuring a Redundant Ethernet Interface
{primary:node0}[edit] {primary:node0}[edit]
user@srx1# show interfaces user@srx1# show chassis cluster
ge-x/y/z { reth-count number
gigether-options { ...
redundant-parent reth#;
}
...
}
ge-a/b/c {
gigether-options { Define the number
redundant-parent reth#; of reth interfaces in
} a cluster
...
}
reth# {
redundant-ether-options { Can configure
redundancy-group number; multiple logical
}
units using VLAN
unit 0 {
tagging
family inet {
address ip-address;
}
}
}
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-19
Configuring Cluster Failover Parameters
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-20
Disabling a Chassis Cluster
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-21
Agenda: High Availability Clustering
Implementation
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-22
Example: Network Diagram Prior to Issuing
the Cluster-Forming Command
host1
fxp0
.1
10.20.20.2/24
.2 Internet A
ge-0/0/2 SPC 3
port 0 5.5.5.2/24
B .2
.1
fxp0
host2
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-23
Forming a Cluster
Cluster formation:
•First node:
[edit chassis cluster]
user@host1# show Control port
control-ports { configuration needed
fpc 3 port 0; only on high-end
fpc 15 port 0; security platforms
}
•Second node:
user@host2> set chassis cluster cluster-id 1 node 1 reboot
Successfully enabled chassis cluster. Going to reboot now
...
{secondary:node1}
user@host2>
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-24
Example: Network Diagram After Issuing
the Cluster-Forming Command
node0 fxp0
.1
fab 0
reth1 .2 Internet A
B 10.20.20.1/24
fxp1
5.5.5.2/24
10.20.20.2/24 .2
fab 1
.1
node1
fxp0
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-25
Cluster Status Check
{primary:node0}
user@host1> show chassis cluster status
Cluster ID: 1
Node name Priority Status Preempt Manual
failover
{primary:node0}
user@host1> show interfaces terse | match "fab|fxp1"
fab0 up down
fab0.0 up down inet 30.17.0.200/24
fab1 up down
fab1.0 up down inet 30.18.0.200/24
fxp1 up up
fxp1.0 up up inet 129.16.0.1/2
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-26
Configuring the Management Interface
{primary:node0} {primary:node0}[edit]
user@host1> configure user@host1# show apply-groups
warning: Clustering enabled; using private edit
## Last changed: 2009-01-09 14:11:09 UTC
warning: uncommitted changes will be discarded on exit
Entering configuration mode apply-groups "${node}";
{primary:node0}[edit] {primary:node0}[edit]
user@host1# edit groups user@host1# commit
node0:
{primary:node0}[edit groups]
user@host1# show configuration check succeeds
node0 { node1:
system { commit complete
host-name node0-host; node0:
}
commit complete
interfaces {
fxp0 {
unit 0 { {primary:node0}[edit]
family inet { user@node0-host#
address 10.210.11.182/28;
}
...
node1 {
system {
host-name node1-host;
}
interfaces {
fxp0 {
unit 0 {
family inet {
address 10.210.11.177/28;
...
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-27
Configuring the Fabric Interfaces
[edit]{primary:node0}
user@node0-host# show interfaces
fab0 { fab0 is for Node 0
fabric-options {
member-interfaces {
ge-0/0/2;
}
}
}
fab1 {
fabric-options { fab1 is for Node 1
member-interfaces {
ge-12/0/2;
}
}
}
{primary:node0}
user@node0-host> show interfaces terse | match fab
ge-0/0/2.0 up up aenet --> fab0.0
ge-12/0/2.0 up up aenet --> fab1.0
fab0 up up
fab0.0 up up inet 30.17.0.200/24
fab1 up up
fab1.0 up up inet 30.18.0.200/24
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-28
Configuring a Redundancy Group
{primary:node0}[edit chassis cluster]
user@node0-host# show
redundancy-group 0 {
node 0 priority 254;
node 1 priority 1;
}
redundancy-group 1 {
node 0 priority 200;
node 1 priority 100;
gratuitous-arp-count 5;
interface-monitor {
ge-1/0/0 weight 255;
}
}
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-29
Viewing Redundancy Groups
{primary:node0}
user@node0-host> show chassis cluster status
Cluster: 1, Redundancy-Group: 0
Device name Priority Status Preempt Manual failover
Cluster: 1, Redundancy-Group: 1
Device name Priority Status Preempt Manual failover
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-30
Configuring reth Interfaces
{primary:node0}[edit] {primary:node0}
user@node0-host# show interfaces user@node0-host> show interfaces terse | match reth
ge-0/0/0 { Interface Admin Link Proto Local ...
gigether-options {
ge-0/0/0.0 up up aenet --> reth1.0
redundant-parent reth1;
} ge-12/0/0.0 up up aenet --> reth1.0
} reth0 up down
ge-12/0/0 { reth1 up up
gigether-options { reth1.0 up up inet 10.20.20.1/24
redundant-parent reth1;
}
}
reth1 {
redundant-ether-options {
redundancy-group 1;
}
unit 0 {
family inet {
address 10.20.20.1/24;
}
}
}
{primary:node0}[edit]
user@node0-host# show chassis cluster
Specify the number
reth-count 2
of reth interfaces
...
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-31
Configuring Cluster Failover Parameters
{primary:node0}[edit]
user@node0-host# show chassis cluster
...
heartbeat-interval 1200;
heartbeat-threshold 5;
...
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-32
Monitoring Cluster Statistics
{primary:node0}
user@node0-host> show chassis cluster statistics
Control link statistics:
Control link 0:
Heartbeat packets sent: 69428
Heartbeat packets received: 69404
Heartbeat packet errors: 0
Fabric link statistics:
Child link 0
Probes sent: 123832
Probes received: 123829
Child link 1
Probes sent: 0
Probes received: 0
Services Synchronized:
Service name RTOs sent RTOs received
Translation context 0 0
Incoming NAT 0 0
Resource manager 0 0
DS-LITE create 0 0
Session create 383 0
IPv6 session create 0 0
Session close 375 0
IPv6 session close 0 0
Session change 0 0
IPv6 session change 0 0
Gate create 0 0
Session ageout refresh requests 0 97
IPv6 session ageout refresh requests 0 0
Session ageout refresh replies 96 0
IPv6 session ageout refresh replies 0 0
IPSec VPN 0 0
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-33
Manual Failover (1 of 2)
Process
•Verify status:
{primary:node0}
user@node0-host> show chassis cluster status redundancy-group 1
Cluster: 1, Redundancy-Group: 1
Device name Priority Status Preempt Manual failover
•Initiate failover:
{primary:node0}
user@node0-host> request chassis cluster failover redundancy-group 1 node 1
node1:
--------------------------------------------------------------------------
Initiated manual failover for redundancy group 1
{primary:node0}
user@node0-host> show chassis cluster status redundancy-group 1
Cluster: 1, Redundancy-Group: 1
Device name Priority Status Preempt Manual failover
Reset failover:
{primary:node0}
user@node0-host> request chassis cluster failover reset redundancy-group 1
node0:
--------------------------------------------------------------------------
No reset required for redundancy group 1.
node1:
--------------------------------------------------------------------------
Successfully reset manual failover for redundancy group 1
{primary:node0}
user@node0-host> show chassis cluster status redundancy-group 1
Cluster: 1, Redundancy-Group: 1
Device name Priority Status Preempt Manual failover
Enable traceoptions:
{primary:node0}[edit chassis cluster]
user@node0-host# show
traceoptions {
flag cli;
flag configuration;
flag heartbeat;
}
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-36
Summary
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-37
Review Questions
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-38
Lab 8: Implementing High Availability
Techniques
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-39
Resources to Help You Learn More
Resource URL Description
© 2012 Juniper Networks, Inc. All rights reserved. Worldwide Education Services www.juniper.net | 11-40
Worldwide Education Services