For those who seek help in different areas of software and hardware platform.

How to Configure Dual ISP Link Failover in Juniper SRX

If you have two ISPs or two different links for same destination, then you can configure floating static route. Floating static route allows you to failover the link if the primary link fails. This is accomplished by using preference and qualified-next hop feature available in JunOS operating system. To configure dual ISP link failover in Juniper SRX you need two ISP links. This technique is not just for ISP links. You can apply this technique to any dual link scenario that have same destination network. SRX series, MX series and J series devices are mostly used in these types of scenario.

Configure Dual ISP Link Failover in Juniper SRX

We have two ISPs, ISP A and ISP B. What we want to accomplish is, if primary ISP’s link fail, then switch the link through secondary link to ISP B. So, let’s get started.


We need to configure the routing table under [routing-options] hierarchy.
[edit routing-options]
user@SRX240# set static route next-hop preference 5 [Next hop is the primary next-hop for destination network. Note, means default gateway. Preference 5 is the default preference for static routes. Even if you don’t put preference 5 in this command, it is automatically there.]

[edit routing-options]
user@SRX240# set static route qualified-next-hop preference 7 [Now next-hop is the secondary next-hop for network. It has the preference of 7. If the primary link is to go down, this link will be the gateway for the default route.]

[edit routing-options]
user@SRX240# show
static {
route {
qualified-next-hop {
preference 7;
preference 5;

In this way you can configure floating static route in JunOS systems.


Post a Comment

Comments with links will not be published.

Video Tutorials