Two TCP/IP networks on one QNX node

Hi all!


I am having a little problem starting TCP/IP 4.25 on one node with two
Ethernet interfaces.
I would like to make a gateway between one TCP/IP network and the second
one.

That’s what I do and what I get:

  1. The network interfaces are configured properly QNX fleet network works
    fine through both Ethernet interfaces.
  2. One Ethernet is en1 and second is en4
  3. I run Socket -d forward node6!
  4. I run ifconfig en1 199.26.26.146 up (or ifconfig en1 siec1 up) and it is
    fine and works properly.
  5. I run ifconfig en4 199.26.26.148 up (or ifconfig en1 siec4 up) and get
    the following error message:
    “ifconfig: ioctl (SIOCAIFADDR): File exists”

Let me add that if the first ifconfig is en4 and than en1 the en1 comes with
the above error.

What should I do to make the gateway work properly.

Regards,


Jaroslaw Piwowarczyk

You are telling ifconfig that both of these adapters are on the same
network. e.g. 199.26.26.X

Is that what you meant to do?
I’m not sure that’s allowed.
If it is, there must be something you must do for special permission.


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


“Jaroslaw Piwowarczyk” <jp@csi.net.pl> wrote in message
news:bf8qd6$i61$1@inn.qnx.com

Hi all!


I am having a little problem starting TCP/IP 4.25 on one node with two
Ethernet interfaces.
I would like to make a gateway between one TCP/IP network and the second
one.

That’s what I do and what I get:

  1. The network interfaces are configured properly QNX fleet network works
    fine through both Ethernet interfaces.
  2. One Ethernet is en1 and second is en4
  3. I run Socket -d forward node6!
  4. I run ifconfig en1 199.26.26.146 up (or ifconfig en1 siec1 up) and it
    is
    fine and works properly.
  5. I run ifconfig en4 199.26.26.148 up (or ifconfig en1 siec4 up) and get
    the following error message:
    “ifconfig: ioctl (SIOCAIFADDR): File exists”

Let me add that if the first ifconfig is en4 and than en1 the en1 comes
with
the above error.

What should I do to make the gateway work properly.

Regards,


Jaroslaw Piwowarczyk

You are telling ifconfig that both of these adapters are on the same
network. e.g. 199.26.26.X

Is that what you meant to do?

Yes.

I’m not sure that’s allowed.

You probably right so I changed to following and find other problem:

That’s what I do and what I get:

  1. The network interfaces are configured properly QNX fleet network works
    fine through both Ethernet interfaces.
  2. One Ethernet is en1 and second is en4
  3. I run Socket -d forward node6!
  4. I run ifconfig en1 199.26.26.146 up (or ifconfig en1 siec1 up) and it
    is fine and works properly.
  5. I run ifconfig en4 199.26.27.146 up (or ifconfig en1 siec4 up) and it is
    fine now!

BUT
I have added following lines

route add 199.26.26 199.26.26.146
route add 199.26.27 199.26.27.146

but both networks can not see each other (no pings between networks)

What is wrong ?

JP

Let me get this straight.

From the host you are configuring, CAN you ping in and out to/from other
hosts on the correct network?

If yes, then you’ve accomplished most of what you want.
Are you now saying that you can’t forward outside packets through this
gateway (from one net to the other)?
If so, you must add the routes to the other hosts on those networks.

OR . . . are you trying to supernet? (e.g. make 199.26.26 & 199.26.27 one
bigger network)
If so, then you must upgrade to TCP/IP 5.0. 4.25 does not support
supernetting.

“Jaroslaw Piwowarczyk” <jp@csi.net.pl> wrote in message
news:bf8vbt$lqj$1@inn.qnx.com

You are telling ifconfig that both of these adapters are on the same
network. e.g. 199.26.26.X

Is that what you meant to do?

Yes.

I’m not sure that’s allowed.

You probably right so I changed to following and find other problem:

That’s what I do and what I get:

  1. The network interfaces are configured properly QNX fleet network works
    fine through both Ethernet interfaces.
  2. One Ethernet is en1 and second is en4
  3. I run Socket -d forward node6!
  4. I run ifconfig en1 199.26.26.146 up (or ifconfig en1 siec1 up) and it
    is fine and works properly.
  5. I run ifconfig en4 199.26.27.146 up (or ifconfig en1 siec4 up) and it
    is
    fine now!

BUT
I have added following lines

route add 199.26.26 199.26.26.146
route add 199.26.27 199.26.27.146

but both networks can not see each other (no pings between networks)

What is wrong ?

JP

Jaroslaw Piwowarczyk <jp@csi.net.pl> wrote in message
news:bf8vbt$lqj$1@inn.qnx.com

That’s what I do and what I get:

  1. The network interfaces are configured properly QNX fleet network works
    fine through both Ethernet interfaces.
  2. One Ethernet is en1 and second is en4
  3. I run Socket -d forward node6!
  4. I run ifconfig en1 199.26.26.146 up (or ifconfig en1 siec1 up) and it
    is fine and works properly.
  5. I run ifconfig en4 199.26.27.146 up (or ifconfig en1 siec4 up) and it
    is
    fine now!

BUT
I have added following lines

route add 199.26.26 199.26.26.146
route add 199.26.27 199.26.27.146

but both networks can not see each other (no pings between networks)

What is wrong ?

On every node (other then node6) who’s IP is 199.26.26.X, you need to do
route add 199.26.27 199.26.26.146
(any packet want to go to 199.26.27 network, send them to 199.26.26.146)

On every node (other then node 6) who’s IP is 199.26.27.X, you need to do
route add 199.26.26 199.26.27.146

Or, you can use the default route like:

route add default 199.26.26.146 (for nodes on network 199.26.26.X)
route add default 199.26.27.146 (for nodes on network 199.26.27.X)

-xtang