How to change netmask?

I am trying to connect a qnx machine to a windows machine, both of which
have different tcpip address like the following:
196.168.1.1( for the QNX PC), and 198.133.1.1 ( for the windows PC). I
can not find the host in a situation like this. I try to set the netmask
for both computer like 252.0.0.0 to make them in the same sub net, but I
could not change the netmask at the QNX PC, how can I set the netmask
like that in QNX ?

Thanks a lot.
Qizhang

NDT Technologies Inc. <info@ndt.ca> wrote:

I am trying to connect a qnx machine to a windows machine, both of which
have different tcpip address like the following:
196.168.1.1( for the QNX PC), and 198.133.1.1 ( for the windows PC). I
can not find the host in a situation like this. I try to set the netmask
for both computer like 252.0.0.0 to make them in the same sub net, but I
could not change the netmask at the QNX PC, how can I set the netmask
like that in QNX ?

The TCPIP 5.0 beta might allow this – the supernetting to that level
seems strange.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

“NDT Technologies Inc.” <info@ndt.ca> wrote in
news:3C7B96D3.19220E9A@ndt.ca:

I am trying to connect a qnx machine to a windows machine, both of which
have different tcpip address like the following:
196.168.1.1( for the QNX PC), and 198.133.1.1 ( for the windows PC). I
can not find the host in a situation like this. I try to set the netmask
for both computer like 252.0.0.0 to make them in the same sub net, but I
could not change the netmask at the QNX PC, how can I set the netmask
like that in QNX ?

ifconfig is used to change netmasks, IP addresses etc. Are they directly
tied to each other using a patch cable (would be strange to have such a
setup). Otherwise perhaps you should look at the routing table of the node
doing all the internetwork forwarding, and modify that instead of making a
subnetmask to encompass all the IP ranges.



\

Cheers,
Adam

