cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1260
Views
0
Helpful
11
Replies

BGP and BGP in vrf

Krasnoperov
Level 1
Level 1

Hi, can I configuration like this? and will it work?

My goal is get default route from BGP session with ISP1 in Main Routing Table, and ISP2 default route in  vrf routing table

         ISP1("classic" bgp session)

       /

R1<

       \

         ISP2 ("vrf" bgp session)

router bgp 65200
no synchronization
bgp log-neighbor-changes
 network 10.1.2.0 mask 255.255.255.0
neighbor 10.0.1.1 remote-as 64501
no auto-summary
!
address-family ipv4 vrf C1
no synchronization
bgp router-id auto-assign
network 10.1.1.0 mask 255.255.255.0
neighbor 10.0.2.1 remote-as 64502
exit-address-family
11 Replies 11

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

Yes, you can bring one connection to your global and one to a VRF.  What are you trying to do?

thanks for your answer, well in my case I already have one BGP peer with ISP1 and get from this ISP default(not full view) route in my main routing table, another ISP2 will be on same router with and it will anounce for me default route too. From my side I will anounce for ISPs just part of my BGP address space for each of ISPs(I do this to be sure that my incoming traffic comes to right ISP which I define) I dont want  load balace for my outcoming traffic, and outcoming trafic will go to right ISP

Hi Krasnoperov,

I suppose for your requirement, yo don't need to for for VRFs.

Better solution is to make route-maps and apply to BGP neighbours as per your requirement.

HTH,

Smitesh

You are right, it was first what I do, but I don't know why when I use

PBR on my 3945 router, even for 60mbit/sec incoming traffic my processor load was 60%!!!

And my second descussion was this

https://supportforums.cisco.com/message/3479955#3479955

Hi,

regarding CEF switched in  PBR I'd suggest to read exactly whyt kind of "set" or "match" entries are supportd in CEF. May be you're trying to use something which is not CEF'd

Yes, tried to do that, but unfortunatly there is no good doc on cisco website which describe what "match" "set" statements are cef swiched, and what type of statements should be in ACL when creating route-maps . For e.g. I found doc's where says that for Cat3750 all deny statement in ACL into route-map goes for RP not cef swiched, for Cat6500 thereis no such info, and so on.

Try prefix list instead.

Regards,

Smitesh

I've seen a couple of time that sometime named-acl doesn't work correct, but a normal numbered-acl works.

Thanks for idea, I make my PBR on named ACL only, so will try to change it to nums ACL. Also I'm intresting if I have  statements in my ACL which defines not only source and destination ip addresses but also port numbers and protocols, is PBR stays cef swiched or not?

with ports and protocol is a good question , I'd say - no. CEF can't operate with ports number, but I suggest to ask Cisco support they should know it.

Have you tried prefix-list as I suggested above.

HTH,

Smitesh

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco