Hey Richard,

Were you able to figure this out?

cheers
Payam

Joseph Soricelli wrote:
What do you get from "show route f.j.h.i"?

-joe

Joseph Soricelli
JNCIE #14/ CCIE #4803
703-980-3999
j...@proteus.net <mailto:j...@proteus.net>
Twitter - @proteusnetworks



On Jun 13, 2011, at 6:44 PM, Richard Zheng wrote:



On Mon, Jun 13, 2011 at 7:50 AM, Payam Chychi <pchy...@gmail.com <mailto:pchy...@gmail.com>> wrote:

    Hey Richard,

    The then next-hop x.x.x.x should work as long as the next-hop is
    valid 'in the routing table'.

    mind showing your config?

    Thanks
    Payam


Customer router C sends route x.y.z.0/24 to router A. it connects with Router B with a /30 which is our IP block and part of OSPF. Router A and B talk OSPF. The issues seems to be redistribution from EBGP to OSPF can't set the forward address for external routes.

On router A:

    protocols {
      bgp {
        group cust-C {
        type external;
        multihop {
            ttl 3;
        }
        local-address a.b.c.d;
        import cust-C-in;
        export send-default-only;
        peer-as xxxxx;
        neighbor f.j.h.i {
            remove-private;
        }
      ospf {
        export bgp-to-ospf;
      }
    }

    policy-options {
        policy-statement bgp-to-ospf {
            term hds {
                from {
                    protocol bgp;
                    route-filter x.y.z.0/24 exact;
                }
                then accept;
            }
            term reject-others {
                then reject;
            }
        }
        policy-statement cust-C-in {
        term set-attr {
            from {
                protocol bgp;
                route-filter x.y.z.0/24 exact;
            }
            then {
                local-preference 200;
                community add all;
                accept;
            }
        }
        term reject-others {
            then reject;
        }
    }





_______________________________________________
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp

Reply via email to