Community discussions

MikroTik App
 
mblfone
newbie
Topic Author
Posts: 33
Joined: Sun Feb 02, 2014 2:22 am

BGP relationship between connection and template  [SOLVED]

Tue Mar 26, 2024 9:08 pm

Hello,

I am trying very hard to not botch an upgrade from version 6 to version 7 this weekend. In viewing the old V6 vs. new V7 and some of the new syntax, I am confused about the relationship between the BGP connection and the template.

-Since my BGP peering is static, I am not sure if I even need to create and use a template. I would love an answer to this one.

-If I do choose to use template (if possible, depending to the answer above), there are many redundant fields in both connection and template. I am assuming that fields such as AS, hold time, keepalive time, use BFD, routing table, no client to client reflection, output redistributable and input/output filter fields in the connection all override the data in the template if used. Is this a correct understanding?

-If I choose to use template and populate the fields common to all connections and the connections load said template, then I would assume that the template fields are in effect for and populate to their respective connections.

I hope I am being clear on my questions. Thanks for any feedback!

Regards!
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7056
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: BGP relationship between connection and template

Wed Mar 27, 2024 8:19 am

Template is not mandatory, you can find all your answers in the documentation:
https://help.mikrotik.com/docs/display/ ... figuration
 
pe1chl
Forum Guru
Forum Guru
Posts: 10248
Joined: Mon Jun 08, 2015 12:09 pm

Re: BGP relationship between connection and template

Wed Mar 27, 2024 12:27 pm

Yes, Templates can be used to provide default values to a larger number of Connections.
What you set in the Template you do not need to set in the Connection.
(unfortunately, for some values RouterOS does not keep the value in the Connection "blank" but instead copies the value from the Template which then becomes a parameter of the Connection - probably a bug)

When you migrate BGP config from v6 to v7 using the automatic upgrade, some things tend not to go well.
I have encountered several problems doing this, and I would strongly urge you not to do the upgrade remotely when your access to the remote router depends on BGP working correctly.
Some things that were possible in v6 are no longer available in v7, and you will need to work around that.

You could post the bgp part of your config here and I'll have a look to see if there are obvious problems.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7056
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: BGP relationship between connection and template

Wed Mar 27, 2024 3:57 pm

RouterOS does not copy values from template to connection config. Winbox is doing that if you open connection and apply config.
 
mblfone
newbie
Topic Author
Posts: 33
Joined: Sun Feb 02, 2014 2:22 am

Re: BGP relationship between connection and template

Wed Mar 27, 2024 4:07 pm

Thanks for the clarification. I understand!
 
pe1chl
Forum Guru
Forum Guru
Posts: 10248
Joined: Mon Jun 08, 2015 12:09 pm

Re: BGP relationship between connection and template

Wed Mar 27, 2024 7:12 pm

RouterOS does not copy values from template to connection config. Winbox is doing that if you open connection and apply config.
Ok, consider that a bug and put it on your list for fixing... Winbox should not apply parameters that the user does not enter.

(in fact, I have seen other forum posts where people noticed this and complained about it. e.g. it makes the log entry that is now made for config changes much too long)

Who is online

Users browsing this forum: No registered users and 3 guests