Community discussions

MikroTik App
 
volga629
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Tue Nov 19, 2013 6:21 am

Routing filters

Fri Mar 15, 2024 5:42 pm

Routing filters with BGP in version 7.14.1 CHR not working . I tried different protocols and route entries are still imported into route tables.
Here are example of BGP


[admin@BL-RT-1] /routing/bgp> connection/print detail
Flags: D - dynamic, X - disabled, I - inactive
 0   name="bgp-peer-4"
     remote.address=172.30.100.4 .as=65635
     local.address=172.30.100.5 .role=ibgp
     connect=yes listen=yes routing-table=C-L2-DCI vrf=C-L2-DCI router-id=172.30.100.5 templates=BL2PE as=65635
     address-families=ip use-bfd=yes
     output.redistribute=connected .no-client-to-client-reflection=yes
     input.filter=ISIS-32
[admin@BL-RT-1] /routing/bgp> /routing/filter/
chain                  community-large-list     num-list     select-rule     test-as-path-regexp
community-ext-list     community-list           rule         export
[admin@BL-RT-1] /routing/bgp> /routing/filter/rule/print
Flags: X - disabled, I - inactive
 0   ;;; We not accepting subnets for underlay
     chain=ISIS-32 rule="if ( dst-len==32 ) {accept; } else {reject; }"
[admin@BL-RT-1] /routing/bgp>
[admin@BL-RT-1] /routing/bgp> /ip/route/print
Flags: D - DYNAMIC; I - INACTIVE, A - ACTIVE; c - CONNECT, b - BGP, d - DHCP
Columns: DST-ADDRESS, GATEWAY, DISTANCE
    DST-ADDRESS      GATEWAY                DISTANCE
DAd 0.0.0.0/0        10.41.100.1                   1
DAc 10.41.100.0/24   MGMT-V313-eth4                0
DAc 172.25.100.5/32  loop0@C-L2-DCI                0
DAb 172.25.100.6/32  172.30.100.4@C-L2-DCI       200
DIb 172.30.100.0/28  172.30.100.4@C-L2-DCI       200
DAc 172.30.100.0/28  D-L2-br0@C-L2-DCI             0
[admin@BL-RT-1] /routing/bgp>
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7056
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Routing filters

Fri Mar 15, 2024 5:54 pm

 
volga629
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Tue Nov 19, 2013 6:21 am

[RESOLVED] Re: Routing filters

Wed Mar 20, 2024 7:23 pm

Resolved

Output filter in BGP template
if ( dst-len==32 ) {accept; } else {reject; }

Who is online

Users browsing this forum: GoogleOther [Bot] and 6 guests