[Xorp-users] some easy question about install and run XORP, Thank you

石文鹏 ozilpeng at gmail.com
Sat May 25 00:03:35 PDT 2013


Hi all
  I am new to XORP,I want to use XORP and Click as a router.
  pc1 and pc2 as 2 routers , i want to see the ospf hello and lsa packet.

  it seems like a easy task.But when i compile and install xorp there are
some questions.I really hope you could give me a hand.Thank you

  I read the getting_started in
http://xorp.run.montefiore.ulg.ac.be/latex2wiki/getting_started

*  Question 1:i use ubuntu 11.10 ,is this ok?*

  i get all the dependencies and the last xorp version(1.8.6) on the github.
  after scons scons install . i find it installed in the /usr/local/xorp
  I think it is ready to run .
  then it seems like that i need a config file to run the xorp.so i use
this one (in the getting_started)

/*XORP Configuration File, v1.0*/
protocols {
    fib2mrib {
        disable: true
    }
}
fea {
    unicast-forwarding4 {
        disable: false
        forwarding-entries {
            retain-on-startup: true
            retain-on-shutdown: true
        }
    }
}
interfaces {
    restore-original-config-on-shutdown: true
    interface eth0 {
        description: ""
        disable: false
        discard: false
        unreachable: false
        management: false
        default-system-config {
        }
    }
}
rtrmgr {
    config-directory: "/etc/xorp/"
    load-file-command: "fetch"
    load-file-command-args: "-o"
    load-ftp-command: "fetch"
    load-ftp-command-args: "-o"
    load-http-command: "fetch"
    load-http-command-args: "-o"
    load-tftp-command: "sh -c 'echo Not implemented 1>&2 && exit 1'"
    load-tftp-command-args: ""
    save-file-command: "sh -c 'echo Not implemented 1>&2 && exit 1'"
    save-file-command-args: ""
    save-ftp-command: "sh -c 'echo Not implemented 1>&2 && exit 1'"
    save-ftp-command-args: ""
    save-http-command: "sh -c 'echo Not implemented 1>&2 && exit 1'"
    save-http-command-args: ""
    save-tftp-command: "sh -c 'echo Not implemented 1>&2 && exit 1'"
    save-tftp-command-args: ""
}
 *  Question2:in the getting_started it said rtrmgr will load the
configuration from file installdir/etc/xorp.conf,so i think it should in
/usr/local/xorp/etc/xorp.conf  but after installation i don't have
/usr/local/xorp/etc  what i have is just lib sbin share,is it ok? or i
didn't install successful?*

   I mkdir etc and create xorp.conf.
   after that i go to /usr/local/xorp/sbin and run ./xorp_rtrmgr  and i see
the log like this

XORP 1.8.6-WIP BuildInfo:
git version: d5a677a built: 2013年 05月 12日 星期日 00:40:50 CST
By: root on machine: Linux openflow-virtual-machine 3.0.0-12-generic i686
i686
Recent git changes:
d5a677a5 deb:  We don't use 'make' for building xorp anymore.
0add6074 deb:  make sure pre-inst script has better chance of succeeding.
feeede32 deb-pkg:  Fix comments

[ 2013/05/22 03:12:55.240482  INFO xorp_rtrmgr:1692 RTRMGR
rtrmgr/main_rtrmgr.cc:754 main ]
Host Information:
Linux openflow-virtual-machine 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7
14:50:42 UTC 2011 i686 i686 i386 GNU/LinuxUbuntu 11.10 \n \l

