I am trying to set up Ethernet test fixtures for several different types of equipment. I am using Perl and had a couple of problems that Perl Monks helped me fix (thank you) in socket communication problems. I still have a problem that seems to be related to the router inside Linux.

For a sample equipment configuration assume I have a 8-port switch to test. Assume I have 2 boxes with a quad NIC card in each. Assume I use 8 patch cables to connect the 8 switch ports to the 8 ports on the two quad NIC cards. Finally, both boxes use code based upon the sample in the above link to run traffic in and out of each of the switch’s 8 ports.

Here is the problem. Linux seems to be routing all my “parallel path” traffic to the default “eth” port. Thus, I am only using one port even though my code has an assortment of IP addresses matching what I assigned to the various cards. Is there some way (ideally within Perl) that I can overcome this problem? I have made many attempts with “route add”, “route del”, “ip route add x.x.x.x/y via z.z.z.z” and others. I just want my Perl code to send and receive transmissions over the eth ports I specify, not the eth ports that provide the best route.

I am running Ubuntu 6.10 Desktop on the boxes.

Thank you,
Bruce

20070208 Janitored by Corion: Localized link


In reply to Can I Disable Router Optimization? by Bruce32903

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.