Multihomed GBP loadbalancing
Hi all, We are working on a config for a Multihomed ISP solution. This is the setup Local Fortigate [AS100] <> L3 UPLINK A <> ISP router A [AS200] Local Fortigate [AS100] <> L3 UPLINK B <> ISP router B [AS200] The goal is to divide our assigned IP public space [100.100.100.0/24] into 2 segments to make use of both UPLINK-s I can get inboud traffic "split" by using "set set-metric xxx", the failover also works between the 2 uplinks The "problem" is that I dont know how to divide the outbound traffic based on the source segment. So my corrunt setup of route-maps A-IN/B-IN is incorrect.........
All ideas are welcome!
config router bgp
set as 100
set router-id 100.100.100.100
set network-import-check disable
config neighbor
edit "ISP router A"
set link-down-failover enable
set prefix-list-out "blockrule"
set remote-as 200
set route-map-in "A-IN"
set route-map-out "A-OUT"
set send-community6 disable
set password ENC {---}
next
edit "ISP router B"
set link-down-failover enable
set prefix-list-out "blockrule"
set remote-as 200
set route-map-in "B-IN"
set route-map-out "B-OUT"
set send-community6 disable
set password ENC {---}
next
end
config network
edit 1
set prefix 100.100.100.0 255.255.255.128
next
edit 2
set prefix 100.100.100.128 255.255.255.128
next
end
end
config router prefix-list
edit "blockrule"
config rule
edit 1
set action deny
set prefix 0.0.0.0 0.0.0.0
unset ge
unset le
next
edit 2
set prefix any
unset ge
unset le
next
end
next
edit "SEGMENT-ONE"
config rule
edit 1
set prefix 100.100.100.0 255.255.255.128
unset ge
unset le
next
end
next
edit "SEGMENT-TWO"
config rule
edit 1
set prefix 100.100.100.128 255.255.255.128
unset ge
unset le
next
end
next
edit "DG"
config rule
edit 1
set prefix 0.0.0.0 0.0.0.0
unset ge
unset le
next
end
next
end
config router route-map
edit "A-OUT"
config rule
edit 1
set match-ip-address "SEGMENT-ONE"
set set-local-preference 200
set set-metric 100
next
edit 2
set match-ip-address "SEGMENT-TWO"
set set-local-preference 100
set set-metric 200
next
end
next
edit "B-OUT"
config rule
edit 1
set match-ip-address "SEGMENT-ONE"
set set-local-preference 100
set set-metric 200
next
edit 2
set match-ip-address "SEGMENT-TWO"
set set-local-preference 200
set set-metric 100
next
end
next
edit "A-IN"
config rule
edit 1
set match-ip-address "DG"
set set-local-preference 100
set set-metric 200
next
edit 2
set match-ip-address "DG"
set set-local-preference 200
set set-metric 100
next
end
next
edit "B-IN"
config rule
edit 1
set match-ip-address "DG"
set set-local-preference 200
set set-metric 100
next
edit 2
set match-ip-address "DG"
set set-local-preference 100
set set-metric 200
next
end
next
end