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

Discussion in 'Linux Networking' started by Treker, May 13, 2008.

  1. Treker

    Treker Guest

    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?

    Treker, May 13, 2008
    1. Advertisements

  2. you can try this command:

    route -Ceen
    wang.wennywang, May 14, 2008
    1. Advertisements

  3. Treker

    Treker Guest


    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 lookup 1
    XXX YYY 32765: from all to 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
    like what we have in iptables
    Chain POSTROUTING (policy ACCEPT 2367 packets, 273K bytes)
    pkts bytes target prot opt in out source
    0 0 MASQUERADE all -- * tun0
    6 300 MASQUERADE all -- * ppp0

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

    Treker, May 17, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.