Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Trouble configuring network: Page 1 of 2 (11 Items)
   
Trouble configuring network  
Hello,

I'm having trouble configuring network through DHCP in my target which uses 6.4.0.
I execute the following in the target:

io-pkt-v4-hc -ptcpip &	
waitfor /dev/socket
inetd &
dhcp.client -i en0 -m -u -T 10

After this when I check up with ifconfig I find that the system is not configured to any IP. Is there something I'm 
missing here or is there any other dependency which I should have?

Thanks,
Lakshminarayanan.R
RE: Trouble configuring network  
Hi:

  If there's no typo, then you haven't specified any hardware driver for io-pkt to load (the "-d" option).

   R.


-----Original Message-----
From: Lakshminarayanan R [mailto:community-noreply@qnx.com]
Sent: Wed 4/22/2009 3:45 AM
To: builds-networking
Subject: Trouble configuring network
 
Hello,

I'm having trouble configuring network through DHCP in my target which uses 6.4.0.
I execute the following in the target:

io-pkt-v4-hc -ptcpip &	
waitfor /dev/socket
inetd &
dhcp.client -i en0 -m -u -T 10

After this when I check up with ifconfig I find that the system is not configured to any IP. Is there something I'm 
missing here or is there any other dependency which I should have?

Thanks,
Lakshminarayanan.R

_______________________________________________
Builds
http://community.qnx.com/sf/go/post27689


Attachment: Text winmail.dat 2.78 KB
Re: RE: Trouble configuring network  
You are right. en0 wasn't mounted. I managed to configure it in DHCP. 
But, now I'm trying manual configuration. Just replacing dhcp.client with ifconfig
ifconfig en0 192.168.12.11/24

This configures the network. But when I try to ping it from outside, the request times out.

What could be the possible reason? Anything else to be done for this?
RE: RE: Trouble configuring network  
DHCP also configures such things as default routes and name servers.  If
you're trying to connect to your target from a host on a different
subnet, setting a default route is the first thing you're going to have
to do.

I'd recommend reading up on the documentation for networking (or simply
go to the web) for basic information on how networking is configured.

	R. 

-----Original Message-----
From: Lakshminarayanan R [mailto:community-noreply@qnx.com] 
Sent: Wednesday, April 22, 2009 6:46 AM
To: builds-networking
Subject: Re: RE: Trouble configuring network

You are right. en0 wasn't mounted. I managed to configure it in DHCP. 
But, now I'm trying manual configuration. Just replacing dhcp.client
with ifconfig ifconfig en0 192.168.12.11/24

This configures the network. But when I try to ping it from outside, the
request times out.

What could be the possible reason? Anything else to be done for this?


_______________________________________________
Builds
http://community.qnx.com/sf/go/post27702
Re: RE: RE: Trouble configuring network  
Now, I'm able to hop the packets through the gateway. Route gateway wasn't configured and I did it with this command:

route add default .......

Still I'm facing an issue. If I give a route show (or) a telnet to another sys (or) a ping to another sys it is taking 
time, although it works.

But this is not observed with DHCP! Any suggestions on this?


RE: RE: RE: Trouble configuring network  
This is probably a name server problem.  Your apps are attempting to
convert an IP address into a name and this is failing.

You can test this with the ping application by adding the -n option
(don't look up names).

 R. 

-----Original Message-----
From: Lakshminarayanan R [mailto:community-noreply@qnx.com] 
Sent: Wednesday, April 22, 2009 9:14 AM
To: builds-networking
Subject: Re: RE: RE: Trouble configuring network

Now, I'm able to hop the packets through the gateway. Route gateway
wasn't configured and I did it with this command:

route add default .......

Still I'm facing an issue. If I give a route show (or) a telnet to
another sys (or) a ping to another sys it is taking time, although it
works.

But this is not observed with DHCP! Any suggestions on this?




_______________________________________________
Builds
http://community.qnx.com/sf/go/post27724
Re: RE: RE: RE: Trouble configuring network  
Yes, it is trying to look up the name links and with ping -n the delay is aborted. But, how to avoid this without -n?
RE: RE: RE: RE: Trouble configuring network  
You're on to the next thing.  Check the documentation (or the web) on
how you set up the name resolver (DNS).

	R. 

-----Original Message-----
From: Lakshminarayanan R [mailto:community-noreply@qnx.com] 
Sent: Wednesday, April 22, 2009 9:49 AM
To: builds-networking
Subject: Re: RE: RE: RE: Trouble configuring network

Yes, it is trying to look up the name links and with ping -n the delay
is aborted. But, how to avoid this without -n?

_______________________________________________
Builds
http://community.qnx.com/sf/go/post27730
Re: RE: RE: RE: Trouble configuring network  
On Wed, Apr 22, 2009 at 09:49:35AM -0400, Robert Craig wrote:
> You're on to the next thing.  Check the documentation (or the web) on
> how you set up the name resolver (DNS).

In particular the documentation on /etc/resolv.conf, /etc/hosts
and /etc/nsswitch.conf in the utilities reference.

-seanb
RE: Trouble configuring network  

> -----Original Message-----
> From: Lakshminarayanan R [mailto:community-noreply@qnx.com]
> Sent: April-22-09 3:45 AM
> To: builds-networking
> Subject: Trouble configuring network
> 
> Hello,
> 
> I'm having trouble configuring network through DHCP in my target which
> uses 6.4.0.
> I execute the following in the target:
> 
> io-pkt-v4-hc -ptcpip &
> waitfor /dev/socket
> inetd &
> dhcp.client -i en0 -m -u -T 10

There doesn't seems to be any network driver loaded.

> 
> After this when I check up with ifconfig I find that the system is not
> configured to any IP. Is there something I'm missing here or is there
> any other dependency which I should have?
> 
> Thanks,
> Lakshminarayanan.R
> 
> _______________________________________________
> Builds
> http://community.qnx.com/sf/go/post27689
>