[Xorp-users] Using bgp/harness/inject.sh to inject routes from mrtd in to BGP routing table??

Atanu Ghosh atanu at ICSI.Berkeley.EDU
Tue Nov 7 12:14:16 PST 2006


Hi,

You might find it easier to use bgp/harness/harness.py to inject routes
from mrtd files.

    Atanu.

>>>>> "Pavlin" == Pavlin Radoslavov <pavlin at icir.org> writes:

    >> I came across the inject.sh in the BGP harness and found that it
    >> could be used to inject routes from an mrtd file into the BGP
    >> process. But when i tried executing the script file, the script
    >> terminated with some error from the call_xrl response handler.
    >> 
    >> Error: Configuring fea create_interface 11222865
    >> dc0enable_interface 11222865 dc0create_vif 11222865 dc0
    >> dc0enable_vif 11222865 dc0 dc0create_address4 11222865 dc0 dc0
    >> 10.1.0.1enable_address4 11222865 dc0 dc0 10.1.0.1set_prefix4
    >> 11222865 dc0 dc0 10.1.0.1 25commit_transaction[ 2006/11/03
    >> 13:25:50 ERROR call_xrl:22889 XRL +59 call_xrl.cc
    >> response_handler ] Failed.  Reason: 102 Command failed Interface
    >> error on dc0: interface not recognized
    >> ("finder://fea/ifmgr/0.1/commit_transaction?tid:u32=11222865")
    >> 
    >> 
    >> I am probably not doing something right here. It would be of
    >> great help, if someone could help me with using the inject.sh
    >> script correctly. I just need to be able to read routes from an
    >> mrtd file and dump it to the BGP process on the same host.

    Pavlin> My guess is that your machine doesn't have network interface
    Pavlin> named dc0 (that the script tries to configure). If this is
    Pavlin> the case, then you need to edit the beginning of the script
    Pavlin> and change the interface name to something different:

    Pavlin> VIF0="dc0"

    Pavlin> You might need to change ADDR0 as well to match your IP
    Pavlin> address. Also, note that the fea() configuration that uses
    Pavlin> ADDR0 contains a hard-coded prefix length of 25, so you
    Pavlin> might need to edit as well. I just committed a fix so the
    Pavlin> hard-coded value is replaced with ADDR_PREFIX0 variable.

    Pavlin> In any case, the script might reconfigure the VIF0
    Pavlin> interface, so make sure it is not the interface you are
    Pavlin> using to connect to that machine.

    Pavlin> Regards, Pavlin

    Pavlin> _______________________________________________ Xorp-users
    Pavlin> mailing list Xorp-users at xorp.org
    Pavlin> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users



More information about the Xorp-users mailing list