• November 24, 2017, 07:57:31 AM
Welcome, Guest. Please login or register. Registration is free.
Did you miss your activation email?

Author Topic: Juniper SRX redistributing local address/static  (Read 2427 times)

0 Members and 1 Guest are viewing this topic.

Offline paluxton

  • Rookie
  • **
  • Posts: 1
Juniper SRX redistributing local address/static
« on: October 15, 2014, 06:59:33 PM »
Hello,
I have OSPF set up between a Juniper SRX650 and a Cisco router.  As I add interfaces to OSPF they are properly being learned by the Cisco (note vlan.66 below).  At the present moment I have a need to advertise only the IP address of one of the interfaces (vlan.13).  i.e. I want to advertise the /32, not the whole subnet.  I tried to do this by setting up a policy to export protocol local, and matching that exact address, but that did not work.  I also tried exporting static, but that did not work either.  I tried to export another bogus static and that worked, so I know my policy is correct, but I think there is something about advertising a static that overlaps or is the same as a "local" subnet on the router.
Here is my relevant config:

ospf {
    export OSPF-manage-juniper;
    area 0.0.0.50 {
        interface gr-0/0/0.1 {
            flood-reduction;
        }
        interface vlan.66 {
            passive;

policy-statement OSPF-manage-juniper {
    term mgmt {
        from {
            protocol local;
            route-filter 172.29.13.3/32 exact;
        }
        then {
            external {
                type 1;
            }
            accept;
        }
    }
    then reject;
}

user@SRX# run show route | match 172.29.13
         
172.29.13.0/24     *[Direct/0] 5w2d 04:34:49
172.29.13.3/32     *[Local/0] 5w2d 04:34:49

So I just want to advertise the second route listed here in the routing table, into OSPF.

Here is the other way I've tried - setting a policy for static:

user@SRX# show routing-options
static {
route 172.29.13.3/32 {
        discard;
        no-install;
    }
}

policy-statement OSPF-manage-juniper {
    term mgmt {
        from {
            protocol static;
            route-filter 172.29.13.3/32 exact;
        }
        then {
            external {
                type 1;
            }
            accept;
        }
    }
    then reject;
}

Is this not possible to do?  Is there something that I"m missing?  I'm afraid that if I advertise vlan.13 (the interface associated with this IP address), that I will end up advertising the whole /24, and I don't want to do that. 
Thanks,
Patty