[Xorp-users] Bind failed: Could not assign requested address
Jeff Krasky
kras0021@UMN.EDU
Tue, 11 Jan 2005 14:46:01 CST
Yes, that was it. Thank you.
Jeff
On 10 Jan 2005, Atanu Ghosh wrote:
> Hi,
>
> Is there a chance that the "local-ip" statement in the configuration
> file does not match any of the interface addresses on your host?
>
> Atanu.
>
> >>>>> "Jeff" == Jeff Krasky <kras0021@umn.edu> writes:
>
> Jeff> I am getting the error when logged in as root when I run
> Jeff> ./xorp_rtrmgr Jeff
>
>
> Jeff> On 10 Jan 2005, Atanu Ghosh wrote:
> >> Hi,
> >>
> >> The port (179) that BGP is attempting to bind to is
> >> privileged. The router manager needs to be run as root. It is
> >> also necessary to run as root if you want to install any routes
> >> in the kernel.
> >>
> >> Atanu.
> >>
> >> >>>>> "Jeff" == Jeff Krasky <kras0021@umn.edu> writes:
> >>
> Jeff> Hi, I am trying to get Xorp running on a Linux machine that I
> Jeff> have. When I log in as root and run ./xorp_rtrmgr I get the
> Jeff> following:
> >>
> Jeff> [ 2005/01/10 16:23:59 INFO xorp_rtrmgr:3411 RTRMGR +134
> Jeff> master_conf_tree.cc execute ] Changed modules: interfaces,
> Jeff> fea, rib, bgp [ 2005/01/10 16:23:59 INFO xorp_rtrmgr:3411
> Jeff> RTRMGR +404 module_manager.cc run ] Running module: interfaces
> Jeff> (/home/jkrasky/xorp/fea/xorp_fea) [ 2005/01/10 16:24:01 INFO
> Jeff> xorp_rtrmgr:3411 RTRMGR +404 module_manager.cc run ] Running
> Jeff> module: fea (/home/jkrasky/xorp/fea/xorp_fea) [ 2005/01/10
> Jeff> 16:24:07 INFO xorp_rtrmgr:3411 RTRMGR +404 module_manager.cc
> Jeff> run ] Running module: rib (/home/jkrasky/xorp/rib/xorp_rib) [
> Jeff> 2005/01/10 16:24:09 INFO xorp_rtrmgr:3411 RTRMGR +404
> Jeff> module_manager.cc run ] Running module: bgp
> Jeff> (/home/jkrasky/xorp/bgp/xorp_bgp) [ 2005/01/10 16:24:11 ERROR
> Jeff> xorp_bgp:3414 BGP +400 socket.cc connect_socket ] Bind failed:
> Jeff> Cannot assign requested address [ 2005/01/10 16:24:11 FATAL
> Jeff> xorp_bgp:3414 BGP +67 socket.cc create_listener ] Bind failed:
> Jeff> Cannot assign requested address [ 2005/01/10 16:24:11 INFO
> Jeff> xorp_rtrmgr:3411 RTRMGR +550 module_manager.cc killed ] Module
> Jeff> abnormally killed: bgp [ 2005/01/10 16:24:11 ERROR
> Jeff> xorp_rtrmgr:3411 XRL +628 xrl_pf_stcp.cc die ] XrlPFSTCPSender
> Jeff> died: end of file [ 2005/01/10 16:24:11 ERROR xorp_rtrmgr:3411
> Jeff> RTRMGR +763 task.cc execute_done ] 210 Transport failed [
> Jeff> 2005/01/10 16:24:11 ERROR xorp_rtrmgr:3411 RTRMGR +1179
> Jeff> task.cc task_fail ] Shutting down fatally wounded process
> Jeff> (bgp) [ 2005/01/10 16:24:11 ERROR xorp_rtrmgr:3411 RTRMGR +540
> Jeff> master_conf_tree.cc commit_pass2_done ] Commit failed: 210
> Jeff> Transport failed [ 2005/01/10 16:24:11 ERROR xorp_rtrmgr:3411
> Jeff> RTRMGR +146 master_conf_tree.cc config_done ] Configuration
> Jeff> failed: 210 Transport failed [ 2005/01/10 16:24:11 INFO
> Jeff> xorp_rtrmgr:3411 RTRMGR +1372 task.cc run_task ] No more tasks
> Jeff> to run [ 2005/01/10 16:24:11 INFO xorp_rtrmgr:3411 RTRMGR +216
> Jeff> module_manager.cc terminate ] Terminating module: fea [
> Jeff> 2005/01/10 16:24:11 INFO xorp_rtrmgr:3411 RTRMGR +216
> Jeff> module_manager.cc terminate ] Terminating module: interfaces [
> Jeff> 2005/01/10 16:24:11 INFO xorp_rtrmgr:3411 RTRMGR +262
> Jeff> module_manager.cc terminate ] Killing module: interfaces (pid
> Jeff> = 3412) [ 2005/01/10 16:24:11 INFO xorp_rtrmgr:3411 RTRMGR
> Jeff> +216 module_manager.cc terminate ] Terminating module: rib [
> Jeff> 2005/01/10 16:24:11 INFO xorp_rtrmgr:3411 RTRMGR +262
> Jeff> module_manager.cc terminate ] Killing module: rib (pid = 3413)
> Jeff> [ 2005/01/10 16:24:11 INFO xorp_rtrmgr:3411 RTRMGR +546
> Jeff> module_manager.cc killed ] Module killed during shutdown:
> Jeff> interfaces [ 2005/01/10 16:24:11 ERROR xorp_rtrmgr:3411 XRL
> Jeff> +628 xrl_pf_stcp.cc die ] XrlPFSTCPSender died: end of file [
> Jeff> 2005/01/10 16:24:11 INFO xorp_rtrmgr:3411 RTRMGR +546
> Jeff> module_manager.cc killed ] Module killed during shutdown: rib
> Jeff> [ 2005/01/10 16:24:11 ERROR xorp_rtrmgr:3411 XRL +628
> Jeff> xrl_pf_stcp.cc die ] XrlPFSTCPSender died: end of file
> >>
> Jeff> Here is my config.boot file:
> >>
> Jeff> interfaces { interface eth0 { description: "data interface"
> Jeff> vif eth0 { address 172.16.1.150 { prefix-length: 32 broadcast:
> Jeff> 172.16.1.150 } } } }
> >>
> Jeff> fea { enable-unicast-forwarding4: true /*
> Jeff> enable-unicast-forwarding6: true */ }
> >>
> Jeff> protocols { bgp { bgp-id: 172.16.1.150 local-as: 33333
> >>
> Jeff> peer 172.16.1.152 { local-ip: 172.16.1.152 as: 33334 next-hop:
> Jeff> 172.16.1.152
> >>
> Jeff> local-port: 179 peer-port: 179
> >>
> Jeff> /* holdtime: 120 */ /* enabled: true */
> >>
> Jeff> /* Optionally enable other AFI/SAFI combinations */ /*
> Jeff> enable-ipv4-multicast */
> >>
> Jeff> /* enable-ipv6-unicast */ /* enable-ipv6-multicast */ }
> >>
> Jeff> /* Originate IPv4 Routes */ /* network4 10.10.10.0/24 {
> Jeff> next-hop: 10.10.10.10 unicast: true multicast: true } */
> >>
> Jeff> /* Originate IPv6 Routes */ /* network6 10:10:10:10::/64 {
> Jeff> next-hop: 10:10:10:10:10:10:10:10 unicast: true multicast:
> Jeff> true } */ } }
> >>
> Jeff> If someone could give me a hint to point me in the right
> Jeff> direction as to what might be wrong with bind() I would be
> Jeff> grateful.
> >>
> Jeff> Thanks,
> >>
> Jeff> Jeff
> >>
> Jeff> _______________________________________________ Xorp-users
> Jeff> mailing list Xorp-users@xorp.org
> Jeff> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users
> >> _______________________________________________ Xorp-users
> >> mailing list Xorp-users@xorp.org
> >> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users
> >>
>
>
>