ā11-04-2021 09:02 AM
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)
ā11-04-2021 09:09 AM
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
ā11-04-2021 09:16 AM
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.
ā11-04-2021 10:03 AM
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
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