[j-nsp] bgp to ospf
Richard Zheng
rzheng at gmail.com
Mon Jun 13 18:44:24 EDT 2011
On Mon, Jun 13, 2011 at 7:50 AM, Payam Chychi <pchychi at 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;
}
}
More information about the juniper-nsp
mailing list