cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
2426
Views
0
Helpful
3
Replies

One router, 2 BGP cloud providers

jason crockett
Level 1
Level 1

I have one Cisco 2911 router running IOS version 15.2(4)M2. I am running BGP and need to build a BGP neighbor relationship with 2 different cloud providers. Is it possible to use one BGP AS and neighbor with 2 different AS? IF the answer is yes, can someone please provide the configuration that would accomplish this?BGP, Routing Protocols

 

Here is my scenario.

 

interface GigabitEthernet0/0/0.804
encapsulation dot1Q 804
ip address 10.40.249.1 255.255.255.252
!
interface GigabitEthernet0/0/0.805
encapsulation dot1Q 805
ip address 10.40.50.1 255.255.255.252
!

router bgp 65xxx

bgp router-id 10.40.50.1

neighbor 10.40.50.2 remote-as 31xxx (CLOUD PROVIDER A)

neighbor 10.40.249.2 remote-as 7xxx (CLOUD PROVIDER B)

network 10.40.253.0 mask 255.255.255.0 (CLOUD PROVIDER A)

network 10.40.252.0 mask 255.255.255.0 (CLOUD PROVIDER B)

 

3 Replies 3

balaji.bandi
Hall of Fame
Hall of Fame

Depends how you like to do, Load Balance or fail over.

 

here is examples given for reference : to establish and accomplish your task.

 

https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/13762-40.html

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

jason crockett
Level 1
Level 1

I should also mention that this does not require redundancy or load balancing. Network 10.40.253.0 only needs to route to CLOUD PROVIDER A, and never to PROVIDER B. Same with network 10.40.252.0. This only needs to route to CLOUD PROVIDER B, and never to PROVIDER A.

Hello,

 

you could use route maps applied outbound as below:

 

ip prefix-list CLOUD_PROVIDER_A seq 10 permit 10.40.253.0/24
ip prefix-list CLOUD_PROVIDER_B seq 10 permit 10.40.252.0/24
!
router bgp 65xxx
bgp router-id 10.40.50.1
neighbor 10.40.50.2 remote-as 31xxx
neighbor 10.40.50.2 prefix-list CLOUD_PROVIDER_A out
neighbor 10.40.249.2 remote-as 7xx
neighbor 10.40.249.2 prefix-list CLOUD_PROVIDER_B out