November 27, 2006, 10:55pm
We recently moved one of our QNX machines to a new network, and now I am having a hard time getting network working again. I changed /etc/hosts, and tried to change the ip with ifconfig, and even went through the stuff in the manual where it reloads the ethernet driver, as well as, of course, rebooting. It appears to have the new ip. If I type ifconfig en1, I get this:
en1: flags=8863 <UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLE,MULTICAST> inet 188.8.131.52 netmask ffff0000 broadcast 184.108.40.206
but I can’t ping anything, and the output for netmask is still referring to the gateway of the old subnet:
default 220.127.116.11 UG 0 6 en1
Seems like maybe I missed a config file somewhere, but can’t figure out what that would be.
Thanks for any help,
November 28, 2006, 5:04am
You don’t need any config file to get basic TCP/IP ( not even /etc/hosts).
How do you start TCP/IP. What version of TCP/IP is it.
November 28, 2006, 4:57pm
Look at your /etc/net.cfg file. This is set up by phlip / netmanager
utilities. When in doubt set everything to manual and play with
‘ifconfig’ / ‘route’.
November 28, 2006, 8:57pm
Sean, this is a QNX4 forum
November 28, 2006, 9:25pm
Thanks for the reply. I did feel like this should be easy, but can’t quite figure it out… This is what I thought should work:
ifconfig en1 18.104.22.168 netmask 255.255.255.0 broadcast 22.214.171.124 up
I’m not sure what you mean by which version of tcp/ip I have, or how to figure it out.
November 29, 2006, 2:24am
Post output of sin ver, netmap, cat /etc/netmap and netinfo -l
November 30, 2006, 12:29am
Well, I seem to have networking working again. I found a script /etc/config/bin/tcpip.1 that was calling route with the old subnet. Changing that seems to have done the trick.
Thanks for your help,