[j-nsp] bgp to ospf
Richard Zheng
rzheng at gmail.com
Mon Jun 13 06:42:07 EDT 2011
Hi,
We have the following setup. RTR A speaks multihop BGP with CPE router C.
Router B is in the middle, and doesn't speak bgp. We redistribute BGP routes
on rtr A into OSPF. There is a filter to only allow specific routes learned
from rtr C. However OSPF external route redistributed at rtr A has a forward
address 0.0.0.0. So rtr B still sends traffic to A, which causes a loop.
How do I let rtr B know to send traffic to rtr C for routes learned from rtr
C?
---------- -------------- -----------
| BGP rtr A | ============ | no-BGP rtr B | ============ | CPE BGP C |
---------- -------------- -----------
The router filter is
term customer-A {
from {
protocol bgp;
route-filter x.y.z.0/24 exact;
}
then accept;
}
term reject-others {
then reject;
}
The ospf external route on rtr B is like this,
Type-5 AS External Link States
Routing Bit Set on this LSA
LS age: 89
Options: (No TOS-capability, DC)
LS Type: AS External Link
Link State ID: x.y.z.0 (External Network Number )
Advertising Router: a.b.c.c (which is rtr-A's loopback)
LS Seq Number: 80000001
Checksum: 0xD32E
Length: 36
Network Mask: /24
Metric Type: 2 (Larger than any link state path)
TOS: 0
Metric: 0
Forward Address: 0.0.0.0
External Route Tag: 0
Thanks,
Richard
More information about the juniper-nsp
mailing list