06-08-2018 11:12 AM - edited 03-05-2019 10:34 AM
Dear Friends,
I have attached a diagram; I am very sure it is very easy for you all to understand the topology.
But still let me explain what all I have configured and running in attached topology: -
I have few questions regarding attached diagram.
Do let me know more clarity.
Thanks & Regards
Amit
06-08-2018 01:59 PM
Hello,
can you post the full configs of both routers ? OSPF port preference can be achieved by either setting the neighbor cost, or by some other means. For iBGP, use local preference.
Seeing the configs will clarify how to configure the details...
06-09-2018 11:34 AM
06-09-2018 02:00 PM - edited 06-09-2018 02:11 PM
Hello,
thanks for the configs, I'll have a look...I need to lab this, since you have two ISP connections on one router and the third one on a different one...
06-10-2018 10:51 PM
06-11-2018 01:36 AM
Hello Amit.
I tried to recreate your setup in GNS3, and the below is what I have come up with (important parts marked in bold). Your config looks close to mine, I used local preference as well, but on CR-RTR01 only on the link to 1-ISP, and on CR-RTR02 only on the link to 3-ISP, since the default local preference is 100, you don't need to set it on the link to 2-ISP.
With regard to OSPF, it has already been mentioned that you can use cost. I used auto-cost reference-bandwidth and then set the bandwidth on the interfaces to influence the cost. With auto-cost reference-bandwidth set to 1000, a bandwidth of 10000 will result in a cost of 100 (less preferred) and a bandwidth of 100000 will result in a cost of 10 (preferred).
The 'blackhole' is the Fortigate, I don't have one to test it, but the below is what I think you should configure.
CR-RTR01
interface GigabitEthernet0/0/0
description ##Connected to PRI-FW##
bandwidth 100000
ip address 192.168.50.21 255.255.255.248
no ip redirects
no ip proxy-arp
ip ospf 10 area 0
negotiation auto
!
interface GigabitEthernet0/0/1
bandwidth 10000
ip address 192.168.50.33 255.255.255.248
no ip redirects
no ip proxy-arp
ip ospf 10 area 0
negotiation auto
!
router ospf 10
redistribute bgp 64530 metric 10 metric-type 1 subnets
distance ospf external 252
auto-cost reference-bandwidth 1000
!
router bgp 64530
bgp log-neighbor-changes
bgp dampening
network 10.125.107.0 mask 255.255.255.224
network 10.125.107.32 mask 255.255.255.224
network 10.125.124.0 mask 255.255.255.192
network 10.125.124.128 mask 255.255.255.128
network 172.16.200.0 mask 255.255.255.0
network 172.16.205.0 mask 255.255.255.0
network 172.16.207.7 mask 255.255.255.255
network 192.168.50.0
redistribute ospf 10
neighbor 100.100.159.2 remote-as 9583
neighbor 100.100.159.2 description ##eBGP-3##
neighbor 100.100.165.2 remote-as 18101
neighbor 100.100.165.2 description ##eBGP-1##
neighbor 100.100.165.2 route-map ISP-1-MPLS in
neighbor 192.168.50.30 remote-as 64530
neighbor 192.168.50.30 description ##IBGP-PEER##
neighbor 192.168.50.30 next-hop-self
!
route-map ISP-1-MPLS permit 10
set local-preference 200
CR-RTR02
interface GigabitEthernet0/0/0
description ##Connected to PRI-FW##
bandwidth 100000
ip address 192.168.50.22 255.255.255.248
no ip redirects
no ip proxy-arp
ip ospf 10 area 0
negotiation auto
!
interface GigabitEthernet0/0/1
bandwidth 10000
ip address 192.168.50.34 255.255.255.248
no ip redirects
no ip proxy-arp
ip ospf 10 area 0
negotiation auto
!
router ospf 10
redistribute bgp 64530 metric 10 metric-type 1 subnets
distance ospf external 252
auto-cost reference-bandwidth 1000
!
router bgp 64530
bgp log-neighbor-changes
bgp dampening
network 10.125.107.0 mask 255.255.255.224
network 10.125.107.48 mask 255.255.255.240
network 10.125.124.0 mask 255.255.255.192
network 10.125.124.128 mask 255.255.255.128
network 172.16.200.0 mask 255.255.255.0
network 172.16.205.0 mask 255.255.255.0
network 172.16.207.7 mask 255.255.255.255
network 192.168.50.0
redistribute ospf 10
neighbor 100.100.167.2 remote-as 9730
neighbor 100.100.167.2 description ##eBGP-ISP-2##
neighbor 100.100.167.2 route-map ISP-2-MPLS in
neighbor 192.168.50.25 remote-as 64530
neighbor 192.168.50.25 description ##IBGP-PEER##
neighbor 192.168.50.25 next-hop-self
!
route-map ISP-2-MPLS permit 10
set local-preference 150
auto-cost reference-bandwidth 1000
Fortigate
config router ospf
set auto-cost-ref-bandwidth 1000
config ospf-interface
set interface "Port1"
set ip x.y.z.t
set cost 10
!
config ospf-interface
set interface "Port2"
set ip x.y.z.t
set cost 100
08-27-2018 02:23 AM
Hi Georg Pauwen,
First i do regret for replying you late , second thanks very much for wonderful suggestions, i will surely applying your suggestions.
Thanks Very Much
Amit
06-10-2018 03:43 AM - edited 06-11-2018 02:45 AM
Hello
Kindly guide how can solve OSPF ecmp i.e. how can control that first “port1” of FW is used for inbound & outbound traffic, then “port2” in case of “port1” failure. —— two possible ways. 1) have the connection between the rtrs and the fw2 in a different ospf area then area O 2) apply higher ospf interface cost on the links between fw2 and the rtrs.
Res
paul
06-12-2018 01:13 AM
Hi Paul , After going through suggestions few question which came to me are listed below:-
Kindly guide how can solve OSPF ecmp i.e. how can control that first “port1” of FW is used for inbound & outbound traffic, then “port2” in case of “port1” failure. —— two possible ways.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide