Juniper Failover with Static Router

  • by
Juniper Static Router with Preference

Use qualified-next-hop to allow independent preference for static routes to the same destination:

Primary next hop due to default route preference (5)
Secondary next hop due to configured route preference (7)

So traffic will go through IP 172.30.25.1. If this link will down then traffic will shift autamatically to IP 172.30.25.5. Also when primary link (172.30.25.1) will up then traffic will come back again to previous link (172.30.25.1).
By Default static route preference is 5 and you comfigured preference 7 to secondary link. So lower preference value’s priroty is high.

[edit routing-options]
#set static route 0.0.0.0/0 next-hop 172.30.25.1
#set static route 0.0.0.0/0 qualified-next-hop 172.30.25.5 preference 7

[edit routing-options]
user@router# show 
static {
    route 0.0.0.0/0 {
        next-hop 172.30.25.1;
        qualified-next-hop 172.30.25.5 {
            preference 7;
        }
    }
}

Leave a Reply