Community discussions

MikroTik App
 
Rudiger420
just joined
Topic Author
Posts: 23
Joined: Sat Feb 13, 2021 2:23 pm

RouterOS v7.1.1 iBGP not working

Wed Feb 02, 2022 5:29 pm

Hi,

I upgraded one of my PROD CCR2004's (arm64) last night to RouterOS v7.1.1 and I can't get a simple iBGP peering established with my CCR1036 RouterOS v6 Router. This PROD CCR2004 is along my redundant path so no traffic should be passing through it. It is very possible that it is user error by me, but I can't get it working for some reason. I have played around with the iBGP config as much as I can think of and nothing brought it online. Keep in mind that this iBGP peering was established on RouterOS v6. I am able to ping the loopbacks fine from both of the Routers. I was hoping I could get a sanity check on the below config:

CCR2004 RouterOS v7.1.1 (RTR-02):
/interface bridge
add name=Lo1

/ip address
add address=172.16.204.2 interface=Lo1 network=172.16.204.2

/routing bgp connection
add address-families=ip as=123412 disabled=no hold-time=30s input.filter=RTR-02-to-RTR-01-in keepalive-time=10s local.role=ibgp name=RTR-01-peer nexthop-choice=force-self output.default-originate=if-installed .filter-chain=\
    RTR-02-to-RTR-01-out remote.address=172.16.204.1/32 .as=123412 router-id=172.16.204.2 routing-table=main
    
/routing filter rule
add chain=RTR-02-to-RTR-01-in disabled=no rule="accept;"
add chain=RTR-02-to-RTR-01-out disabled=no rule="if (dst in 123.123.123.0/23 && dst-len in 23-32) { reject; }"
add chain=RTR-02-to-RTR-01-out disabled=no rule="set bgp-local-pref 400; accept;"

CCR1036 RouterOS v6.47.9 (RTR-01):
/interface bridge
add name=Lo1

/ip address
add address=172.16.204.1 interface=Lo1 network=172.16.204.1

/routing bgp peer
add hold-time=30s in-filter=RTR-01-to-RTR-02-in instance=bgp1 keepalive-time=10s name=RTR-02-peer nexthop-choice=force-self out-filter=RTR-01-to-RTR-02-out remote-address=172.16.204.2 remote-as=123412 ttl=default update-source=\
    Lo1

/routing filter
add action=accept chain=RTR-01-to-RTR-02-in
add action=accept chain=RTR-01-to-RTR-02-out

Any help will be appreciated, thanks.
 
Rudiger420
just joined
Topic Author
Posts: 23
Joined: Sat Feb 13, 2021 2:23 pm

Re: RouterOS v7.1.1 iBGP not working  [SOLVED]

Sat Feb 05, 2022 6:54 pm

This was indeed user error.

All I needed was local.address=172.16.204.2 in the BGP config to get it working. By default without it set it will try use the highest IP address, which was a Public IP address in my case. The RouterOS v6 to RouterOS v7 converted config certainly needs a bit of tweaking after an upgrade.

Who is online

Users browsing this forum: No registered users and 14 guests