Discussion:
Independent network for each ethernet adapter
(too old to reply)
gerotica
2011-02-04 01:07:47 UTC
Permalink
Hi everyone.

Can anyone point me a way to do this?

I have several brand new network routers I need to update firmware via
telnet. I already made a program that does that automatically. I just
connect the router to my ethernet card and it does all the job for me.
I would like to improve the system to be able to upgrade several
routers simultaneosly. Install several ethernet cards on one pc and be
able to connect one router to each one of them.
Of course, the main problem is that those routers come with the same
default ip address and subnet mask.
Is there anyway to do this? Connect several routers with same ip to
the pc, and still be able to communicate to each one?
Any idea is welcome.

Thanks in adv.
Ulrich Eckhardt
2011-02-04 08:06:54 UTC
Permalink
Post by gerotica
I have several brand new network routers I need to update firmware via
telnet. [...] several ethernet cards on one pc and be able to connect
one router to each one of them. Of course, the main problem is that
those routers come with the same default ip address and subnet mask.
Is there anyway to do this? Connect several routers with same ip to
the pc, and still be able to communicate to each one?
Generally, no, you can't have one machine with several network cards on the
same IP address. Things to try:
0. Install virtual machines and connect each of them to a real ethernet
card. This is just a vague idea, I'm not even sure if this works and is
supported, let alone by which machine.
1. If you configure your ethernet cards to have consecutive numbers in the
same subnet that the routers are by default. You could then bind() your
outgoing connection to exactly that ethernet address instead of letting the
IP-stack pick one for you. Of course, you can't use telnet that way (unless
it allows such things, which I doubt for the MS-supplied one) but would
have to write the TCP transfer code yourself.


Good luck!

Uli
--
Domino Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
gerotica
2011-02-04 14:26:41 UTC
Permalink
Post by Ulrich Eckhardt
Post by gerotica
I have several brand new network routers I need to update firmware via
telnet. [...] several ethernet cards on one pc and be able to connect
one router to each one of them. Of course, the main problem is that
those routers come with the same default ip address and subnet mask.
Is there anyway to do this? Connect several routers with same ip to
the pc, and still be able to communicate to each one?
Generally, no, you can't have one machine with several network cards on the
0. Install virtual machines and connect each of them to a real ethernet
card. This is just a vague idea, I'm not even sure if this works and is
supported, let alone by which machine.
1. If you configure your ethernet cards to have consecutive numbers in the
same subnet that the routers are by default. You could then bind() your
outgoing connection to exactly that ethernet address instead of letting the
IP-stack pick one for you. Of course, you can't use telnet that way (unless
it allows such things, which I doubt for the MS-supplied one) but would
have to write the TCP transfer code yourself.
Good luck!
Uli
--
Domino Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
Thanks Uli for your ideas. That´s exactly the ways I imagined to do
the job. I have been trying to configure Virtual PC to do it, still
unsucessful.
Binding to the IP, I´ve already did that, but in my understanding, I
can just "hear" what´s going on the wire right? I can´t bind and
manipulate the data being sent or received on that IP, am I wrong?

Anyway, thanks for your ideas. Having another person thinking that way
makes me feel like I am on the right path.
gerotica
2011-02-04 18:33:42 UTC
Permalink
Post by gerotica
Post by Ulrich Eckhardt
Post by gerotica
I have several brand new network routers I need to update firmware via
telnet. [...] several ethernet cards on one pc and be able to connect
one router to each one of them. Of course, the main problem is that
those routers come with the same default ip address and subnet mask.
Is there anyway to do this? Connect several routers with same ip to
the pc, and still be able to communicate to each one?
Generally, no, you can't have one machine with several network cards on the
0. Install virtual machines and connect each of them to a real ethernet
card. This is just a vague idea, I'm not even sure if this works and is
supported, let alone by which machine.
1. If you configure your ethernet cards to have consecutive numbers in the
same subnet that the routers are by default. You could then bind() your
outgoing connection to exactly that ethernet address instead of letting the
IP-stack pick one for you. Of course, you can't use telnet that way (unless
it allows such things, which I doubt for the MS-supplied one) but would
have to write the TCP transfer code yourself.
Good luck!
Uli
--
Domino Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
Thanks Uli for your ideas. That´s exactly the ways I imagined to do
the job. I have been trying to configure Virtual PC to do it, still
unsucessful.
Binding to the IP, I´ve already did that, but in my understanding, I
can just "hear" what´s going on the wire right? I can´t bind and
manipulate the data being sent or received on that IP, am I wrong?
Anyway, thanks for your ideas. Having another person thinking that way
makes me feel like I am on the right path.
By the way... I managed to solve this problem using Virtual PC. The
secret is to have a virtual machine for each ethernet controller you
want to use and disable, at the host os, all protocols installed for
that controller.

Thanks a lot.
Ulrich Eckhardt
2011-02-07 08:08:53 UTC
Permalink
Post by gerotica
I managed to solve this problem using Virtual PC. The
secret is to have a virtual machine for each ethernet controller you
want to use and disable, at the host os, all protocols installed for
that controller.
Congrats and thanks for the feedback!

Uli
--
Domino Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
Loading...