Hi,
To your question: Yes, you can add two next-hops to allow the switch to send different flows per link. but in order to get traffic load balanced you will need to configure a policy for that and apply it to the routing-options forwarding-table. for example:
routing-options {
static {
route 0.0.0.0/0 next-hop [ 103.4.128.1 103.4.128.2 ];
route 10.0.0.0/24 next-hop [ 10.64.31.86 10.64.31.94 ];
}
forwarding-table {
export load-balance;
}
}
The load balancing policy for the switch to actually use both links to send traffic can be as follows, this will match any prefix:
policy-options {
policy-statement load-balance {
then {
load-balance per-packet;
}
}
Then just check that both next hops are installed by issuing:
user@switch> show route forwarding-table destination 10.0.0.0
Some documentation to add:
Configuring Per-Packet Load Balancing
https://www.juniper.net/documentation/en_US/junos/topics/usage-guidelines/policy-configuring-per-packet-load-balancing.html
https://www.juniper.net/documentation/en_US/junos/topics/task/configuration/per-packet-load-balancing-qfx-series.html