11-15-2015 08:58 PM - edited 03-05-2019 02:45 AM
Hi,
I need to configure BGP multihoming with two ISP using only one Router(L3 Switch with BGP). We have our own AS Number and a /24 IP Pool. We need to configure it as normal failover, we don't want to load balance between the two ISP links. We need ISP A to be the primary link through which all (IN & OUT) the traffics would pass through normally, and the ISP B link would be used only if ISP A link fails.
ISP A should start handling the traffic again, as soon as the ISP A link becomes active.
Here is a Diagram of the Scenario :
Please help
11-16-2015 03:49 AM
Hello
Please review this below example:
The filter list 10 is to prevent your site becoming a transit path between either ISP
I have utilised the bgp weight attribute for preferred egress traffic and As-prepending for preferred ingress traffic
ip as-path access-list 10 permit ^$
route-map AS-Prpend permit 10
set as-path prepend 999 999 99
router bgp 999
neighbor x.x.x.x remote-as <ISP1>
neighbor x.x.x.x weight 40000
neighbor xx.x.x filter-list 10 out
neighbor y.y.y.y remote-as <ISP21>
neighbor y.y.y.y weight 30000
neighbor y.y.y.y filter-list 10 out
neighbor y.y.y.y route-map AS-Prpend out
res
Paul
11-16-2015 04:29 AM
11-16-2015 04:43 AM
Hello
Forgot to mention please ammend that example to fit your ASN numbering and peering addressing
res
Paul
11-16-2015 11:18 PM
Hi paul,
Is the configuration sufficient or do i need to perform any other additional configuration?
Do i need to configure "ip prefix-list"
Regards
11-16-2015 11:56 PM
Hello
i have not see your existing configuration so cannot really comment- the example I gave would give you the prefer path and backup path to either ISP but as far as any specific requirements that you already have I cannot say
The prefix command related to the bgp regular expression so to advertise only local routes to either ISP and to prohibit you site from becoming a transit path for either iISP.
res
paul
11-17-2015 12:53 AM
11-17-2015 01:17 AM
Hello
What i can establish is your excepting a deault route from a ISP and advertising one specific network
What i dont see is dual isp peering like what your topology diagram is showing So i guess this 2nd ISP is a forthcoming implementation?
res
Paul
11-17-2015 01:23 AM
Hello,
Yes, its forthcoming, only ISPA part is configured till now.
Thanks
11-17-2015 02:36 AM
Hello
Please review the following example -
router bgp 999
neighbor Stan peer-group
neighbor Stan password xxx
neighbor x.x.x.x peer-group
neighbor y.y.y.y peer-group
neighbor x.x.x.x remote-as <ISP1>
neighbor x.x.x.x description ISP1
neighbor y.y.y.y remote-as <ISP2>
neighbor y.y.y.y description ISP2
maximum-paths 2
address-family ipv4
neighbor Stan route-map ISP-IN in
neighbor Stan filter-list 10 out
neighbor x.x.x.x activate
neighbor x.x.x.x weight 40000
neighbor y.y.y.y activate
neighbor y.y.y.y weight 30000
neighbor y.y.y.y route-map AS-Prpend out
maximum-paths 2
no auto-summary
no synchronization
network 1.1.1.0 mask 255.255.255.0
exit-address-family
ip as-path access-list 10 permit ^$ <----- Advertised ONLY local routes
route-map AS-Prpend <-- Prepend all local routes with local ASN to least prefferd ISP
set as-path prepend 999 999 999
ip prefix-list ISP1-IN permit 0.0.0.0/0
route-map ISP-IN permit 10 <-----------Allow only a received Default from both ISP's
match ip address prefix-list ISP1-IN
res
Paul
11-17-2015 02:36 AM
11-17-2015 02:41 AM
Hello
Please note the changes I have made are regards adding Peer-groups and your exsitng outbound route-map -
res
Paul
11-19-2015 09:40 PM
Hi paul,
Can you please tell what are these lines for?
================================
neighbor Stan peer-group
neighbor Stan password xxx
neighbor Stan route-map ISP-IN in
neighbor Stan filter-list 10 out
================================
I couldn't understand them.
Regards
11-20-2015 12:50 AM
Hello
Yes of course - neighbor xxx peer-group - This is a peer group,its 3 of bgps different kinds of peer templates - ( this the basic one) -Which allows you share the same polices to multiple peers
In the configuration I supplied both your ISP peering will SHARE 3 polices -
password ( optional) - simple peering security between peers
filter-list 10 <---------- to negate transit traffci from ISP's
route-map ISP-IN in <-------------- this is your exsitng route-map uou had to allow default route from the ISP
FYI - The other 2 peering group templates you can uiltlze are
Peer Session
Peer Policy
But I didnt wont to convolute the posting with such configuration---
I hope this help - any other queires please dont hestitate is ask.
res
Paul
11-23-2015 06:22 AM
Hi,paul
While configuring the line:
neighbor y.y.y.y route-map AS-Prpend out
I get an error: % Invalid command for a peer-group member
I've attached current configuration for your reference.
Thanks for the help
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