[j-nsp] BGP load balance per packet

tchoel . tchoel at hotmail.com
Sat Nov 1 16:42:56 EST 2003


Hi,

We've configured a JunOS 5.7R2.4 for BGP load-balancing.
We've four links on our router all connected to same
upstream autonomous system. Two of the links are connected
to one upstream router and the other two is connected to an
other upstream router. BGP sessions are established with
loopback addresses and we've also configured static routes
for each loop-back address. Import policy filters are setting
the next-hop as the proper loopback address.
[routing-options forwarding-table] is configured with a policy
for load balance per-packet and bgp is configured with multipath.
But we still see that traffic is forwarded using only one link
of the each pair connected to upstream routers. I've checked the
documentation but couldn't find a solution.Here's the configuration 
information;

thanks,
tchoel

[routing-options static]

route 192.168.0.1/32 next-hop [172.16.0.1 172.16.0.5] //links A and B
route 192.168.1.1/32 next-hop [172.16.1.1 172.16.1.5] //links C and D

[protocols bgp]

group links-AB-toUp1 {
    type external;
    multihop {
        ttl 2;
    }
    local-address 10.0.0.1;
    import import4AB;
    export exportPolicy;
    peer-as 65513;
    multipath;
    neighbor 192.168.0.1;
}
group links-CD-toUp1 {
    type external;
    multihop {
        ttl 2;
    }
    local-address 10.0.0.1;
    import import4CD;
    export exportPolicy;
    peer-as 65513;
    multipath;
    neighbor 192.168.1.1;
}

[policy-options policy-statement import4AB]

term first {
    from {
        ..
          things_to_reject;
        ..
    }
    then reject;
}

term second {
    from {
        protocol bgp;
        route-filter 0.0.0.0/0 upto /24;
    }
    then {
        next-hop 192.168.0.1;
        accept;
    }
}
term last {
    then reject;
}

[policy-options policy-statement import4CD]

term first {
    from {
        ..
          things_to_reject;
        ..
    }
    then reject;
}

term second {
    from {
        protocol bgp;
        route-filter 0.0.0.0/0 upto /24;
    }
    then {
        next-hop 192.168.1.1;
        accept;
    }
}
term last {
    then reject;
}

[policy-options policy-statement equal_cost]

then {
    load-balance per-packet;
}

[routing-options forwarding-table]
export equal_cost;

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus



More information about the juniper-nsp mailing list