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

BGP AS number per VRF

carl_townshend
Spotlight
Spotlight

Hi All

I have a router connected to 2 ISP's and I need to run BGP to each of them, but with separate source AS per connection on my side.

Would this mean I would need to set up 2 separate BGP processes on my router?

cheers

 

 

 

3 Replies 3

Julio E. Moisa
VIP Alumni
VIP Alumni

Hi

You cannot have 2 or more BGP AS on a router. BGP allows to have multiple peerings through IPv4 unicast or through Address-family with VRF. For example

 

router bgp 100

no sync

no auto

neighbor 1.1.1.1 remote 1

neighbor 2.2.2.2 remote 2




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

OK, What if I want to keep the traffic to each site separate?

Would I just use the same AS source number, but then when I create the address families using VRF's will this allow me to keep the traffic separate on the router?

I wont use route target export/import etc

 

cheers

Hi

If you are going to use VRF you can separate the routing tables and if it is not going to be used for an MPLS you can remove the route-targets, for example you can have:

 

ip vrf A

rd 1:1

ip vrf B

rd 2:2

 

interface g0/0

ip vrf forward A

ip add 1.1.1.2 255.255.255.252

 

interface g0/1

ip vrf forward B

ip add 2.2.2.1 255.255.255.252

 

router bgp 100

no syn

no auto

address-family ipv4 vrf A

neighbor 1.1.1.1 remote 1

neighbor 1.1.1.1 activate

address-family ipv4 vrf B

neighbor 2.2.2.2 remote 2

neighbor 2.2.2.2 activate

 

The traffic will be isolated from each other, but you need to specify what prefixes will be into each VRF.

 

:-)

 

 




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<