QNX Software Systems Ltd.
[ amallory@qnx.com ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>

I have used ifconfig to change netmask, but it just can change the last part of
the mask. I would like to know if it is possible to have QNX connect to a PC
with windows system which dynamically allocates IP addresses.
By the way, where can I get the tcpip 5.0 beta?

Thank you.

Qizhang

Adam Mallory wrote:

“NDT Technologies Inc.” <> info@ndt.ca> > wrote in
news:> 3C7B96D3.19220E9A@ndt.ca> :

I am trying to connect a qnx machine to a windows machine, both of which
have different tcpip address like the following:
196.168.1.1( for the QNX PC), and 198.133.1.1 ( for the windows PC). I
can not find the host in a situation like this. I try to set the netmask
for both computer like 252.0.0.0 to make them in the same sub net, but I
could not change the netmask at the QNX PC, how can I set the netmask
like that in QNX ?

ifconfig is used to change netmasks, IP addresses etc. Are they directly
tied to each other using a patch cable (would be strange to have such a
setup). Otherwise perhaps you should look at the routing table of the node
doing all the internetwork forwarding, and modify that instead of making a
subnetmask to encompass all the IP ranges.


Cheers,
Adam

QNX Software Systems Ltd.
[ > amallory@qnx.com > ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <> pschon@baste.magibox.net

“NDT Technologies Inc.” <info@ndt.ca> wrote in
news:3C7CFAA9.8E9A1AE0@ndt.ca:

I have used ifconfig to change netmask, but it just can change the last
part of the mask. I would like to know if it is possible to have QNX
connect to a PC with windows system which dynamically allocates IP
addresses. By the way, where can I get the tcpip 5.0 beta?

Is it possible because a Class A IP is in the range 0 - 127 and your chosen
ranger is class C (Class B is from 128-191.255 and Class C from 192.0.0 -
223.255.255)?

You could use dhcp to assign IP’s dynamically.

The download for TCP/IP 5.0 is on the website qdn.qnx.com under QNX4
updates (look at the side bar).




\

Cheers,
Adam

QNX Software Systems Ltd.
[ amallory@qnx.com ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <pschon@baste.magibox.net>

You are defining 2 different class addresses, put both in the same class for
instance
QNX PC 198.133.1.100 and windows Pc 198.133.1.1

“NDT Technologies Inc.” <info@ndt.ca> wrote in message
news:3C7B96D3.19220E9A@ndt.ca

I am trying to connect a qnx machine to a windows machine, both of which
have different tcpip address like the following:
196.168.1.1( for the QNX PC), and 198.133.1.1 ( for the windows PC). I
can not find the host in a situation like this. I try to set the netmask
for both computer like 252.0.0.0 to make them in the same sub net, but I
could not change the netmask at the QNX PC, how can I set the netmask
like that in QNX ?

Thanks a lot.
Qizhang

QNX’s TCP/IP only alows you make make netmask changes within the class you
have defined

“NDT Technologies Inc.” <info@ndt.ca> wrote in message
news:3C7CFAA9.8E9A1AE0@ndt.ca

I have used ifconfig to change netmask, but it just can change the last
part of
the mask. I would like to know if it is possible to have QNX connect to a
PC
with windows system which dynamically allocates IP addresses.
By the way, where can I get the tcpip 5.0 beta?

Thank you.

Qizhang

Adam Mallory wrote:

“NDT Technologies Inc.” <> info@ndt.ca> > wrote in
news:> 3C7B96D3.19220E9A@ndt.ca> :

I am trying to connect a qnx machine to a windows machine, both of
which
have different tcpip address like the following:
196.168.1.1( for the QNX PC), and 198.133.1.1 ( for the windows PC). I
can not find the host in a situation like this. I try to set the
netmask
for both computer like 252.0.0.0 to make them in the same sub net, but
I
could not change the netmask at the QNX PC, how can I set the netmask
like that in QNX ?

ifconfig is used to change netmasks, IP addresses etc. Are they
directly
tied to each other using a patch cable (would be strange to have such a
setup). Otherwise perhaps you should look at the routing table of the
node
doing all the internetwork forwarding, and modify that instead of making
a
subnetmask to encompass all the IP ranges.


Cheers,
Adam

QNX Software Systems Ltd.
[ > amallory@qnx.com > ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <> pschon@baste.magibox.net

TCP/IP V 5.0 allows suppernetting outside of your own class.

(In fact, isn’t all suppernetting outside of your own class?)


Bill Caroselli – 1(626) 824-7983
Q-TPS Consulting
QTPS@EarthLink.net


“Ivan Bannon” <ivan.bannon@rjginc.com> wrote in message
news:a5j6t9$apf$1@inn.qnx.com

QNX’s TCP/IP only alows you make make netmask changes within the class you
have defined

“NDT Technologies Inc.” <> info@ndt.ca> > wrote in message
news:> 3C7CFAA9.8E9A1AE0@ndt.ca> …
I have used ifconfig to change netmask, but it just can change the last
part of
the mask. I would like to know if it is possible to have QNX connect to
a
PC
with windows system which dynamically allocates IP addresses.
By the way, where can I get the tcpip 5.0 beta?

Thank you.

Qizhang

Adam Mallory wrote:

“NDT Technologies Inc.” <> info@ndt.ca> > wrote in
news:> 3C7B96D3.19220E9A@ndt.ca> :

I am trying to connect a qnx machine to a windows machine, both of
which
have different tcpip address like the following:
196.168.1.1( for the QNX PC), and 198.133.1.1 ( for the windows PC).
I
can not find the host in a situation like this. I try to set the
netmask
for both computer like 252.0.0.0 to make them in the same sub net,
but
I
could not change the netmask at the QNX PC, how can I set the
netmask
like that in QNX ?

ifconfig is used to change netmasks, IP addresses etc. Are they
directly
tied to each other using a patch cable (would be strange to have such
a
setup). Otherwise perhaps you should look at the routing table of the
node
doing all the internetwork forwarding, and modify that instead of
making
a
subnetmask to encompass all the IP ranges.


Cheers,
Adam

QNX Software Systems Ltd.
[ > amallory@qnx.com > ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <> pschon@baste.magibox.net

Thanks, guys.
I have got tcpip 5.0 and tried it, it works well. I have another question, if it
is possible to connect a QNX computer to a windows computer which uses DHCP to
get dynamic IP address. The windows computer will be connected by its name to
the QNX computer.

Qizhang


Bill Caroselli wrote:

TCP/IP V 5.0 allows suppernetting outside of your own class.

(In fact, isn’t all suppernetting outside of your own class?)


Bill Caroselli – 1(626) 824-7983
Q-TPS Consulting
QTPS@EarthLink.net

“Ivan Bannon” <> ivan.bannon@rjginc.com> > wrote in message
news:a5j6t9$apf$> 1@inn.qnx.com> …
QNX’s TCP/IP only alows you make make netmask changes within the class you
have defined

“NDT Technologies Inc.” <> info@ndt.ca> > wrote in message
news:> 3C7CFAA9.8E9A1AE0@ndt.ca> …
I have used ifconfig to change netmask, but it just can change the last
part of
the mask. I would like to know if it is possible to have QNX connect to
a
PC
with windows system which dynamically allocates IP addresses.
By the way, where can I get the tcpip 5.0 beta?

Thank you.

Qizhang

Adam Mallory wrote:

“NDT Technologies Inc.” <> info@ndt.ca> > wrote in
news:> 3C7B96D3.19220E9A@ndt.ca> :

I am trying to connect a qnx machine to a windows machine, both of
which
have different tcpip address like the following:
196.168.1.1( for the QNX PC), and 198.133.1.1 ( for the windows PC).
I
can not find the host in a situation like this. I try to set the
netmask
for both computer like 252.0.0.0 to make them in the same sub net,
but
I
could not change the netmask at the QNX PC, how can I set the
netmask
like that in QNX ?

ifconfig is used to change netmasks, IP addresses etc. Are they
directly
tied to each other using a patch cable (would be strange to have such
a
setup). Otherwise perhaps you should look at the routing table of the
node
doing all the internetwork forwarding, and modify that instead of
making
a
subnetmask to encompass all the IP ranges.


Cheers,
Adam

QNX Software Systems Ltd.
[ > amallory@qnx.com > ]

With a PC, I always felt limited by the software available.
On Unix, I am limited only by my knowledge.
–Peter J. Schoenster <> pschon@baste.magibox.net

“NDT Technologies Inc.” <info@ndt.ca> wrote in message
news:3C83D043.BF16198F@ndt.ca

Thanks, guys.
I have got tcpip 5.0 and tried it, it works well. I have another question,
if it
is possible to connect a QNX computer to a windows computer which uses
DHCP to
get dynamic IP address. The windows computer will be connected by its name
to
the QNX computer.

You can get dynamic IP address @qnx side with dhcp.client (TCP/IP RunTime
package) like:

export HOST=QNX$NODE
Tcpip $HOST &
dhcp.client -d -h $HOST
if_up -s5 en1

Related to connecting windows and qnx computers: depends on how d’u like to
connect them. You can use FTP or Samba or smth else. IMHO for windows
station Samba is prefered.

Qizhang

// wbr

Thanks.
The thing I am trying to do is to access the resourse on a windows computer from
a qnx computer.
What I have now is that I have QNX server wiith samba running on it, I can
access the resource on the qnx pc form windows, but I cannot access files on
windows computers.Usually, I use SMBfsys mount_smb //windows_Pc_name: IP
address/sharename /mountpoint to mount a windows resource. but I have to know
the IP address of the windows computer and put them in the /etc/hosts file. I am
trying to do is to connect a windows computer without knows its IP address, I
just know its name.

Ian Zagorskih wrote:

“NDT Technologies Inc.” <> info@ndt.ca> > wrote in message
news:> 3C83D043.BF16198F@ndt.ca> …
Thanks, guys.
I have got tcpip 5.0 and tried it, it works well. I have another question,
if it
is possible to connect a QNX computer to a windows computer which uses
DHCP to
get dynamic IP address. The windows computer will be connected by its name
to
the QNX computer.

You can get dynamic IP address @qnx side with dhcp.client (TCP/IP RunTime
package) like:

export HOST=QNX$NODE
Tcpip $HOST &
dhcp.client -d -h $HOST
if_up -s5 en1

Related to connecting windows and qnx computers: depends on how d’u like to
connect them. You can use FTP or Samba or smth else. IMHO for windows
station Samba is prefered.

Qizhang



// wbr

“NDT Technologies Inc.” <info@ndt.ca> wrote in message
news:3C84EFBC.924EA448@ndt.ca

Thanks.
The thing I am trying to do is to access the resourse on a windows
computer from
a qnx computer.
What I have now is that I have QNX server wiith samba running on it, I can
access the resource on the qnx pc form windows, but I cannot access files
on
windows computers.Usually, I use SMBfsys mount_smb file://windows_Pc_name:
IP
address/sharename /mountpoint to mount a windows resource. but I have to
know
the IP address of the windows computer and put them in the /etc/hosts
file. I am
trying to do is to connect a windows computer without knows its IP
address, I
just know its name.

Why cannot you access windows machine just by its name ? i.e.

SMBfsys & → start SMB client
optionally: user_smb → add account which will be used
when logging into windows machine
mount_smb /// /

For example, i have Win2k machine with network identification SERVER belongs
to some workgroup. It has shared folder /pub = c:\pub. Win2k local user
account let’s suppose “user” with password “12345”. Then :

SMBfsys &
user_smb user 12345
mount_smb //server/pub /mnt/pub

…mounts c:\pub as local folder /mnt/pub. Work fine. Guess both qnx and
windows machines should belong to the same network.

// wbr

NDT Technologies Inc. wrote:

Thanks.
The thing I am trying to do is to access the resourse on a windows computer from
a qnx computer.
What I have now is that I have QNX server wiith samba running on it, I can
access the resource on the qnx pc form windows, but I cannot access files on
windows computers.Usually, I use SMBfsys mount_smb //windows_Pc_name: IP
address/sharename /mountpoint to mount a windows resource. but I have to know
the IP address of the windows computer and put them in the /etc/hosts file. I am
trying to do is to connect a windows computer without knows its IP address, I
just know its name.

Hmmm, I use SMBfsys all the time with nary an entry in the /etc/hosts
file. I simply type:

mount -t smb //{windowsmachinename}/{sharename} {mountpoint}

where {windowsmachinename} is not in my /etc/hosts file, and is known
only to WINS. It seems that SMBfsys gets it from the WINS somehow.