[Xorp-users] help, about OSPF configuration

Jeff Mitchell jmitchell at ll.mit.edu
Tue Sep 7 10:55:36 PDT 2010


On 05/27/2010 01:14 PM, Ben Greear wrote:
> On 05/27/2010 08:01 AM, wubaochuan wrote:
>> hello everyone,
>> When I configure OSPF, I have the following problems.
>>
>> All the following four machine run Fedora 12, and the first one and the
>> fourth one run as hosts, the second and
>> the third run as routers.
>
> I think you just need to add a policy to export connected routes
> to OSPF.  I'll post an example later today if you don't find something
> sooner.

I didn't see a reply to this and currently have the same trouble. I'd 
like to distribute my local (kernel) routes through OSPF. I managed to 
create an export policy that will distribute them one-hop ("blah" below) 
but I can't seem to get them distributed more than one hop away ("blah2" 
below was an attempt at that).

In the following configs, this router is in the middle between two other 
routers; it correctly sees the locally-connected routes from both of the 
two end-routers, but the two end-routers do not see the routes to each 
others' locally connected routes.

It's possible that I need a non-default import policy? But I'm really 
not sure.

Any help appreciated!

Thanks,
Jeff

     ospf4 {
         router-id: 128.1.1.4
         rfc1583-compatibility: false
         ip-router-alert: false
         area 0.0.0.0 {
             area-type: "normal"
             interface rtrs3 {
                 link-type: "broadcast"
                 vif rtrs3 {
                     address 128.3.3.4 {
                         priority: 128
                         hello-interval: 10
                         router-dead-interval: 40
                         interface-cost: 1
                         retransmit-interval: 5
                         transit-delay: 1
                         disable: false
                     }
                 }
             }
             interface rtrs1 {
                 link-type: "broadcast"
                 vif rtrs1 {
                     address 128.1.1.4 {
                         priority: 128
                         hello-interval: 10
                         router-dead-interval: 40
                         interface-cost: 1
                         retransmit-interval: 5
                         transit-delay: 1
                         disable: false
                     }
                 }
             }
             interface rtrs2 {
                 link-type: "broadcast"
                 vif rtrs2 {
                     address 128.2.2.4 {
                         priority: 128
                         hello-interval: 10
                         router-dead-interval: 40
                         interface-cost: 1
                         retransmit-interval: 5
                         transit-delay: 1
                         disable: false
                     }
                 }
             }
         }
         export: "blah"
     }

policy {
     policy-statement blah {
         term blah {
             from {
                 protocol: "connected"
             }
             to {
                 network4: 128.0.0.0/8
             }
             then {
                 accept {
                 }
             }
         }
         term blah2 {
             from {
                 protocol: "ospf4"
             }
             to {
                 network4: 128.0.0.0/8
             }
             then {
                 accept {
                 }
             }
         }
     }
}



More information about the Xorp-users mailing list