Networking Forums

Networking Forums > Computer Networking > Linux Networking > Does anyone know how to debug Routing Policy Database (RPDB)?

Reply
Thread Tools Display Modes

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

 
 
Treker
Guest
Posts: n/a

 
      05-13-2008, 08:44 AM
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
 
 
 
 
wang.wennywang@gmail.com
Guest
Posts: n/a

 
      05-14-2008, 08:59 PM
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
 
Treker
Guest
Posts: n/a

 
      05-17-2008, 08:05 AM
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
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
policy-based routing and NAT with iptables Florian Pressler Windows Networking 0 02-19-2005 01:45 AM
policy-based routing and NAT with iptables Florian Pressler Linux Networking 0 02-19-2005 01:45 AM
Output DHCP database to SQL database? =?Utf-8?B?Q2hyaXN0aWFuV2lja2hhbQ==?= Windows Networking 1 01-26-2005 01:32 PM
policy routing Alex Harsch Linux Networking 0 11-22-2004 05:25 PM
policy routing and NAT jens Linux Networking 0 08-28-2003 04:23 PM



1 2 3 4 5 6 7 8 9 10 11