[Xorp-users] Routes redistribution between OSPF and BGP
Yue Li
yueli.m at gmail.com
Thu Mar 27 21:39:34 PDT 2008
Hi, Atanu
I have a topology like below. I run OSPF on all routers and BGP on R2,
R5, which forms a eBGP peering.
The problem is when I redistribute OSPF into BGP, I can only see the
routes to "net13" and "net34" on R5.
I wonder whether I should export "connected" to BGP, so I may see
"net12" and "net24" on R5.
net12
(R1)---------(R2)------------(R5)----------(R6)
net13 | | | |
| AS1 | net24 | AS2 |
(R3)---------(R4) (R7)-----------(R8)
net34
The config of R2 is:
interfaces {
interface tun0 {
disable: false
vif tun0 {
disable: false
address 10.0.0.1 {
prefix-length: 30
disable: false
}
}
}
interface tun1 {
disable: false
vif tun1 {
disable: false
address 10.0.0.17 {
prefix-length: 30
disable: false
}
}
}
interface tun2 {
disable: false
vif tun2 {
disable: false
address 10.0.0.65 {
prefix-length: 30
disable: false
}
}
}
}
policy {
policy-statement connected {
term export {
from {
protocol: "connected"
}
}
}
policy-statement ospf-to-bgp {
term ospf2bgp {
from {
protocol: "ospf4"
}
}
}
}
protocols {
ospf4 {
router-id: 10.0.0.1
export: "connected"
area 0.0.0.0 {
interface tun0 {
link-type: "p2p"
vif tun0 {
address 10.0.0.1 {
hello-interval: 10
interface-cost: 100
neighbor 10.0.0.2 {
router-id: 10.0.0.2
}
}
}
}
interface tun1 {
link-type: "p2p"
vif tun1 {
address 10.0.0.17 {
hello-interval: 10
interface-cost: 100
neighbor 10.0.0.18 {
router-id: 10.0.0.14
}
}
}
}
}
}
bgp {
bgp-id: 10.0.0.1
export: "ospf-to-bgp"
local-as: 65010
peer 10.0.0.66 {
local-ip: 10.0.0.65
as: 65011
next-hop: 10.0.0.65
ipv4-multicast: false
ipv6-unicast: false
ipv6-multicast: false
}
}
}
On Mon, Mar 24, 2008 at 12:20 PM, Atanu Ghosh <atanu at icsi.berkeley.edu> wrote:
> Hi,
>
> All the networks that you wish to advertise to an external AS need to be
> redistributed into BGP. You therefore need to redistribute OSPF into
> BGP.
>
> Atanu.
>
> >>>>> "Yue" == Yue Li <yueli.m at gmail.com> writes:
>
> Yue> Hi, All I have several XORP routers which form 2 Autonomous
> Yue> Systems. OSPFv2 is used for intra-AS protocol and BGP is
> Yue> running on the AS border routers.
>
> Yue> I found no BGP routes when monitoring BGP behaviors, while
> Yue> their peering relations are correct. And routers in different
> Yue> AS can't ping each other.
>
> Yue> So I guess I need to add routes redistribution to the
> Yue> configuration of the AS border routers, right? Do I need to
> Yue> add ospf-to-bgp policy, or bgp-to-ospf policy, or both of them?
>
> Yue> Any help would be greatly appreciated.
>
> Yue> _______________________________________________ Xorp-users
> Yue> mailing list Xorp-users at xorp.org
> Yue> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users
>
More information about the Xorp-users
mailing list