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 - Netmask problems for 192.168 network - can't seem to get bigger than : Page 1 of 3 (3 Items)
   
Netmask problems for 192.168 network - can't seem to get bigger than  
This is with Qnx 4.25 (Socket 4.25C)

I am trying to assign a 16 bit node address space within the 192.168 network but ifconfig does not seem to allow 
anything larger than 8 bits for any network starting with 192.

Using a 192.168.0.1/24 network works fine:
ifconfig en1 192.168.0.1 netmask 255.255.255.0 up
ifconfig en1
 returns
en1: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST>
    inet 192.168.0.1 netmask ffffff00 broadcast 192.168.0.255

but using 192.168.0.1/16 network forces it back to a /24 network:
ifconfig en1 192.168.0.1 netmask 255.255.0.0 up
ifconfig en1
 returns
en1: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST>
    inet 192.168.0.1 netmask ffffff00 broadcast 192.168.0.255

However it will allow to subnet to finer than a /24 network
I.E. 192.168.0.1/25
ifconfig en1 192.168.0.1 netmask 255.255.255.128 up
ifconfig en1
 returns
en1:
flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST>
    inet 192.168.0.1 netmask ffffff80 broadcast 192.168.0.127

Using any other network the netmask I ask for is used: (10.1.0.1/16, for example, also works with 193.0.0.1/16)
ifconfig en1 10.1.0.1 netmask 255.255.0.0 up
ifconfig en1
 returns
en1:
flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST>
    inet 10.1.0.0 netmask ffff0000 broadcast 10.255.255.255

This also works for 193.168.0.1/16 which should also technically be a class C network (but is a real address so was 
restricted to a private network for testing)

---

So the Qnx 4.25 networking seems to force any 192.X.X.X network to using a 8 bit class C network space even though the 
192.X.X.X network is 256 /24 class C networks that should be able to subnet to up to a /16 network.

Is there any work around to use more than 8 bits of node space with the 192.X.X.X network in QNX?