[Xorp-users] Routes redistribution between OSPF and BGP

Yue Li yueli.m at gmail.com
Tue Apr 1 14:55:43 PDT 2008


Hi, Atanu
I have this working now.

And then I want to redistributing routes from BGP (learned from eBGP
peers) to OSPF, I use this configurations on an AS border router:

policy {
  network4-list myroutes {
    network 10.0.0.0/30
    network 10.0.0.16/30
  }
  policy-statement ospf_out {
    term 100 {
        from {
             protocol: "connected"
        }
    }
 }
  policy-statement bgp_out {
    term 200 {
        from {
             protocol: "ospf4"
        }
        to {
             neighbor: 10.0.0.6  /* not advertising OSPF routes to iBGP peers */
        }
        then {
             reject
        }
    }
    term 300 {
        from {
             protocol: "connected"
             network4-list: "myroutes"
        }
        to {
             neighbor: 10.0.0.6
        }
        then {
             reject
        }
    }
 }
  policy-statement bgp2ospf {
    term 400 {
        from {
             protocol: "bgp"
             neighbor: 10.0.0.66   /* eBGP peer */
        }
        then {
             accept
        }
    }
  }
}

But this doesn't work. Could you point out how to config correctly?
Thanks!


On Mon, Mar 31, 2008 at 10:15 PM, Atanu Ghosh <atanu at icsi.berkeley.edu> wrote:
> Hi,
>
>  When redistributing routes from OSPF to BGP only the routes that OSPF
>  has learned from its neighbours will be redistributed. The connected
>  routes will not be redistributed, so you are correct you also need to
>  redistribute connected.
>
>
>        Atanu.
>



More information about the Xorp-users mailing list