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.