Community discussions

MikroTik App
 
cololine
Member Candidate
Member Candidate
Topic Author
Posts: 106
Joined: Wed May 27, 2009 1:11 am

How to announce client IP address space under our ASN?

Tue Feb 07, 2012 9:43 pm

Hello all -

I have a client who is going to be bringing in some of their own direct IPv4 allocation. I checked with our carrier, assuming we'd need to get them an LOA from the client authorizing them to announce the client's address space and then accept those same prefixes back from our RouterOS router on our existing BGP session with the carrier (we'll be doing this with two carriers in tandem, so it does have to be BGP, not static routes). They answered that we can just announce the client's prefixes under our own ASN. Can someone provide an example of how this would be done? I have not turned up anything that I can recognize by searching the docs or this board.

Thanks!
- Ed
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: How to announce client IP address space under our ASN?

Wed Feb 08, 2012 6:15 pm

just add their networks under BGP Networks =)
 
cololine
Member Candidate
Member Candidate
Topic Author
Posts: 106
Joined: Wed May 27, 2009 1:11 am

Re: How to announce client IP address space under our ASN?

Wed Feb 08, 2012 6:24 pm

Yep, it turns out it's just that easy. A little disturbing, though, how easy it can be to hijack someone else's address space. Yes, the upstream won't allow your advertisements through without an LOA, but still....

Ed
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: How to announce client IP address space under our ASN?

Wed Feb 08, 2012 6:35 pm

sometimes uplink is blocking invalid advertisements, but sometimes you're able to hijack youtube's traffic, like Pakistan did in February 2008 :) welcome to the world of BGP - it's NOT secure so much...
 
cololine
Member Candidate
Member Candidate
Topic Author
Posts: 106
Joined: Wed May 27, 2009 1:11 am

Re: How to announce client IP address space under our ASN?

Wed Feb 08, 2012 8:32 pm

Ok, so I've got this set up... and it's not working. I've added the client's subnets to my networks and filters and I've had the upstream add them to their filters so they can accept them back. They appear to be advertising back to my carrier's side of the session:

/routing bgp advertisements print
PEER PREFIX NEXTHOP AS-PATH ORIGIN
AB-1234 XXX.XXX.XXX.0/22 XXX.XXX.XXX.XXX 174,3561,40430 incomplete
AB-1234 XXX.XXX.0.0/19 XXX.XXX.XXX.XXX 174,3561,40430 incomplete
AB-1234 XXX.XXX.XXX.0/22 3XXX.XXX.XXX.XXX 174,3561,40430 incomplete

...but I've noticed that, unlike a /24 from my own direct ARIN allocation which I'm using on this same BGP session, these have other ASN's listed in the AS-PATH, and further, these say 'incomplete' under origin, while my own allocation says 'igp' there. And the carrier is saying that they are NOT seeing these three nets on their side of the session. I've set them up in ROS just like my own /24. Please help.

Thanks,

Ed
 
cololine
Member Candidate
Member Candidate
Topic Author
Posts: 106
Joined: Wed May 27, 2009 1:11 am

Re: How to announce client IP address space under our ASN?

Wed Feb 08, 2012 8:58 pm

Update to this: my carrier did a 'soft clear' of the BGP session from their side, and when it came back up, they saw the advertisements for the clients nets. But as soon as their router finished sending me the full route table, the advertisements went away on their side. All along they've shown as being sent on my side - any ideas?
 
blake
Member
Member
Posts: 426
Joined: Mon May 31, 2010 10:46 pm
Location: Arizona

Re: How to announce client IP address space under our ASN?

Wed Feb 08, 2012 9:33 pm

Are you advertising the prefix with 'synchronize=no' under /routing bgp network?
 
cololine
Member Candidate
Member Candidate
Topic Author
Posts: 106
Joined: Wed May 27, 2009 1:11 am

Re: How to announce client IP address space under our ASN?

Wed Feb 08, 2012 9:39 pm

That's correct, I am not using synchronize. The client is advertising these subnets with another provider right now, my provider appears to have the routes for those. But shouldn't my advertisement take precedence on their network?
 
cupis
Frequent Visitor
Frequent Visitor
Posts: 74
Joined: Sun Apr 10, 2011 1:25 am

Re: How to announce client IP address space under our ASN?

Wed Feb 08, 2012 10:16 pm

Do you have the /24 route in your own local routing table? i.e. an active route sending the traffic somewhere locally? If not then you will not announce the route as being local and you will just see the route from the internet (which you might try to advertise back out).

Regards,
 
cololine
Member Candidate
Member Candidate
Topic Author
Posts: 106
Joined: Wed May 27, 2009 1:11 am

Re: How to announce client IP address space under our ASN?

Wed Feb 08, 2012 11:47 pm

The /24 is not the net in question. I was checking the route using my upstream's looking glass and it confirmed what I was seeing in the RoS Adv list. In any case, this is on hold now as I just found out the client jumped the gun, we've back it all out. Hopefully things will go smoothly the second time around, otherwise I'll be back. Thanks to all who chimed in.

Ed
 
cololine
Member Candidate
Member Candidate
Topic Author
Posts: 106
Joined: Wed May 27, 2009 1:11 am

Re: How to announce client IP address space under our ASN?

Tue Feb 28, 2012 6:12 pm

RESOLUTION: Hurricane Electric (the carrier with which we were having this issue) requires a 'valid nexthop' or they will drop the nets being announced back to them, so the solution was to chose 'force self' for the nexthop choice in the BGP session. Hope this will help someone else in the future.

Who is online

Users browsing this forum: kakiharaNL and 150 guests