Community discussions

MikroTik App
 
User avatar
surfnet
Member Candidate
Member Candidate
Topic Author
Posts: 277
Joined: Wed Sep 01, 2004 6:38 pm

BGP is broken in 7.8

Wed May 10, 2023 3:39 am

Im put a new CCR2004 in place an older CCR1009. I upgraded the CCR1009 to 7.8, then exported the CMD config and pasted it into the CCR2004
That seemed to work, but I noticed the BGP was not advertising my /32 IP address locally into my network, as it had been doing in 6.x. I then grouped them into a /28 and added that, still wont advertise, then I created a /24 subnet, nope. Basically it will not advertise any new subnets, I rebooted, no success. Then I created a new output filter address list in it for one of the BGP connections, changed the connection to point to the new address list and it wont use it, it is still using the default bgp-networks. What can I do to fix this?
If I disable a BGP connection, it doesnt get removed from the winbox sessions, but if I look in the terminal window /routing/bgp/session/pr I can see that it is not connected. Is it really this bad in 7.x?
 
User avatar
nichky
Forum Guru
Forum Guru
Posts: 1280
Joined: Tue Jun 23, 2015 2:35 pm

Re: BGP is broken in 7.8

Wed May 10, 2023 7:30 am

with your explanation no one can help u.

export your config
 
User avatar
surfnet
Member Candidate
Member Candidate
Topic Author
Posts: 277
Joined: Wed Sep 01, 2004 6:38 pm

Re: BGP is broken in 7.8

Wed May 10, 2023 6:09 pm

Im not sure how my config is going to help these issues,. The BGP sessions not removing for the winbox is not a config setting.
How can I show that changing the Output Network and the Advertised subnets didnt change ?
How can I show in my config that it is not advertising subnets?
but here is my config for 1 BGP connection

add as=65526 cisco-vpls-nlri-len-fmt=auto-bits connect=yes disabled=no hold-time=30s keepalive-time=1m listen=yes local.role=ebgp name=MissionSprings output.default-originate=if-installed \
.network=MS-networks remote.address=10.100.0.214/32 .as=65527 .port=179 .ttl=1 router-id=10.100.0.210 routing-table=main templates=default

here are the subnet that will not advertise
add address=172.20.186.176/28 list=bgp-networks
add address=172.20.186.192/30 list=bgp-networks
add address=172.20.187.0/24 list=bgp-networks

[admin@BonnyDoonHS] /routing/bgp/advertisements> pr where dst=172.20.186.176/28

[admin@BonnyDoonHS] /routing/bgp/advertisements> pr where dst=172.20.186.192/30

[admin@BonnyDoonHS] /routing/bgp/advertisements> pr where dst=172.20.187.0/24

[admin@BonnyDoonHS] /routing/bgp/advertisements>

but as I said, it will not advertise ANY new subnets that I add
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: BGP is broken in 7.8

Wed May 10, 2023 9:32 pm

 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: BGP is broken in 7.8

Wed May 10, 2023 9:37 pm

@surfnet,
one simple fact: RouterOS v7 is not RouterOS v6.

You can't import the configuration from v6 to v7 and expect it to work,
even the rest of the things no longer work as you used to, and many are not finished.

RouterOS v7 still doesn't do everything v6 did.
 
User avatar
surfnet
Member Candidate
Member Candidate
Topic Author
Posts: 277
Joined: Wed Sep 01, 2004 6:38 pm

Re: BGP is broken in 7.8

Wed May 10, 2023 9:46 pm

I did not import from 6.x to 7.x

I upgraded ros 6 to ros 7 on the old router, then I exported the ROS 7 config
got new router, upgraded package to match, then imported the config via the terminal window.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: BGP is broken in 7.8

Wed May 10, 2023 9:47 pm

And on previous CCR1009 upgraded to v7 work? You test it?
 
User avatar
surfnet
Member Candidate
Member Candidate
Topic Author
Posts: 277
Joined: Wed Sep 01, 2004 6:38 pm

Re: BGP is broken in 7.8

Wed May 10, 2023 9:59 pm

The CCR1009 was working in the field, I did not upgrade it to 7.x in the field, we backed it up, installed on new CCR1009, upgraded to 7, then exported config , import in CCR2004, Could not do full BGP test on the bench. I installed it in the field, all appeared to work. the BGP was connected and the routes were being advertised . I later noticed that none of the /32 routes were being advertised. I figured maybe 7.x doesnt advertise /32 routes. So I made them into a /28, removed the /32. Still it wont advertise the /28. I then created a /24 route and it wont advertise that. It will not advertise any new subnets I create. I have rebooted, and last night I upgraded from 7.8 to 7.9, no change it will not advertise any new subnets I create.,\
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: BGP is broken in 7.8

Wed May 10, 2023 10:07 pm

Do not start topic with wrong assumption/title because you are unable to configure the device.

[offtopic]
The backup is for same device, same software, at least must be used the exported .rsc
[/offtopic]

[…] I did not upgrade it to 7.x in the field, we backed it up, installed on new CCR1009, upgraded to 7 […]
So the discussion is closed.
What is written in post #5 continues to be valid,
and your objections are completely useless.

Read the instruction provided from @mrz or post the WORKING BGP configuration of the CCR1009 that use v6, for help on conversion.

The relevant parts, if you do not have complex setup (like OSPF, etc.) are only the export of /routing bgp and /routing filter
 
