[Xorp-users] OLSR route redistribution in XORPv1.5

Sproat, Jackalynn Jackalynn.Sproat at gdcanada.com
Fri Sep 19 07:22:36 PDT 2008


Hello,

I just wanted to clarify what you meant by:

"... experiment with the syntax for the various 
tags in etc/templates/olsr4.tp... to filter various 
announcements if going in the opposite direction (OLSR to OSPF or other 
protocol)."

Why can't I just define an export policy similar to "ospf-to-olsr", but
in the opposite direction? For example:

%%%
protocols {
 ospf4 {
  ...
  export: "olsr-to-ospf"
  ...
 }
}

policy {
 ...
 policy-statement olsr-to-ospf {
   term a {
     from {
       protocol: "olsr"
     }
     then {
       accept
     }
   }
 }
 ...
}
%%%
Cheers,
Jackie

-----Original Message-----
From: Bruce M Simpson [mailto:bms at incunabulum.net] 
Sent: Monday, September 08, 2008 11:29 AM
To: Sproat, Jackalynn
Cc: xorp-users at xorp.org
Subject: Re: [Xorp-users] OLSR route redistribution in XORPv1.5

Sproat, Jackalynn wrote:
>
> Hello,
>
> I am new to XORP and am interested in redistributing routes between 
> XORP OLSR and XORP OSPF.
>
> At www.mail-archive.com/xorp-hackers at icir.org/msg00413.html
> <file://www.mail-archive.com/xorp-hackers@icir.org/msg00413.html> it 
> was mentioned that CenGen had success with exporting inot OSPF in 
> their testbed.  I was just wondering how I can get more information 
> w.r.t to doing the same.  For example, is this a simple as including 
> the statement export ospf on the OSLR router? Where in the .boot file 
> should this statement be inserted?
>

The OLSR implementation is a standard XORP routing process, which 
supports route redistribution using the standard mechanisms, and uses a 
similar syntax as the other processes (BGP, RIP etc).

You need to define an export policy and include it like this:

%%%
protocols {
 olsr4 {
  ...
  export: "ospf-to-olsr"
  ...
 }
}

policy {
 ...
 policy-statement ospf-to-olsr {
   term a {
     from {
       protocol: "ospf"
     }
     then {
       accept
     }
   }
 }
 ...
}
%%%

Currently the OLSR redist support doesn't allow you to specify a metric,

as this isn't part of the OLSRv1 spec. ETX link metrics aren't supported

however this support could be added at a later date if there is further 
interest.

Also, the policy tags/varmap which xorp_olsr uses are not currently 
documented. You can try experimenting with the syntax for the various 
tags in etc/templates/olsr4.tp. These can be used to filter various 
announcements if going in the opposite direction (OLSR to OSPF or other 
protocol).

For docs, see docs/olsr. You'll need LaTeX installed to build PDFs of 
the OLSR documentation.

thanks
BMS

The information contained in this e-mail message is PRIVATE. It may contain confidential information and may be legally privileged. It is intended for the exclusive use of the addressee(s). If you are not the intended recipient, you are hereby notified that any dissemination, distribution or reproduction of this communication is strictly prohibited. If the intended recipient(s) cannot be reached or if a transmission problem has occurred, please notify the sender immediately by return e-mail and destroy all copies of this message. 
Thank you. 




More information about the Xorp-users mailing list