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

Pavlin Radoslavov pavlin at icir.org
Fri Nov 3 15:35:25 PST 2006


> 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.

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

VIF0="dc0"

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

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

Regards,
Pavlin



More information about the Xorp-users mailing list