User avatar
surfnet
Member Candidate
Member Candidate
Topic Author
Posts: 277
Joined: Wed Sep 01, 2004 6:38 pm

Re: BGP is broken in 7.8

Wed May 10, 2023 10:26 pm

you are not understanding me, I did not backup/restore. I used terminal Export.
I exported the relevant settings, the used the terminal to import them
for instance
/routing bgp connection
add cisco-vpls-nlri-len-fmt=auto-bits connect=yes hold-time=2m input.filter=Redwood_in keepalive-time=1m listen=yes local.role=ebgp name=RedwoodEstates output.filter-chain=Redwood_out remote.address=10.100.0.209 .as=65509 .port=179 templates=default

/routing filter rule
add chain=Redwood_in disabled=no rule="if (dst == 0.0.0.0/0) { set bgp-weight 130; }"
add chain=Redwood_out disabled=no rule="if (dst == 10.100.0.208/30) { reject; }"

/routing bgp template
set default as=65526 disabled=no output.network=bgp-networks router-id=10.100.0.210
/ip firewall address-list
add address=162.251.185.20 list=bgp-networks
add address=172.20.186.182 list=bgp-networks
add address=172.20.186.183 list=bgp-networks
add address=172.20.186.187 list=bgp-networks
add address=172.20.186.188 list=bgp-networks
add address=172.20.186.189 list=bgp-networks
add address=172.20.186.190 list=bgp-networks
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: BGP is broken in 7.8

Wed May 10, 2023 11:26 pm

you are not understanding me
and you don't understand me.

so?

read previous post, I do not request v7 export, but the WORKING v6 export of WORKING CCR1009....
 
User avatar
surfnet
Member Candidate
Member Candidate
Topic Author
Posts: 277
Joined: Wed Sep 01, 2004 6:38 pm

Re: BGP is broken in 7.8

Wed May 10, 2023 11:34 pm

I Upgraded the CCR1009 to 7.8 before exporting it, so I have no 6.x export.
I have a backup of the ros6 , are you asking me to downgrade the CCR1009 to 6, restore the backup, export and post it here?
 
User avatar
surfnet
Member Candidate
Member Candidate
Topic Author
Posts: 277
Joined: Wed Sep 01, 2004 6:38 pm

Re: BGP is broken in 7.8

Thu May 11, 2023 1:07 am

just to close this loop with actual feedback and help
I went online facebook MK group and posed the exact same question as I did here. Within 10min I got the answer

---
Maybe this can help
In v7 it is not possible to turn off synchronization with IGP routes (the network will be advertised only if the corresponding IGP route is present in the routing table).
---

I was DST-Natting these IPs so they were not in the routing table. I added 1 IP from the subnet to the router, and then the subnet started advertising.
 
User avatar
chechito
Forum Guru
Forum Guru
Posts: 3005
Joined: Sun Aug 24, 2014 3:14 am
Location: Bogota Colombia
Contact:

Re: BGP is broken in 7.8

Thu May 11, 2023 2:50 am

just to close this loop with actual feedback and help
I went online facebook MK group and posed the exact same question as I did here. Within 10min I got the answer

---
Maybe this can help
In v7 it is not possible to turn off synchronization with IGP routes (the network will be advertised only if the corresponding IGP route is present in the routing table).
---

I was DST-Natting these IPs so they were not in the routing table. I added 1 IP from the subnet to the router, and then the subnet started advertising.

this is interesting

i am who answered your question on Facebook Group

Both questions are very similar but that little changes you made in Facebook post made me much easier to spot your issue

while here i watched the topic and did not catch it

PD: the topic title does not helped
 
User avatar
surfnet
Member Candidate
Member Candidate
Topic Author
Posts: 277
Joined: Wed Sep 01, 2004 6:38 pm

Re: BGP is broken in 7.8

Thu May 11, 2023 3:41 am

well, I was pretty upset when I wrote the topic, this still doesn't answer why the session does not get removed in winbox gui, but in the terminal I can see that it has been removed. Nor does it answer the question of why when I change the output filter to a different Address list it does not change the routes being sent
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7053
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: BGP is broken in 7.8

Thu May 11, 2023 9:47 am

Hit F5 to refresh the winbox table.
 
User avatar
surfnet
Member Candidate
Member Candidate
Topic Author
Posts: 277
Joined: Wed Sep 01, 2004 6:38 pm

Re: BGP is broken in 7.8

Thu May 11, 2023 6:03 pm

In 20 years of using winbox I have never had to hit f5
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: BGP is broken in 7.8

Thu May 11, 2023 6:04 pm

In 20 years of using winbox I have never had to hit f5
20 years ago v7 do not exist.
 
User avatar
surfnet
Member Candidate
Member Candidate
Topic Author
Posts: 277
Joined: Wed Sep 01, 2004 6:38 pm

Re: BGP is broken in 7.8

Thu May 11, 2023 6:06 pm

lol, so the new ros 7 needs us to manually refresh winbox? what an awesome upgrade
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: BGP is broken in 7.8

Thu May 11, 2023 6:14 pm

lol, so the new ros 7 needs us to manually refresh winbox? what an awesome upgrade
There is still no feature parity with v6, and they insist on adding more without fixing what is already there...

Machines now, both Routers and PCs are more powerful than 2007,
why now everything is slower in winbox, there are refresh problems, you can't see the announcements in the BGP,
the BGP filter log is written in hexadecimal and you don't understand a thing...

It just makes it worse. And then for what?....

Who is online

Users browsing this forum: No registered users and 20 guests