[ 2013/05/22 03:12:55.512166  INFO xorp_rtrmgr:1692 RTRMGR
rtrmgr/master_conf_tree.cc:257 execute ] Changed modules: interfaces,
rtrmgr, firewall, fea, rib, policy, fib2mrib
[ 2013/05/22 03:12:55.513079  WARNING xorp_rtrmgr:1692 RTRMGR
rtrmgr/module_command.cc:327 startup_validation ] WARNING:  Using
DelayValidation, module_name: rtrmgr
[ 2013/05/22 03:12:55.513289  WARNING xorp_rtrmgr:1692 RTRMGR
rtrmgr/module_command.cc:348 config_validation ] WARNING:  Using
DelayValidation, module_name: rtrmgr
[ 2013/05/22 03:12:55.513828  WARNING xorp_rtrmgr:1692 RTRMGR
rtrmgr/module_command.cc:369 ready_validation ] WARNING:  Using
DelayValidation, module_name: rtrmgr
[ 2013/05/22 03:12:55.514104  INFO xorp_rtrmgr:1692 RTRMGR
rtrmgr/module_manager.cc:101 execute ] Executing module: interfaces
(xorp_fea)
[ 2013/05/22 03:12:55.530540  WARNING xorp_rtrmgr:1692 XrlFinderTarget
obj/i686-pc-linux-gnu/xrl/targets/finder_base.cc:1135
handle_finder_0_2_resolve_xrl ] Handling method for finder/0.2/resolve_xrl
failed: XrlCmdError 102 Command failed Target "fea" does not exist or is
not enabled.
[ 2013/05/22 03:12:55.530896  WARNING xorp_rtrmgr:1692 RTRMGR
rtrmgr/task.cc:215 xrl_done ] Failed to receive reply, code: 201 Resolve
failed  retries: 0  max_retries: 30
[ 2013/05/22 03:12:56.531216  WARNING xorp_rtrmgr:1692 XrlFinderTarget
obj/i686-pc-linux-gnu/xrl/targets/finder_base.cc:1135
handle_finder_0_2_resolve_xrl ] Handling method for finder/0.2/resolve_xrl
failed: XrlCmdError 102 Command failed Xrl target is not enabled.
[ 2013/05/22 03:12:56.531778  WARNING xorp_rtrmgr:1692 RTRMGR
rtrmgr/task.cc:215 xrl_done ] Failed to receive reply, code: 201 Resolve
failed  retries: 1  max_retries: 30
[ 2013/05/22 03:12:57.575045  INFO xorp_fea:1697 MFEA fea/mfea_node.cc:318
enable ] MFEA enabled
[ 2013/05/22 03:12:57.575791  INFO xorp_fea:1697 MFEA
fea/mfea_node_cli.cc:126 enable ] CLI enabled
[ 2013/05/22 03:12:57.576522  INFO xorp_fea:1697 MFEA
fea/mfea_node_cli.cc:92 start ] CLI started
[ 2013/05/22 03:12:57.576834  INFO xorp_fea:1697 MFEA fea/mfea_node.cc:318
enable ] MFEA enabled
[ 2013/05/22 03:12:57.577092  INFO xorp_fea:1697 MFEA
fea/mfea_node_cli.cc:126 enable ] CLI enabled
[ 2013/05/22 03:12:57.577446  INFO xorp_fea:1697 MFEA
fea/mfea_node_cli.cc:92 start ] CLI started
[ 2013/05/22 03:12:57.600355  WARNING xorp_fea:1697 FEA
fea/data_plane/ifconfig/ifconfig_get_netlink_socket.cc:149
try_read_config_one ] NOTE:  Netlink get single network device works on
this system.
[ 2013/05/22 03:12:58.2768  INFO xorp_rtrmgr:1692 RTRMGR
rtrmgr/module_manager.cc:101 execute ] Executing module: rtrmgr ()
[ 2013/05/22 03:13:04.10902  INFO xorp_rtrmgr:1692 RTRMGR
rtrmgr/module_manager.cc:101 execute ] Executing module: firewall (xorp_fea)
[ 2013/05/22 03:13:04.12363  INFO xorp_rtrmgr:1692 RTRMGR
rtrmgr/module_manager.cc:101 execute ] Executing module: fea (xorp_fea)
[ 2013/05/22 03:13:04.17576  INFO xorp_rtrmgr:1692 RTRMGR
rtrmgr/module_manager.cc:101 execute ] Executing module: rib (xorp_rib)
[ 2013/05/22 03:13:04.46458  WARNING xorp_rtrmgr:1692 XrlFinderTarget
obj/i686-pc-linux-gnu/xrl/targets/finder_base.cc:1135
handle_finder_0_2_resolve_xrl ] Handling method for finder/0.2/resolve_xrl
failed: XrlCmdError 102 Command failed Target "rib" does not exist or is
not enabled.
[ 2013/05/22 03:13:04.46688  WARNING xorp_rtrmgr:1692 RTRMGR
rtrmgr/task.cc:215 xrl_done ] Failed to receive reply, code: 201 Resolve
failed  retries: 0  max_retries: 30
[ 2013/05/22 03:13:05.54921  INFO xorp_rtrmgr:1692 RTRMGR
rtrmgr/module_manager.cc:101 execute ] Executing module: policy
(xorp_policy)
[ 2013/05/22 03:13:05.97132  WARNING xorp_rtrmgr:1692 XrlFinderTarget
obj/i686-pc-linux-gnu/xrl/targets/finder_base.cc:1135
handle_finder_0_2_resolve_xrl ] Handling method for finder/0.2/resolve_xrl
failed: XrlCmdError 102 Command failed Target "policy" does not exist or is
not enabled.
[ 2013/05/22 03:13:05.97364  WARNING xorp_rtrmgr:1692 RTRMGR
rtrmgr/task.cc:215 xrl_done ] Failed to receive reply, code: 201 Resolve
failed  retries: 0  max_retries: 30
[ 2013/05/22 03:13:06.101838  INFO xorp_rtrmgr:1692 RTRMGR
rtrmgr/module_manager.cc:101 execute ] Executing module: fib2mrib
(xorp_fib2mrib)
[ 2013/05/22 03:13:06.133553  WARNING xorp_rtrmgr:1692 XrlFinderTarget
obj/i686-pc-linux-gnu/xrl/targets/finder_base.cc:1135
handle_finder_0_2_resolve_xrl ] Handling method for finder/0.2/resolve_xrl
failed: XrlCmdError 102 Command failed Target "fib2mrib" does not exist or
is not enabled.
[ 2013/05/22 03:13:06.133818  WARNING xorp_rtrmgr:1692 RTRMGR
rtrmgr/task.cc:215 xrl_done ] Failed to receive reply, code: 201 Resolve
failed  retries: 0  max_retries: 30
[ 2013/05/22 03:13:07.139324  INFO xorp_rtrmgr:1692 RTRMGR
rtrmgr/task.cc:2242 run_task ] No more tasks to run

*   Question3 : why there are so many WARNING like this,is there anything
wrong ? or this is not important .*
[ 2013/05/22 03:13:04.46458  WARNING xorp_rtrmgr:1692 XrlFinderTarget
obj/i686-pc-linux-gnu/xrl/targets/finder_base.cc:1135
handle_finder_0_2_resolve_xrl ] Handling method for finder/0.2/resolve_xrl
failed: XrlCmdError 102 Command failed Target "rib" does not exist or is
not enabled.
[ 2013/05/22 03:13:04.46688  WARNING xorp_rtrmgr:1692 RTRMGR
rtrmgr/task.cc:215 xrl_done ] Failed to receive reply, code: 201 Resolve
failed  retries: 0  max_retries: 30


   At last please forgive me for my poor english .
   I am looking for your reply
   Thanks
   Best regards!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20130525/06e56fbd/attachment.html 


More information about the Xorp-users mailing list