Does anyone know how to debug Routing Policy Database (RPDB)?

This is a discussion on Does anyone know how to debug Routing Policy Database (RPDB)? within the Linux Networking forums, part of the Linux Forums category; Hi all I was trying to setup some policy routing on my Linux by using "ip rule", i ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-13-2008
Treker
 
Posts: n/a
Default Does anyone know how to debug Routing Policy Database (RPDB)?

Hi all

I was trying to setup some policy routing on my Linux by using "ip
rule", i am wondering if there is a way to debug the Routing Policy
Database (RPDB) ?, For example some counter or logs to show which
rule was matched?

Regards
Treker
Reply With Quote
  #2 (permalink)  
Old 05-14-2008
wang.wennywang@gmail.com
 
Posts: n/a
Default Re: Does anyone know how to debug Routing Policy Database (RPDB)?

On May 13, 3:44 am, Treker <treker.c...@gmail.com> wrote:
> Hi all
>
> I was trying to setup some policy routing on my Linux by using "ip
> rule", i am wondering if there is a way to debug the Routing Policy
> Database (RPDB) ?, For example some counter or logs to show which
> rule was matched?
>
> Regards
> Treker


you can try this command:

route -Ceen
Reply With Quote
  #3 (permalink)  
Old 05-17-2008
Treker
 
Posts: n/a
Default Re: Does anyone know how to debug Routing Policy Database (RPDB)?

HI

Thanks for the help, it's not exactly what i want, but i think it help
a little bit.

For example. if there is a way can make the output of "ip rule" as the
following thing.

XXX YYY 0: from all lookup local
XXX YYY 32764: from all to 5.6.7.8 lookup 1
XXX YYY 32765: from all to 1.2.3.4 lookup 1
XXX YYY 32766: from all lookup main
XXX YYY 32767: from all lookup default

where XXX maybe is the packet count, YYY is the byte counts of that
rule.
like what we have in iptables
================================================== ==========
Chain POSTROUTING (policy ACCEPT 2367 packets, 273K bytes)
pkts bytes target prot opt in out source
destination
0 0 MASQUERADE all -- * tun0 192.168.1.0/24
0.0.0.0/0
6 300 MASQUERADE all -- * ppp0 192.168.1.0/24
0.0.0.0/0
================================================== ==========

then you may easily know which rule come wrong. comments?

Treker



On May 15, 4:59 am, "wang.wennyw...@gmail.com"
<wang.wennyw...@gmail.com> wrote:
> On May 13, 3:44 am, Treker <treker.c...@gmail.com> wrote:
>
> > Hi all

>
> > I was trying to setup some policy routing on my Linux by using "ip
> >rule", i am wondering if there is a way to debug the Routing Policy
> > Database (RPDB) ?, For example some counter or logs to show which
> >rulewas matched?

>
> > Regards
> > Treker

>
> you can try this command:
>
> route -Ceen


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:53 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0