Community discussions

MikroTik App
 
OrCAD
Member Candidate
Member Candidate
Topic Author
Posts: 133
Joined: Wed Apr 20, 2005 12:37 pm

ROS7 BGP newbye

Sun Oct 31, 2021 6:38 pm

Hello,
I try bgp session without success.
plese let me konw how to setup: i want to connect AS12345 to IP: 11.22.33.44, my AS 11111 and one /22 to announce, in example 10.0.0.0/22

I've setup a template then connection in ebpg-peer:

/routing bgp template
add as=11111 name=NR output.filter-chain=myAsFilter
set default as=11111 disabled=no output.filter-chain=myAsFilter \
routing-table=main templates=NR

/routing bgp connection
add as=11111 disabled=yes input.filter=bgp_in listen=yes local.address=\
11.22.33.45 .role=ebgp name=isp02 output.filter-chain=myAsFilter \
remote.address=11.22.33.44 .as=12345 routing-table=main templates=NR

/routing filter rule
add chain=bgp_in disabled=no rule="if (dst in 10.0.0.0/22) {accept}"

850k bgp routes downloaded ok but all route with flag: DIFb ( Dynamic Invalid Filtered BGP)

someone can help me?
(CCR1072)

thanks in advance.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7041
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: ROS7 BGP newbye

Sun Oct 31, 2021 8:30 pm

in bgp_in chain you have specified to accept only 10.0.0.0/22 any other received prefix will be rejected and show up as Filtered.
 
OrCAD
Member Candidate
Member Candidate
Topic Author
Posts: 133
Joined: Wed Apr 20, 2005 12:37 pm

Re: ROS7 BGP newbye

Mon Nov 01, 2021 4:41 pm

Hi @mrz
in bgp_in I set 0.0.0.0/0 ?
Filter mechanism in ros7 is very strange.
I don’t see any complete example

Thank you
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7041
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: ROS7 BGP newbye

Mon Nov 01, 2021 4:47 pm

Default action in any chain is "reject". If you want to accept everything just add rule /routing filter rule add chain=bgp_in rule="accept"

Who is online

Users browsing this forum: No registered users and 16 guests