Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15203

Forwarding Protocols • BUG or NOT? BGP works strangely

$
0
0
There's a configuration
Code:
/routing bgp templateadd as=4200000252 disabled=no input.filter=bgp-in name=tpl1 output.filter-chain=bgp-out .redistribute=connected routing-table=mainadd as=4200000253 disabled=no input.filter=bgp-in name=tpl2 output.filter-chain=bgp-out .redistribute=connected routing-table=main/routing bgp connectionadd 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=tpl1add 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
Code:
 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.

Statistics: Posted by codework — Thu Jan 25, 2024 11:31 pm



Viewing all articles
Browse latest Browse all 15203

Trending Articles