cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
336
Views
5
Helpful
4
Replies

BGP Multi-homing on Cisco IOS XR , underlying LF and AS-PATH

Ibrahim Jamil
Level 6
Level 6

Hi Cisco Folks

Do you have config example from BGP Multi-homing on Cisco IOS XR , underlying  LF and AS-PATH

Thanks

 

4 Replies 4

Philip D'Ath
VIP Alumni
VIP Alumni

What does LF mean?

What do you want to do with the AS-PATH?

Do you want to load balance, or do failover?

What is the IP address of your two neighbours, and what are their AS numbers, and what is your AS number?

Hi Philip

sorry mate . my mistake i must say LP not LF , its local preference 

1. ASR-1 should announce 91.X.X.X/24 to ISP1 While ISP-2 will be the backup for 91.X.X.X/24

2. ASR-2 should announce 92.X.X.X/24 to ISP2 While ISP-1 will be the backup for 92.X.X.X/24

3. i am getting default route from both ISPs

attached topology 

thanks 

That is asking a lot!  How about I give you the majority of the solution and you tweak it from there.

Router 1:

router bgp <your asn>
  neighbor 172.16.1.x remote-as <ISP1 ASN>
  neighbor 172.16.1.x description ISP1
neighbour <internal neighbor ip> remote-as <your own ASN>

  address-family ipv4
network 91.x.x.x mask 255.255.255.0
network 92.x.x.x mask 255.255.255.0
network 172.16.1.x mask 255.255.255.252
neighbor 172.16.1.x activate
neighbor
172.16.1.x soft-reconfiguration inbound
neighbor 172.16.1.x prefix-list company-out
neighbor 172.16.1.x route-map isp1-in in
neighbor 172.16.1.x route-map isp1-out out
neighbour <internal neighbor ip> activate
neighbour <internal neighbor ip> soft-reconfiguration inbound

ip prefix-list company-out seq 5 permit 91.x.x.x/24
ip prefix-list company-out seq 10 permit 92.x.x.x/24

route-map isp1-in permit 10
set local-preference 110 <-- set (or don't set) whatever preference you want
set community local-AS


ip prefix isp1-backup-routes permit x.x.x.x/24

route-map isp1-out permit 10
match ip address prefix-list isp1-backup-routes
set as-path prepend <your ASN> <your ASN> <your ASN>
route-map isp1-out permit 20

Hi bro philip 

i am okay with these IOS syntax , but bro , the above wont work with IOS XR

mate no route-map on XR but RPL

thanks a  lot bro

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:

Review Cisco Networking products for a $25 gift card