[j-nsp] Re: M5 - outbound load balancing

Korey Verlsteffen korey at webstream.net
Wed Jan 19 15:17:06 EST 2005


<>
In terms of load balancing, I would suggest turning on per-flow load
balancing using
a policy and applying it on the forwarding table.

You can do this with something like;

set policy-options policy-statement then load-balance per-packet
set routing-options forwarding-table export Load-Balance-Policy
</>

I tried the per-packet policy but it don't think I have it setup right.

routing-options {
    autonomous-system XXXX;
    forwarding-table {
        export load-balance;
    }
}

policy-options {
    policy-statement load-balance {
        then {
            load-balance per-packet;
        }
    }
}

A show route 65.0.0.1 shows me two equal paths

net.0: 151671 destinations, 302507 routes (151522 active, 0 holddown, 321
hidden)
+ = Active Route, - = Last Active, * = Both

65.0.0.0/19        *[BGP/170] 1d 00:43:22, localpref 100
                      AS path: XXX XXX XXX XXX I
                    > to 1.2.3.4 via t3-0/0/1.0
                    [BGP/170] 1d 00:43:28, localpref 100
                      AS path: XXX XXX XXX XXX I
                    > to 5.6.7.8 via t3-0/0/0.0

But a show route forwardin-table destination 65.0.0.1 shows me only one
destination

Routing table: inet
Internet:
Destination        Type RtRef Next hop          Type Index NhRef Netif
65.0.0.0/19        user     0 1.2.3.4      ucst    25 101673 t3-0/0/1.0


What am I doing wrong?





More information about the juniper-nsp mailing list