Networking Forums

Networking Forums > Computer Networking > Linux Networking > disable short route via localhost on dual network interface

Reply
Thread Tools Display Modes

disable short route via localhost on dual network interface

 
 
Andreas Wassatsch
Guest
Posts: n/a

 
      11-22-2007, 07:07 AM
Dear all,

for performance test purposes i want to disable the short route via
localhost on a dual network interface

i have two 10G network devices eth0 ( 192.168.1.1) and eth1(
192.168.1.2) on a linux host.

if i try to send packets from eth0 to eth1 then the network stack route
these packets over localhost and i doesn't see any traffic over the
external links

Now my question is: How can i disable these local routing via the lo
local network device to see the traffic over the real external network
connection ?

Any ideas ?

Regards,

Andreas
 
Reply With Quote
 
 
 
 
Jeroen Geilman
Guest
Posts: n/a

 
      11-23-2007, 06:06 PM
Andreas Wassatsch wrote:
> Dear all,
>
> for performance test purposes i want to disable the short route via
> localhost on a dual network interface
>
> i have two 10G network devices eth0 ( 192.168.1.1) and eth1(
> 192.168.1.2) on a linux host.
>
> if i try to send packets from eth0 to eth1 then the network stack route
> these packets over localhost and i doesn't see any traffic over the
> external links
>
> Now my question is: How can i disable these local routing via the lo
> local network device to see the traffic over the real external network
> connection ?


You can't, really.

Why not connect a client machine and run a benchmark program from that ?
You'd need 2 client machines, with the 10G box routing between them.

As it stands, it won't route anything, since they're on the same subnet,
but I fail to see how this would be used in production anyway.


J.
 
Reply With Quote
 
Andreas Wassatsch
Guest
Posts: n/a

 
      11-26-2007, 05:27 AM
Dear all,


with route i don't mean ip routing, its more like steer the linux
network driver to use the external link for these kind of connection
instead of the short "link" via the internal network stack.

at the moment i have unfortunately only one dual 10g adapter card in one
machine and a switch with also two 10g interfaces.

i want to test the possible troughput of these dual 10g pc interface.

surely i can use a "farm" of 1g clients to generate the test traffic for
the 10g interface packeticed via the switch, but i think it should be
there a option in the network driver to use the dual 10g card for these
artificial test



Jeroen Geilman wrote:
> Andreas Wassatsch wrote:
>> Dear all,
>>
>> for performance test purposes i want to disable the short route via
>> localhost on a dual network interface
>>
>> i have two 10G network devices eth0 ( 192.168.1.1) and eth1(
>> 192.168.1.2) on a linux host.
>>
>> if i try to send packets from eth0 to eth1 then the network stack route
>> these packets over localhost and i doesn't see any traffic over the
>> external links
>>
>> Now my question is: How can i disable these local routing via the lo
>> local network device to see the traffic over the real external network
>> connection ?

>
> You can't, really.
>
> Why not connect a client machine and run a benchmark program from that ?
> You'd need 2 client machines, with the 10G box routing between them.
>
> As it stands, it won't route anything, since they're on the same subnet,
> but I fail to see how this would be used in production anyway.
>
>
> J.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No route for localhost? jprudent Linux Networking 3 02-23-2011 09:43 AM
I am in need of a netsh script that will disable the "Local Area Connection" interface then re-enable that same interface. Spin Windows Networking 3 11-03-2005 12:58 AM
No route to localhost vininche@gmail.com Linux Networking 7 06-08-2005 08:05 AM
Odd dual interface issue Ryan Lovett Linux Networking 2 10-18-2004 09:52 PM
disable ipforwarding for one route tiggr Linux Networking 2 09-29-2003 02:01 AM



1 2 3 4 5 6 7 8 9 10 11