Community discussions

MikroTik App
 
codework
just joined
Topic Author
Posts: 7
Joined: Sat May 27, 2017 9:33 pm

BUG or NOT? BGP works strangely

Thu Jan 25, 2024 11:31 pm

There's a configuration
/routing bgp template
add as=4200000252 disabled=no input.filter=bgp-in name=tpl1 output.filter-chain=bgp-out .redistribute=connected routing-table=main
add as=4200000253 disabled=no input.filter=bgp-in name=tpl2 output.filter-chain=bgp-out .redistribute=connected routing-table=main

/routing bgp connection
add as=4200000252 connect=yes input.filter=bgp-in local.role=ibgp name=bgp1 output.filter-chain=bgp-out .redistribute=connected remote.address=10.255.252.1/32 routing-table=main templates=tpl1
add as=4200000253 input.filter=bgp-in listen=yes local.role=ibgp name=bgp2 output.filter-chain=bgp-out remote.address=0.0.0.0/0 routing-table=main templates=tpl2
Result
 0   name="bgp1-1" 
     remote.address=10.255.252.1 .as=4200000252 .id=10.255.252.1 .capabilities=mp,rr,gr,as4 
     local.role=ibgp .address=10.255.253.1 .as=4200000253 .id=10.255.253.1 .capabilities=mp,rr,gr,as4 
     output.filter-chain=bgp-out 
     input.filter=bgp-in ibgp 
     multihop=yes keepalive-time=1m last-started=2024-01-26 00:22:10 last-stopped=2024-01-26 00:22:10 prefix-count=0
Question:
Why is the session local .as=4200000253 , when the template and connection specifies 4200000252.

If I disable bgp2 the .as changes to the correct .as.

Please correct it.

Who is online

Users browsing this forum: tuiespacecorp and 2 guests