[Xorp-users] XORP 1.6 support Click 1.6.0 ?

Tom Gibson tom.gibson at ipvidnet.com
Thu Jun 4 13:30:16 PDT 2009


I don't think I ever got Xorp 1.6 working with Click in Linux, though I did
get a version out of source control at one point that worked.  I'm trying
now with the latest code and having trouble.  If anyone has advice on this
please let me know.

I've had minimal experience using cvs and have only so far used it to do a
checkout of latest code.  I should still have my code directory on my other
computer with the version of Xorp that worked though.  I'm guessing it
shouldn't be too hard to figure out a cvs command to do a "get" of code
current as of that date.

If I can figure out a small window of time in which the Click support was
fixed, what ways would be best to figure out what fixed it?

On Thu, May 7, 2009 at 8:46 AM, dong yin <yindong1982 at gmail.com> wrote:

> Hi all,
>
> Dose XORP 1.6 support Click v1.6.0? When I run XORP 1.6 to control the
> remote Click forwarding data plane (click 1.6.0), errors happened.
>
> /////////////////////////////////////////////////////
> [ 2009/05/07 10:35:50  INFO xorp_rtrmgr:4428 RTRMGR +101 module_manager.cc
> execute ] Executing module: firewall (fea/xorp_fea)
> [ 2009/05/07 10:35:54  INFO xorp_rtrmgr:4428 RTRMGR +101 module_manager.cc
> execute ] Executing module: fea (fea/xorp_fea)
> [ 2009/05/07 10:35:59  ERROR xorp_fea:4429 FEA +710 ifconfig_set_click.cc
> click_config_generator_done ] Failed to write the Click configuration:
> User-level Click command error: 520-Write handler 'hotconfig' error:
> 520-<expr>:1: '_xorp_ip4 :: Strip' input 0 unused
> 520-<expr>:3: '_xorp_arpt :: Tee' input 0 unused
> 520 Router could not be initialized!
>
> /////////////////////////////////////////////////////
>
> My config file is below:
>
> /////////////////////////////////////////////////////
> interfaces {
>     interface eth1 {
>         description: "control interface"
>         disable: false
>         mac: 00:1b:21:2c:a5:06
>         default-system-config
>     }
>     interface eth2 {
>         description: "data interface"
>         disable: false
>         mac: 00:04:76:2f:24:91
>         default-system-config
>       /*  vif eth2 {
>             disable: false
>             address 10.1.1.1 {
>                 prefix-length: 24
>             }
>         }*/
>     }
> }
> fea {
>     unicast-forwarding4 {
>         disable: true
>     }
>     click {
>         disable: false
>         kernel-click {
>             disable: true
>         }
>         user-click {
>             disable: false
>             command-file: "/usr/local/bin/click"
>            /* command-extra-arguments: "-R"*/
>             control-address: 10.0.0.2
>             control-socket-port: 13000
>             /*startup-config-file: "/root/xorptest/router-user.click"
>              *user-click-config-generator-file:
>              *"/usr/local/xorp/fea/xorp_fea_click_config_generator"
>              */
>         }
>     }
> }
> protocols {
>     static {
>         route 4.4.4.0/24 {
>             next-hop: 5.5.5.1
>             metric: 1
>         }
>         route 5.5.5.0/24 {
>             next-hop: 4.4.4.1
>             metric: 1
>         }
>     }
> }
> //////////////////////////////////////////////////////
>
> And my click config file is :
>
> /////////////////////////////////////////////////////
> AddressInfo (
>         net2    192.168.2.0,
>         net3    192.168.3.0
> )
>
> ControlSocket("TCP", 13000);
>
> c2 :: Classifier(12/0806 20/0001, 12/0806 20/0002, 12/0800, -);
>
> FromDevice(eth1) -> [0]c2;
>
> out2 :: Queue(1024) -> ToDevice(eth1);
>
> ar2 :: ARPResponder(eth1:ip eth1:eth) -> out2;
>
> aq2 :: ARPQuerier(eth1:ip, eth1:eth) -> out2;
>
> c2[0] -> ar2;
> c2[1] -> [1]aq2;
> c2[3] -> Discard;
>
>
> _xorp_rt4 :: RangeIPLookup(net2/24 0, net3/24 1, 0.0.0.0/0 2);
>
> c2[2] -> Strip(14) -> CheckIPHeader2 -> [0]_xorp_rt4;
> _xorp_rt4[0] -> [0]aq2;
> _xorp_rt4[1] -> [0]aq2;
> _xorp_rt4[2] -> Discard;
>
>
> ///////////////////////////////////////////////////////////////
>
> Thanks a lot.
>
> Cheers,
> Dong
>
> _______________________________________________
> Xorp-users mailing list
> Xorp-users at xorp.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users<http://mailman.icsi.berkeley.edu/mailman/listinfo/xorp-users>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20090604/53d6dcbe/attachment.html 


More information about the Xorp-users mailing list