Juniper – Load balancing between two broadband Internet link

Load balancing between two broadband Internet link…

You can use PBR (FBF) it is the same as route-map method on Cisco

interfaces {
    fe-0/0/2 {
        unit 0 {
            family inet {
                filter {
                    input PBR;
                }
                address 10.1.32.1/22;
            }
        }
    }
}
routing-options {
    interface-routes {
        rib-group inet pbr;
    }
    static {
        route 10.1.0.0/22 next-hop 192.168.30.2;
    }
    rib-groups {
        pbr {
            import-rib [ inet.0 PBR.inet.0 ];
        }
    }
}
firewall {
    family inet {
        filter PBR {
            term 1 {
                from {
                    source-address {
                        10.1.32.0/22;
                    }
                }
                then {
                    routing-instance PBR;
                }
            }
        }
    }
}
routing-instances {
    PBR {
        instance-type forwarding;
        routing-options {
            static {
                route 10.1.0.0/22 {
                    qualified-next-hop 192.168.30.6 {
                        preference 10;
                    }
                    qualified-next-hop 192.168.30.2 {
                        preference 20;
                    }
                }
            }
        }
    }
}
This entry was posted in Juniper. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s