Connecting to the Internet

Hello,

Where could I find some documentation on how to connect to the
Internet? I’ve searched the entire www.qnx.com site and I have the qnx
documentation books and still cannot find how to connect to the Internet.
I have a direct connection to the Internet, and it works because I
can connect to the Internet if I use Windows NT which I have installed in
the same computer. So the problem is how my configuration. So far, I can
got the following steps committed to memory:
Net &
netmap -f
Net.ether905 &
netstart

I can ping the interface en1, but that’s it. I cannot go out and ping
some other computers or anything like that. What is it that I’m missing
that’s preventing me from solving this problem?


Thanks in advance!
EDwin

Edwin Mercado wrote:

Hello,

Where could I find some documentation on how to connect to the
Internet? I’ve searched the entire > www.qnx.com > site and I have the qnx
documentation books and still cannot find how to connect to the Internet.
I have a direct connection to the Internet, and it works because I
can connect to the Internet if I use Windows NT which I have installed in
the same computer. So the problem is how my configuration. So far, I can
got the following steps committed to memory:
Net &
netmap -f
Net.ether905 &
netstart

I can ping the interface en1, but that’s it. I cannot go out and ping
some other computers or anything like that. What is it that I’m missing
that’s preventing me from solving this problem?

Thanks in advance!
EDwin

First some context: you need to install TCP/IP for QNX. It is not
included with the base 4.2x OS. If it is installed you should have a
binary called “Socket”. The /etc/nestart program should be trying to
start it. Also, you need to give yourself an entry in the /etc/hosts
file (that matches your /etc/netstart file) and a DNS search path in
/etc/resolv.conf. You probably also need to give yourself a default
route to your internet gateway.


Can you tell us what “sin -P Sock” says?
What is in /etc/hosts?
What is in /etc/resolv.conf?
What does “netstat -rn” say?

Regards,

Todd

You’re missing some essential configuration steps. If you don’t plan to
learn how TCP/IP and Internet works, ask someone qualified to help you
out, but it is certainly worth learning.

You need to setup routing before you can access Internet. How you do
that, depends on your ISP and the way they set you up. It could be
static configuration or DHCP (more common). If latter, look at
dhcp.client manual page, it might be simple enough to set up. Otherwise,
learn what is routing table, gateway and look at route manual page.
Reading O’Reilly “Crab Book” would help a lot.

  • igor

Edwin Mercado wrote:

Hello,

Where could I find some documentation on how to connect to the
Internet? I’ve searched the entire > www.qnx.com > site and I have the qnx
documentation books and still cannot find how to connect to the Internet.
I have a direct connection to the Internet, and it works because I
can connect to the Internet if I use Windows NT which I have installed in
the same computer. So the problem is how my configuration. So far, I can
got the following steps committed to memory:
Net &
netmap -f
Net.ether905 &
netstart

I can ping the interface en1, but that’s it. I cannot go out and ping
some other computers or anything like that. What is it that I’m missing
that’s preventing me from solving this problem?

Thanks in advance!
EDwin

Got it! Thank you very much.

My problem was that I was doing this:
route add default my_machine_ip_address
instead of
route add default gateway_address_on_the_server

Thanks

Edwin

On Thu, 24 Aug 2000, Todd Meade wrote:

Edwin Mercado wrote:

Hello,

Where could I find some documentation on how to connect to the
Internet? I’ve searched the entire > www.qnx.com > site and I have the qnx
documentation books and still cannot find how to connect to the Internet.
I have a direct connection to the Internet, and it works because I
can connect to the Internet if I use Windows NT which I have installed in
the same computer. So the problem is how my configuration. So far, I can
got the following steps committed to memory:
Net &
netmap -f
Net.ether905 &
netstart

I can ping the interface en1, but that’s it. I cannot go out and ping
some other computers or anything like that. What is it that I’m missing
that’s preventing me from solving this problem?

Thanks in advance!
EDwin

First some context: you need to install TCP/IP for QNX. It is not
included with the base 4.2x OS. If it is installed you should have a
binary called “Socket”. The /etc/nestart program should be trying to
start it. Also, you need to give yourself an entry in the /etc/hosts
file (that matches your /etc/netstart file) and a DNS search path in
/etc/resolv.conf. You probably also need to give yourself a default
route to your internet gateway.


Can you tell us what “sin -P Sock” says?
What is in /etc/hosts?
What is in /etc/resolv.conf?
What does “netstat -rn” say?

Regards,

Todd

Edwin Mercado <emerado@wpi.edu> wrote:

I can ping the interface en1, but that’s it. I cannot go out and ping
some other computers or anything like that. What is it that I’m missing
that’s preventing me from solving this problem?

Assuming that your hardware is working ok, and that you’ve
started TCP/IP properly, the problem may be knowing
where to ping to.

The IP level of TCP/IP is basically a routing level,
and to route, IP must have some basic information.
Let’s say you have a C class IP address, such as
my server.

198.144.201.130

If you were to ping another node such as:

198.154.201.131 then IP would know that the
address you seek is on the en1 network.
It would therefore broadcast on the network
looking for the MAC address of that node.
Thereafter it would send messages directoy
to your ethernet card via MAC address.

Now what if the IP address that you want to
ping is not on your network. In that case
you have to tell IP where to send requests
for unknown IP addresses. This is your Gateway.
This address has to be on your network.
So lets say, as in my case your DSL router
has an IP address 198.145.201.129, you would
then execute this route command after starting
TCP/IP

route add default 198.145.201.129

To see how things are setup,

netstat -rn

Does that help?



Mitchell Schoenbrun --------- maschoen@pobox.com