From ahmadyudo at yahoo.com Fri Feb 15 21:54:00 2013 From: ahmadyudo at yahoo.com (oduy ahmad) Date: Fri, 15 Feb 2013 21:54:00 -0800 (PST) Subject: [Xorp-users] (no subject) Message-ID: <1360994040.19069.YahooMailNeo@web163904.mail.gq1.yahoo.com> http://www.aring-erfurt.de/tvxzee/6ya/dszeyrpsyure76h2oq=it4fhsw2x5zfdbdn3d0 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20130215/03dbb42d/attachment.html From dhajoglou at gmail.com Mon Feb 25 16:10:44 2013 From: dhajoglou at gmail.com (Dave Hajoglou) Date: Mon, 25 Feb 2013 17:10:44 -0700 Subject: [Xorp-users] BGP Static Route config help Message-ID: I?m stuck on a static route export issue. I?m using the Stephen Strowes example (http://bit.ly/W9yFgl) for a static route yet it doesn?t show up in the local machine. On the other peer, however, I can export all the routes on the box using protocol ?connected? policy in conjunction with the interfaces. In my test setup, hojo-bgp1 is trying to advertise a static route. The other peer, hojo-bgp2 is successfully advertising all routes on the two configured interfaces. Also, each box reflects the same ERROR message on startup though I can?t figure out what the error is referring to (in the log snip below). My goal is to get 10.2 and 172.17 to openly exchange across the topology yet be able to define them explicitly at the host level rather than through the "connected" feature. Details: Version 1.8.4 Topology: [hojo-bgp1] ------172.17.0.0/24 | | (172.16.0.0/24) | [hojo-bgp2]------10.2.0.0/24 Routes: *note* does not reflect its own 172.17 static route but has received route for AS 64501!!! root at hojo-bgp1 > show bgp routes Status Codes: * valid route, > best route Origin Codes: i IGP, e EGP, ? incomplete Prefix Nexthop Peer AS Path ------ ------- ---- ------- *> 10.2.0.0/24 172.16.0.2 10.1.52.42 64501 i *> 172.16.0.0/24 172.16.0.2 10.1.52.42 64501 i *note* properly reflects the two routes on interfaces eth1 and eth3 root at hojo-bgp2 > show bgp routes Status Codes: * valid route, > best route Origin Codes: i IGP, e EGP, ? incomplete Prefix Nexthop Peer AS Path ------ ------- ---- ------- *> 10.2.0.0/24 10.2.0.2 0.0.0.0 i *> 172.16.0.0/24 172.16.0.2 0.0.0.0 i .conf files: hojo-bgp1 xorp.conf (built on strowes example): interfaces { interface eth1 { description: "" disable: false vif eth1 { disable: false address 172.16.0.1 { prefix-length: 24 broadcast: 172.16.0.255 disable: false } } } interface eth2 { description: "" disable: false vif eth2 { disable: false address 172.17.0.1 { prefix-length: 24 broadcast: 172.17.0.255 disable: false } } } } fea { unicast-forwarding4 { disable: false } } protocols { static { route 172.17.0.0/24 { next-hop: 172.17.0.1 metric: 1 } } } policy { policy-statement bgp_out { term 0 { from { protocol: "static" } then { accept } } term 1 { from { protocol: "bgp" } then { accept } } } policy-statement bgp_in { term 0 { from { } then { accept } } } } protocols { bgp { export: "bgp_out" import: "bgp_in" bgp-id: 10.1.52.41 local-as: 64500 peer 172.16.0.2 { local-ip: 172.16.0.1 as: 64501 next-hop: 172.16.0.1 } } } /* END */ hojo-bgp2 xorp.conf (uses protocol: "connected"): policy { policy-statement export-connected { term 100 { from { protocol: "connected" } } } policy-statement bgp_in { term 0 { from { } then { accept } } } } protocols { bgp { export: "export-connected" import: "bgp_in" targetname: "bgp" bgp-id: 10.1.52.42 enable-4byte-as-numbers: false local-as: 64501 peer 172.16.0.1 { local-ip: 172.16.0.2 as: 64500 next-hop: 172.16.0.2 local-port: 179 peer-port: 179 disable: false; ipv4-unicast: true } } } interfaces { interface eth1 { description: "" disable: false vif eth1 { disable: false address 172.16.0.2 { prefix-length: 24 broadcast: 172.16.0.255 disable: false } } } interface eth3 { description: "" disable: false vif eth3 { disable: false address 10.2.0.2 { prefix-length: 24 broadcast: 10.2.0.255 disable: false } } } } fea { unicast-forwarding4 { disable: false } } /* END */ Xorp.log startup. Errors are on interfaces at the end.: [ 2013/02/25 18:51:29.703401 INFO xorp_rtrmgr:4276 RTRMGR rtrmgr/master_conf_tree.cc:257 execute ] Changed modules: interfaces, firewall, fea, rib, policy, bgp [ 2013/02/25 18:51:29.704592 WARNING xorp_rtrmgr:4276 RTRMGR rtrmgr/module_command.cc:327 startup_validation ] WARNING: Using DelayValidation, module_name: bgp [ 2013/02/25 18:51:29.705284 INFO xorp_rtrmgr:4276 RTRMGR rtrmgr/module_manager.cc:101 execute ] Executing module: interfaces (xorp_fea) [ 2013/02/25 18:51:29.705835 WARNING xorp_rtrmgr:4276 XrlFinderTarget obj/x86_64-unknown-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/02/25 18:51:29.705996 WARNING xorp_rtrmgr:4276 RTRMGR rtrmgr/task.cc:215 xrl_done ] Failed to receive reply, code: 201 Resolve failed retries: 0 max_retries: 30 [ 2013/02/25 18:51:30.709300 INFO xorp_fea:4277 MFEA fea/mfea_node.cc:317 enable ] MFEA enabled [ 2013/02/25 18:51:30.709472 INFO xorp_fea:4277 MFEA fea/mfea_node_cli.cc:126 enable ] CLI enabled [ 2013/02/25 18:51:30.709709 INFO xorp_fea:4277 MFEA fea/mfea_node_cli.cc:92 start ] CLI started [ 2013/02/25 18:51:30.709766 INFO xorp_fea:4277 MFEA fea/mfea_node.cc:317 enable ] MFEA enabled [ 2013/02/25 18:51:30.709808 INFO xorp_fea:4277 MFEA fea/mfea_node_cli.cc:126 enable ] CLI enabled [ 2013/02/25 18:51:30.709917 INFO xorp_fea:4277 MFEA fea/mfea_node_cli.cc:92 start ] CLI started [ 2013/02/25 18:51:30.721836 WARNING xorp_fea:4277 FEA fea/data_plane/ifconfig/ifconfig_get_netlink_socket.cc:138 try_read_config_one ] NOTE: Netlink get single network device works on this system. [ 2013/02/25 18:51:30.722710 INFO xorp_rtrmgr:4276 RTRMGR rtrmgr/module_manager.cc:101 execute ] Executing module: firewall (xorp_fea) [ 2013/02/25 18:51:30.723398 INFO xorp_rtrmgr:4276 RTRMGR rtrmgr/module_manager.cc:101 execute ] Executing module: fea (xorp_fea) [ 2013/02/25 18:51:30.724350 INFO xorp_rtrmgr:4276 RTRMGR rtrmgr/module_manager.cc:101 execute ] Executing module: rib (xorp_rib) [ 2013/02/25 18:51:30.724707 WARNING xorp_rtrmgr:4276 XrlFinderTarget obj/x86_64-unknown-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/02/25 18:51:30.724824 WARNING xorp_rtrmgr:4276 RTRMGR rtrmgr/task.cc:215 xrl_done ] Failed to receive reply, code: 201 Resolve failed retries: 0 max_retries: 30 [ 2013/02/25 18:51:31.727233 INFO xorp_rtrmgr:4276 RTRMGR rtrmgr/module_manager.cc:101 execute ] Executing module: policy (xorp_policy) [ 2013/02/25 18:51:31.727627 WARNING xorp_rtrmgr:4276 XrlFinderTarget obj/x86_64-unknown-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/02/25 18:51:31.727748 WARNING xorp_rtrmgr:4276 RTRMGR rtrmgr/task.cc:215 xrl_done ] Failed to receive reply, code: 201 Resolve failed retries: 0 max_retries: 30 [ 2013/02/25 18:51:32.742375 INFO xorp_rtrmgr:4276 RTRMGR rtrmgr/module_manager.cc:101 execute ] Executing module: bgp (xorp_bgp) Errors: [ 2013/02/25 18:51:34.752050 ERROR xorp_bgp:4332 BGP bgp/xrl_target.cc:418 bgp_0_3_change_local_ip ] local ip 172.16.0.2 local port 179 peer ip 172.16.0.1 peer port 179 new_local_ip 172.16.0.2 new_local_dev: [ 2013/02/25 18:51:34.752542 ERROR xorp_bgp:4332 BGP bgp/xrl_target.cc:418 bgp_0_3_change_local_ip ] local ip 172.16.0.2 local port 179 peer ip 172.16.0.1 peer port 179 new_local_ip 172.16.0.2 new_local_dev: [ 2013/02/25 18:51:36.762228 INFO xorp_rtrmgr:4276 RTRMGR rtrmgr/task.cc:2242 run_task ] No more tasks to run -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-users/attachments/20130225/78adcefa/attachment-0001.html