Re: [Vyatta-users] Fwd: A question on exporting connected routes intoOSPF

2008-01-08 Thread Donghai Ma
Pavlin

On Jan 8, 2008 3:22 PM, Justin Fletcher <[EMAIL PROTECTED]> wrote:

> And, of course, routes you add outside of the CLI aren't known to XORP.
> If you add the route using "protocol static" you can then redistribute via
> OSPF.
>


Thanks for the info.  As I came from the Quagga world I was hoping that XORP
works the same way as Quagga, which picks up the connected routes after one
adds addresses to an interface.

I just noticed an old post (
http://mailman.icsi.berkeley.edu/pipermail/xorp-users/2006-April/001188.html)
on the xorp-users list, where Pavlin provided a 'semi-hackish' patch to use
the fib2mrib module to snoop the unicast routes from the kernel and
redistribute them to OSPF.

I tried the patch and it worked fine to redistribute the routes I added from
a Linux shell.  This is pretty close to what I originally had wanted.

Thanks,

-Donghai



>
> Justin
>
> On Jan 8, 2008 11:57 AM, Jonathon Exley < [EMAIL PROTECTED]>
> wrote:
>
> > I have also had problems exporting connected routes into OSPF.
> >
> > Try adding static routes into the export policy:
> >
> > [EMAIL PROTECTED]  > show configuration policy
> > policy-statement ExportCon
> >term 10 {
> >from {
> >protocol: "connected"
> >}
> >then {
> >action: "accept"
> >}
> >}
> >term 20 {
> >from {
> >protocol: "static"
> >}
> >then {
> >action: "accept"
> >}
> >}
> >
> > This seemed to allow the connected interfaces into the OSPF database,
> > although they were tagged with ASExt-2:
> >
> > [EMAIL PROTECTED]> show ospf4 database
> >   OSPF link state database, Area 0.0.0.0
> >  Type   ID   Adv Rtr   Seq  Age  Opt  Cksum
> > Len
> > ASExt-2 * 192.168.2.0  192.168.101.10x8001   790  0x2
> >  0x4354
> > 36
> >
> >
> >
> > Jonathon
> >
> >
> >
> > ___
> > Vyatta-users mailing list
> > Vyatta-users@mailman.vyatta.com
> > http://mailman.vyatta.com/mailman/listinfo/vyatta-users
> >
>
>
___
Vyatta-users mailing list
Vyatta-users@mailman.vyatta.com
http://mailman.vyatta.com/mailman/listinfo/vyatta-users


Re: [Vyatta-users] Fwd: A question on exporting connected routes intoOSPF

2008-01-08 Thread Justin Fletcher
And, of course, routes you add outside of the CLI aren't known to XORP.  If
you add the route using "protocol static" you can then redistribute via
OSPF.

Justin

On Jan 8, 2008 11:57 AM, Jonathon Exley <[EMAIL PROTECTED]> wrote:

> I have also had problems exporting connected routes into OSPF.
>
> Try adding static routes into the export policy:
>
> [EMAIL PROTECTED]  > show configuration policy
> policy-statement ExportCon
>term 10 {
>from {
>protocol: "connected"
>}
>then {
>action: "accept"
>}
>}
>term 20 {
>from {
>protocol: "static"
>}
>then {
>action: "accept"
>}
>}
>
> This seemed to allow the connected interfaces into the OSPF database,
> although they were tagged with ASExt-2:
>
> [EMAIL PROTECTED]> show ospf4 database
>   OSPF link state database, Area 0.0.0.0
>  Type   ID   Adv Rtr   Seq  Age  Opt  Cksum
> Len
> ASExt-2 *192.168.2.0  192.168.101.10x8001   790  0x2  0x4354
> 36
>
>
>
> Jonathon
>
>
>
> ___
> Vyatta-users mailing list
> Vyatta-users@mailman.vyatta.com
> http://mailman.vyatta.com/mailman/listinfo/vyatta-users
>
___
Vyatta-users mailing list
Vyatta-users@mailman.vyatta.com
http://mailman.vyatta.com/mailman/listinfo/vyatta-users


Re: [Vyatta-users] Fwd: A question on exporting connected routes intoOSPF

2008-01-08 Thread Jonathon Exley
I have also had problems exporting connected routes into OSPF.

Try adding static routes into the export policy:
 
[EMAIL PROTECTED]  > show configuration policy
policy-statement ExportCon
term 10 {
from {
protocol: "connected"
}
then {
action: "accept"
}
}
term 20 {
from {
protocol: "static"
}
then {
action: "accept"
}
}
 
This seemed to allow the connected interfaces into the OSPF database,
although they were tagged with ASExt-2:

[EMAIL PROTECTED]> show ospf4 database
   OSPF link state database, Area 0.0.0.0
 Type   ID   Adv Rtr   Seq  Age  Opt  Cksum
Len
ASExt-2 *192.168.2.0  192.168.101.10x8001   790  0x2  0x4354
36



Jonathon 
 


___
Vyatta-users mailing list
Vyatta-users@mailman.vyatta.com
http://mailman.vyatta.com/mailman/listinfo/vyatta-users