Community discussions

MikroTik App
 
vischi
just joined
Topic Author
Posts: 3
Joined: Fri Oct 07, 2022 5:31 pm

bgp as-override and remove private as seems to be not working

Fri Oct 07, 2022 5:55 pm

Hi all,...
I have build up the follwing lab:

CE1 (AS65533)-----ebgp--->PE1(AS100)----->P1---->PE2(AS100)----ebgp---->CE2(AS200)
~~~~~~~~~~~~~~~~~~~~~~~~ ^--------------ibgp------------^ ~~~~~~~~~~~~~~~~~~~~~~

At CE1 I inject a route 172.16.1.0/24 and export ist to PE1.... --> Works fine in first step..
PE1 gives the route to PE2 via ibgp --> works fine as well
PE2 gives the route to CE2 ---- Well done!!! Route is seen, Controlplane works well.

Now:
I have tried the remove private as feature as well as the as-override feature configured at PE1 at the ebgp session towards CE1.
But nothing happend. The route attributes are always the same logged at PE2.
See:
Without any route-manipulation on PE2:
[lab@PE2] > routing/route/print detail where dst-address=172.16.1.0/24
Flags: X - disabled, F - filtered, U - unreachable, A - active;
c - connect, s - static, r - rip, b - bgp, o - ospf, d - dhcp, v - vpn, m - modem, a - ldp-address, l - ldp-mapping, y - copy;
H - hw-offloaded; + - ecmp, B - blackhole
Ab afi=ip4 contribution=active dst-address=172.16.1.0/24
routing-table=main gateway=192.168.1.1
immediate-gw=192.168.100.1%ether1 distance=200 scope=40
target-scope=30 belongs-to="bgp-IP-10.0.0.2"
bgp.peer-cache-id=*B000002 .as-path="65533" .local-pref=100
.atomic-aggregate=yes .origin=igp
debug.fwp-ptr=0x202822A0
[lab@PE2] >

With as-override configured towards CE-1:
[lab@PE2] > routing/route/print detail where dst-address=172.16.1.0/24
Flags: X - disabled, F - filtered, U - unreachable, A - active;
c - connect, s - static, r - rip, b - bgp, o - ospf, d - dhcp, v - vpn, m - modem, a - ldp-address, l - ldp-mapping, y - copy;
H - hw-offloaded; + - ecmp, B - blackhole
Ab afi=ip4 contribution=active dst-address=172.16.1.0/24
routing-table=main gateway=192.168.1.1
immediate-gw=192.168.100.1%ether1 distance=200 scope=40
target-scope=30 belongs-to="bgp-IP-10.0.0.2"
bgp.peer-cache-id=*B000002 .as-path="65533" .local-pref=100
.atomic-aggregate=yes .origin=igp
debug.fwp-ptr=0x202822A0
[lab@PE2] >

With remove "private as" from PE1 towards ebgp to CE1
[lab@PE2] > routing/route/print detail where dst-address=172.16.1.0/24
Flags: X - disabled, F - filtered, U - unreachable, A - active;
c - connect, s - static, r - rip, b - bgp, o - ospf, d - dhcp, v - vpn, m - modem, a - ldp-address, l - ldp-mapping, y - copy;
H - hw-offloaded; + - ecmp, B - blackhole
Ab afi=ip4 contribution=active dst-address=172.16.1.0/24
routing-table=main gateway=192.168.1.1
immediate-gw=192.168.100.1%ether1 distance=200 scope=40
target-scope=30 belongs-to="bgp-IP-10.0.0.2"
bgp.peer-cache-id=*B000002 .as-path="65533" .local-pref=100
.atomic-aggregate=yes .origin=igp
debug.fwp-ptr=0x202822A0
[lab@PE2] >

As you can see---> always the same .as-path="65533" is showen at the output.
Did I something wrong or is this a bug ?

I have tried this configuration with RouterOS 7.5 and RouterOS7.6rc1 (Because of the BGP-advertised feature).. always the same.

Thank you for your time community...

Andreas
Last edited by vischi on Sat Oct 08, 2022 1:13 am, edited 3 times in total.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7042
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: bgp as-override and remove private as seems to be not working

Fri Oct 07, 2022 6:01 pm

Currently as-override and some other AS Hacks are not fully implemented.
 
vischi
just joined
Topic Author
Posts: 3
Joined: Fri Oct 07, 2022 5:31 pm

Re: bgp as-override and remove private as seems to be not working

Fri Oct 07, 2022 6:05 pm

Thank you for fast answering my question.
Was my idea of configuration correct? Yes?

Is "remove-private-as" or "next-hop-self" not implemented as well?

Does anybody think it is possible to publish a list of feature that doesn' t work at the moment?
Is is really frustrating to check this by try and error.

If I switch back to any RouterOS version 6.anything, will it work then ?

;-) A.
 
deathandtaxes
just joined
Posts: 9
Joined: Fri Jun 23, 2017 5:20 pm

Re: bgp as-override and remove private as seems to be not working

Sat Nov 12, 2022 5:29 pm

So remove-private-as=yes isn't working in 7.7b6. Hopefully this is one of the 'hacks' that will get fixed soon, no?
 
easyswiss2
just joined
Posts: 1
Joined: Tue Dec 20, 2022 11:37 pm

Re: bgp as-override and remove private as seems to be not working

Tue Dec 20, 2022 11:53 pm

We tried to replace a lot of ccr1072 (6.49) with ccr2216 (7.6). The missing AS Override makes the new ccr2216 routers useless for BGP. This is a must have feature in all larger setups. No idea why this simple thing is missing on the flagship router.
 
StepBee
just joined
Posts: 10
Joined: Wed Oct 19, 2022 8:44 pm

Re: bgp as-override and remove private as seems to be not working

Tue Jan 24, 2023 9:35 pm

Hi MT Community,

just stumbled across the same issue today, as my Transit Provider is filtering all received routes with private ASNs in the path.

remote-private-as would have been the solution, but it doesn't seem to work.
as-override as a workaround could have been possible (not great, but anyways) , but it doesn't seem to work as well.
as-path is not writeable in routing/filter/rules, so manually changing via filter is not possible as well.

The only solution i could find so far is manually adding static routes for these subnets (luckily not a lot so far in my case).

Did anyone find a better / nicer solution so far?

I checked 7.7 stable and 7.8 testing changelog, but it doesn't look like a quick fix will be available quite soon.

Thanks,
Stephan

Who is online

Users browsing this forum: Bing [Bot] and 13 guests