Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

How to originate a prefix from own AS when the prefix is received from a neighbour AS.

R1 in AS 65544 is originating 198.18.0.0/24 and that prefix is received to R2 which is running AS 197308(public AS). R2 has a peer in AS 3(upstream ISP) and I would like to forward 198.18.0.0/24 as originated in AS197308 to AS 2.

I have tried using aggregate-address but that command only works with more specifics. Otherwise it will do the trick. Now we have the same mask.

The commad remove-private-as does not work as AS65544 is a four byte AS dedicated for documentation purpuses(RFC5398) and is left untuched. We use this AS number in our corporate internal MPLS network in the same way as private AS number from RFC1930.

Any suggestions how to accomplish the above mentioned?

Everyone's tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to originate a prefix from own AS when the prefix is rec

Hi,

just an idea:

What about to use the BGP Conditional Route Injection feature?

http://www.cisco.com/en/US/docs/ios/12_2s/feature/guide/fsbgpri.html

And to inject 2x /25 under the condition the /24 is received from your AS65544 neighbor?

(You would need the same configured for the second AS65544 neighbor, I guess.)

Best regards,

Milan

9 REPLIES
New Member

Re: How to originate a prefix from own AS when the prefix is rec

You could try setting the route as a static route and redistributing it into bgp. Might not be ideal but could work.

Sent from Cisco Technical Support iPad App

New Member

Re: How to originate a prefix from own AS when the prefix is rec

Currently that is what we are doing. A static route to the next hop at the AS65544 ebgp peer and a matching network statement in bgp in AS197308. But the topology is that there is two EBGP peerings between AS65544 and AS197308 and we want to have this work dynamically.

If the command remove-private-as also had been able to cover AS65544(RFC 5398, in addition to RFC 1930) it should have been a clever solutioin. But it does not, feature or bug?

Hall of Fame Super Blue

How to originate a prefix from own AS when the prefix is receive

Svante

I think it is just that the remove private-as has not been updated to support 32-bit ASNs.

I was thinking of a static route as well although there are complications. It sounds like from your description though that R1 is under your control ?

If it is could you not just get R1 to advertise 2 x /25 instead of a /24 and then use the summary address.

Jon

How to originate a prefix from own AS when the prefix is receive

Hi,

as I understand you are configuring all the routers involved?

In that case you could try

a) change your peering using

neighbor ... local-as ...  no-prepend  replace-as

command.

I'm not sure though how it works with 4-Byte AS numbers, I never tested with them.

b) Worst case you could try to configure another IGP (like OSPF).

And redistribute the prefix to it from your  65544 neighbor - this would remove the AS_PATH completely.

And redistributing it again to BGP on your 197308 router.

Quite complicated, I know.

Bets regards,

Milan

New Member

Re: How to originate a prefix from own AS when the prefix is rec

The problem with creating more specifics to satisfy aggregate-address is that my prefix is directly connected to the AS65544 router. The /24 comes from a server subnet and dividing it into two /25 would include a lot of server reconfiguration, or using secondary IP which will cause problems to reach the default gw. So I don´t see this as a good practical  solution, even if it theoretically is a workaround to satisfy bgp.

Use of replace-as is impacting all prefixes over the ebgp, isn´t it. As I have several other prefixes frpm AS65544, which are more specifics to a null route with shorter mask at R2, and not advertised to the ISP, I would like to not change them.

Hall of Fame Super Blue

How to originate a prefix from own AS when the prefix is receive

Svante

Currently that is what we are doing. A static route to the next hop at the AS65544 ebgp peer and a matching network statement in bgp in AS197308. But the topology is that there is two EBGP peerings between AS65544 and AS197308 and we want to have this work dynamically.

Can you elaborate on this ?

Jon

Re: How to originate a prefix from own AS when the prefix is rec

Hi,

just an idea:

What about to use the BGP Conditional Route Injection feature?

http://www.cisco.com/en/US/docs/ios/12_2s/feature/guide/fsbgpri.html

And to inject 2x /25 under the condition the /24 is received from your AS65544 neighbor?

(You would need the same configured for the second AS65544 neighbor, I guess.)

Best regards,

Milan

New Member

Re: How to originate a prefix from own AS when the prefix is rec

This works! I had read that the feature was for injecting more specifics. But after your suggestion I tried it in my home network and even that I have the same mask on the learned prefix as on the one I want to inject, it works.

Tule7640#sh bgp ipv4 u 198.18.0.0      

BGP routing table entry for 198.18.0.0/24, version 683

Paths: (2 available, best #1, table default)

Multipath: iBGP

  Advertised to update-groups:

     1          6        

  Local, (injected path from 198.18.0.0/24)

    83.219.200.93 from 83.219.200.93 (83.219.200.5)

      Origin IGP, localpref 100, valid, external, best

  767626043

    83.219.200.93 from 83.219.200.93 (83.219.200.5)

      Origin IGP, metric 0, localpref 100, valid, external

      Community: no-export

Checking in the next AS I see 198.18.0.0/24 as originated in AS7640(Tule7640).

That is a little contradictory that the same mask is OK here but not in the aggregate-address command.

Thanks for your valuable help,

Re: How to originate a prefix from own AS when the prefix is rec

Hi,

my feeling also was this feature was invented to inject more specific prefixes.

But reading the feature description

http://www.cisco.com/en/US/docs/ios/12_2s/feature/guide/fsbgpri.html

carefully, it says:

"Only prefixes that are equal to or more specific than the original prefix may be injected."

The funny thing is it even permits to inject less specific prefixes!

I tested in my lab with a /23 injected using a /24 in the exist-map.

So you can create an aggregated address without the atomic-aggregate attribute this way...

Quite a powerful command!

Best regards,

Milan

454
Views
0
Helpful
9
Replies
CreatePlease login to create content