[Xorp-users] XORP 1.6 support Click 1.6.0 ?

dong yin yindong1982 at gmail.com
Thu May 7 08:46:26 PDT 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20090507/ad23306f/attachment-0001.html 


More information about the Xorp-users mailing list