I have QNX 6.2.1 (including CD update) installed on a Notebook with a 3COM PCMCIA card on a private network (192.168.100.X) and a gateway box (192.168.100.1). Everything on the (private) network works fine until I add the gateway:
route add default 192.168.100.1
After that, I cannot even ping myself. Using route show -n, the reason seems to be that the gateway is the first entry in my routing table:
I searched around this forum and googled around, but no one seems to have my particular kind of problem. Why is it that the default route is added to the start, not the end, of the routing table? And how can I change that?
Even as I tried to init everything using my DHCP server, the same result happens – default route first. Would be happily appreciating any suggestions.
I used to see this. Can you “ping -n 192.168.100.y” ?
It’s something to do with “ping” wants to resolve a name, and you have a DNS setting.
Without the default route, since it can’t reach your DNS server, the resolving faild very
quick. WIth a default route, the resolving goes to the “probably worng” nameserver…
Thanks for your swift reply. ping -n does the trick, even for IPs in the outer world (e.g. my nameserver can be pinged). Can you tell me the reason for ping asking DNS when I have given an IP address (sounds pretty unnecessary to me, at least)?
Next, the DNS server can be pinged, but is of no use (and yes, on the Linux machines they work). A e.g. ping -n www.heise.de fails.
Again, suggestions are very welcome. I’d be especially interested in which context you used to see this.
As I would expect. I also tried editing /etc/resolv.conf manually, since the GUI network configurator saves everything in /etc/net.cfg, but to no avail (why is there a resolv.conf, btw?).
Another thought is that it could be my firewall; on the other hand, my windows and linux machines do quite well with it. I also checked ifconfig for TCP and UDP, but both are available.
I have no idea. I would say the 217.5.115.7 have problem, but you said it is working
with other boxes. Any difference between the QNX machine and other linux machine?
(network wise, does the QNX machine behind a firewall? things like that).
or maybe you need to setup proper domain just as your Linux box.
Are you able to nslookup through some wellknown server? For example, on my
machine: