Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Applying new netmask and gateway to tsec0 interface on HW: Page 1 of 4 (4 Items)
   
Applying new netmask and gateway to tsec0 interface on HW  
Hi,

I'm trying to boot QNX 6.4.1 kernel on a powerquic 8548 processor board.

At present I configure IPAddress (ipaddr), Netmask (netmask) and Gateway IP (gatewayip) via Uboot and then in the QNX 
kernel apply ONLY the IP address on bootup.

The values I'm currently configuring in Uboot are as follows:

ipaddr 192.168.18.31
netmask 255.255.252.0
gatewayip 192.168.16.1

When I boot QNX the correct IP address of 192.168.18.31 gets assigned to interface tsec0. However, QNX seems to assign a
 default netmask of 255.255.255.0 (0xffffff00). As a result I cant connect to the gateway IP and cant route to the rest 
of my network.

I've tried changing the netmask at the QNX command line (ifconfig tsec0 netmask 0xfffffc00) but this does not change, 
even though the command is accepted.

My question therefore, is where must I configure these settings if I want the correct netmask to persist, and what is 
the correct command for doing so?


Thanks,
Danny