How to route/switch between three different networks/interface through one interface?

15 pts.
Tags:
Cisco Routers
Client server software
Networking
NIC
I am trying to setup a network where I am running a client/server test case.  In the middle, it goes through some SUT. Client                           eth0               eth1           Server [120.22.x.x/16] ---------->[Work station]<----------[120.24.x.x/16]                                                | eth2                                          [switch ]-----> [SUT]                                      ___|   |    |________________                                    |/       |/(120.26.0.1/16)       |/       (120.22.0.1/16) FastEth0 (Router ) FastEth1  (120.24.0.1/16) As you can see, the client and server are connected to the work station, at two NICs.  There are three NICs in total on the work station. eth2 is connected to a switch.  The switch is connected to each port of the Cisco router, at all three gateways: 120.22.0.1, 120.24.0.1, 120.26.0.1 The client and server HAS to be connected to the workstation, due to it is the only one that has a NIC capable of being connected to client/server. I am using the workstation to try to forward traffic from client/server through eth2 to go to router, and go through SUT, then back again through eth2. I tried setting up static routes, but it isn't working.  I must be doing something wrong.  Is this possible, to have all traffic go through one interface?  eth0/1/2 are configured with no ip address via ifconfig 0.0.0.0 up command. The problem I am having is configuring the workstation to route traffic.  All other nodes are fine.  Thanks in advance!

Answer Wiki

Thanks. We'll let you know when a new response is added.

I am going to create virtual IP from the single Ethernet card.

Discuss This Question: 6  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • CRagsdale32
    just a thought, Why not use a hub instead of the workstation? I may have missed something in there but that's what it sounds like you are doing anyways. Also, why not pout the SUT in-line between switch and workstation, If it's physically possible at least. Other questions I would have if none of the above were possible: What software are you using on the workstation? Are you just using the workstation as a router with something like PFSense or Samba Server?
    755 pointsBadges:
    report
  • T0mmy1e
    Hi CRagsdale, Thank you for your response. Essentially, I want it to act like a hub, but am unable to. There are other virtual machines on the workstation, in which the client/server uses. The workstation is the only one that has the 10gb NICs. For certain test cases, the client/server HAS to go through the router, which is why SUT is on different subnet. The workstation is running Ubuntu 10.04 Desktop. Other virtual machines exist on workstation, managed by virtualbox. I have tried bridging the three interfaces together, which semi-works, but it seems to get confused with all the DUP traffic. Is there a more elegant way of doing this, besides bridging the three together? Maybe some configuration to specifically route traffic from one interface to the other? Thanks!
    15 pointsBadges:
    report
  • petkoa
    Is routing enabled on your Ubuntu box? E.g., by setting net.ipv4.ip_forward = 1 in /etc/sysctl.conf (or wherever it should be set in Ubuntu to be persistent) You can activate routing temporarily, of course, by echo 1 > /proc/sys/net/ipv4/ip_forward Don't be confused by internet connectivity of virtual machines - they are not routed between physical interfaces, in fact they are NATted by virtualbox software. Good luck
    3,120 pointsBadges:
    report
  • Chippy088
    I am a little confused why you have the switch connect using 3 lines. Could you explain why, as I think it is a waste of 2 ports.
    4,625 pointsBadges:
    report
  • Chippy088
    whoops, that should have been - I am a little confused why you have the switch connected to the router using 3 lines. Could you explain why, as I think it is a waste of 2 ports.
    4,625 pointsBadges:
    report
  • Sixball
    You mentioned "The client and server HAS to be connected to the workstation, due to it is the only one that has a NIC capable of being connected to client/server." And the diagram shows the NICs as eth0-2. What type of physical connections are they using that is so proprietary that they cant inter-connect through the switch? You show Eth2 connected to the switch. Are eth 0 and 1 not the same type of NIC?
    8,515 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following