Hi All, I've configured the following 'export' filter in my OSPF protocol: protocol ospf { import all; export filter { ospf_metric1 = 1000; if ( net = [ 192.168.0.0/16+ ] ) then reject; if ( source = RTS_STATIC ) then accept; else reject; }; Yet on my router, I'm still seeing the route coming in via OSPF: O 192.168.38.0/24 [110/1001] via xxx.xxx.xxx.xxx, 00:00:05, GigabitEthernet0/1 O 192.168.39.0/24 [110/1001] via xxx.xxx.xxx.xxx, 00:00:05, GigabitEthernet0/1 Is there something I'm missing? How can I get these network's excluded? Cheers. Steve.
I think you want to use ~ instead of =: protocol ospf { import all; export filter { ospf_metric1 = 1000; if ( net ~ [ 192.168.0.0/16+ ] ) then reject; if ( source = RTS_STATIC ) then accept; else reject; }; On Fri, Feb 28, 2014 at 12:21 AM, Steve (Telsat Broadband) < steve@telsatbb.vu> wrote:
Hi All,
I've configured the following 'export' filter in my OSPF protocol:
protocol ospf {
import all;
export filter {
ospf_metric1 = 1000;
if ( net = [ 192.168.0.0/16+ ] ) then reject;
if ( source = RTS_STATIC ) then accept; else reject;
};
Yet on my router, I'm still seeing the route coming in via OSPF:
O 192.168.38.0/24
[110/1001] via xxx.xxx.xxx.xxx, 00:00:05, GigabitEthernet0/1
O 192.168.39.0/24
[110/1001] via xxx.xxx.xxx.xxx, 00:00:05, GigabitEthernet0/1
Is there something I'm missing? How can I get these network's excluded?
Cheers.
Steve.
Perfect! Thank you. Cheers. Steve. From: John Jensen [mailto:jensenja@gmail.com] Sent: Friday, 28 February 2014 4:32 PM To: Steve (Telsat Broadband) Cc: bird-users@network.cz Subject: Re: Filter being ignored. I think you want to use ~ instead of =: protocol ospf { import all; export filter { ospf_metric1 = 1000; if ( net ~ [ 192.168.0.0/16+ <http://192.168.0.0/16+> ] ) then reject; if ( source = RTS_STATIC ) then accept; else reject; }; On Fri, Feb 28, 2014 at 12:21 AM, Steve (Telsat Broadband) <steve@telsatbb.vu <mailto:steve@telsatbb.vu> > wrote: Hi All, I've configured the following 'export' filter in my OSPF protocol: protocol ospf { import all; export filter { ospf_metric1 = 1000; if ( net = [ 192.168.0.0/16+ <http://192.168.0.0/16+> ] ) then reject; if ( source = RTS_STATIC ) then accept; else reject; }; Yet on my router, I'm still seeing the route coming in via OSPF: O 192.168.38.0/24 <http://192.168.38.0/24> [110/1001] via xxx.xxx.xxx.xxx, 00:00:05, GigabitEthernet0/1 O 192.168.39.0/24 <http://192.168.39.0/24> [110/1001] via xxx.xxx.xxx.xxx, 00:00:05, GigabitEthernet0/1 Is there something I'm missing? How can I get these network's excluded? Cheers. Steve.
Hi John, Initially, I thought this was working, but apparently not, the routes are still making it into the Cisco routing table: protocol ospf { import all; export filter { ospf_metric1 = 1000; if ( net ~ [ 192.168.0.0/16+ ] ) then reject; if ( source = RTS_STATIC ) then accept; else reject; }; O 192.168.38.0/24 [110/1001] via xxx.xxx.xxx.xxx, 00:00:15, GigabitEthernet0/1 O 192.168.39.0/24 [110/1001] via xxx.xxx.xxx.xxx, 00:00:15, GigabitEthernet0/1 Cheers. Steve. From: John Jensen [mailto:jensenja@gmail.com] Sent: Friday, 28 February 2014 4:32 PM To: Steve (Telsat Broadband) Cc: bird-users@network.cz Subject: Re: Filter being ignored. I think you want to use ~ instead of =: protocol ospf { import all; export filter { ospf_metric1 = 1000; if ( net ~ [ 192.168.0.0/16+ <http://192.168.0.0/16+> ] ) then reject; if ( source = RTS_STATIC ) then accept; else reject; }; On Fri, Feb 28, 2014 at 12:21 AM, Steve (Telsat Broadband) <steve@telsatbb.vu <mailto:steve@telsatbb.vu> > wrote: Hi All, I've configured the following 'export' filter in my OSPF protocol: protocol ospf { import all; export filter { ospf_metric1 = 1000; if ( net = [ 192.168.0.0/16+ <http://192.168.0.0/16+> ] ) then reject; if ( source = RTS_STATIC ) then accept; else reject; }; Yet on my router, I'm still seeing the route coming in via OSPF: O 192.168.38.0/24 <http://192.168.38.0/24> [110/1001] via xxx.xxx.xxx.xxx, 00:00:05, GigabitEthernet0/1 O 192.168.39.0/24 <http://192.168.39.0/24> [110/1001] via xxx.xxx.xxx.xxx, 00:00:05, GigabitEthernet0/1 Is there something I'm missing? How can I get these network's excluded? Cheers. Steve.
participants (2)
-
John Jensen -
Steve (Telsat Broadband)