[Xorp-users] How to run XORP+Click(Linuxmodel) on the same PC
董雯霞
dongwx134398 at huawei.com
Wed Jun 17 01:36:56 PDT 2009
Hi All:
I want to run XORP + Click(Linuxmodel) on the same PC(Fedora 6.0 2.6.19.2kernel), and write the XORP configuration as follows. Do I need write click
configuration ? How to write Click configration? If you have done this work ,could you share your configuration file and experience with me. Please help me.Thanks a lot.
///////////////////////////////////////
My XORP config file as follows:
//////////////////////////////////////
/* interface configure */
interfaces {
interface eth1 {
vif eth1 {
address 20.1.1.2 {
prefix-length: 24
}
}
}
interface eth2 {
vif eth2 {
address 30.1.1.2 {
prefix-length: 24
}
}
}
} /* end interface configure*/
/* forwarding engine abstraction*/
fea{
unicast-forwarding4{
disable:true
}
click {
disable: false
/* duplicate-routes-to-kernel: false*/
kernel-click {
disable: false
install-on-startup: true
kernel-click-modules: "/home/dwx/click/click-1.7.0rc1/linuxmodule/proclikefs.o:/home/dwx/click/click-1.7.0rc1/linuxmodule/click.o"
/* XXX: On FreeBSD we need only module click.ko */
/*kernel-click-modules: "/home/dwx/click/click-1.7.0rc1/linuxmodule/click.ko" */
mount-directory: "/click"
kernel-click-config-generator-file: "/home/dwx/xorp-1.6/fea/xorp_fea_click_config_generator"
}
user-click {
disable: true
command-file: "/usr/local/bin/click"
command-extra-arguments: "-R"
command-execute-on-startup: true
control-address: 20.1.1.2
control-socket-port: 50006
startup-config-file: "/dev/null"
user-click-config-generator-file: "/home/dwx/xorp-1.6/fea/xorp_fea_click_config_generator"
}/*end of user-click*/
}/*end of Click*/
}/*end of fea*/
/*static route configure */
protocols {
static {
route 20.1.1.0/24 {
next-hop: 20.1.1.2
}
route 30.1.1.0/24 {
next-hop: 30.1.1.2
}
}
}/*end of static route configure*/
///////////////////////////////////////
the error as follows:
//////////////////////////////////////
[2009/06/17 14:25:08 INFO xorp_rtrmgr:6906 RTRMGR +101 module_manager.cc execute] Executing module: fea(fea/xorp_fea)insmod: error inserting '/home/dwx/click/click-1.7.0rc1/linuxmodule/proclikefs.o':-1 Invalid module format
[2009/06/17 14:25:08 INFO xorp_rtrmgr:6906 RTRMGR +691 master_conf_tree.cc commit_pass2_done ] Commit failed: 102 Command faild Executing system commad '/sbin/insmod /home/dwx/click/click-1.7.0rc1/linuxmodule/proclikefs.o' returned value '256'
Best regards.
Wenxia Dong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20090617/0cf5a477/attachment.html
More information about the Xorp-users
mailing list