Networking Forums

Networking Forums > Computer Networking > Linux Networking > eth1 -> eth2

Reply
 
 
barcaroller
Guest
Posts: n/a

 
      05-16-2009, 05:53 PM

I have a Linux box with three network interfaces: eth0, eth1, and eth2. I
would like the output of eth1 to acts as an input to eth2. To accomplish, I
simply connected a cable from the eth1 to eth2.

However, when I send traffic from eth1 (using 'tcpreplay -i eth1'), I get
nothing at eth2 (using 'tcpdump -i eth2').

To simplify matters, I brought iptables down (using 'service iptables stop')
but that didn't solve the problem. Does anyone know what else I need to do
to get this simple setup working?



 
Reply With Quote
 
 
 
 
Allen Kistler
Guest
Posts: n/a

 
      05-16-2009, 06:31 PM
barcaroller wrote:
> I have a Linux box with three network interfaces: eth0, eth1, and eth2. I
> would like the output of eth1 to acts as an input to eth2. To accomplish, I
> simply connected a cable from the eth1 to eth2.
>
> However, when I send traffic from eth1 (using 'tcpreplay -i eth1'), I get
> nothing at eth2 (using 'tcpdump -i eth2').
>
> [snip]


You need to use a crossover cable because you're probably currently
using a straight-through cable. Or connect the two interfaces through a
hub or switch, just like if they were on different machines. Either way
will work.
 
Reply With Quote
 
terryc
Guest
Posts: n/a

 
      05-17-2009, 01:15 AM
On Sat, 16 May 2009 13:53:00 -0400, barcaroller wrote:

> I have a Linux box with three network interfaces: eth0, eth1, and eth2.
> I would like the output of eth1 to acts as an input to eth2. To
> accomplish, I simply connected a cable from the eth1 to eth2.


Why?
If you told people exactly what you are attempting to do and something
about the ethernet wiring, you will get a better answer.
 
Reply With Quote
 
Antoine EMERIT
Guest
Posts: n/a

 
      06-01-2009, 04:59 PM
Hi,

"barcaroller" <(E-Mail Removed)> écrivait
news:gumulk$2ak$(E-Mail Removed):

>
> I have a Linux box with three network interfaces: eth0, eth1, and
> eth2. I would like the output of eth1 to acts as an input to eth2. To
> accomplish, I simply connected a cable from the eth1 to eth2.
>
> However, when I send traffic from eth1 (using 'tcpreplay -i eth1'), I
> get nothing at eth2 (using 'tcpdump -i eth2').


You are not the first to try a sych loop.

Unfortunataly the kernel know it doesn't need to send the packet throw the
network interface. It 'route' the packets directly thow the IP stack. No in
ou out traffic throw the physical network.

You should try something more subtil.

Regard
 
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
Letting postfix use eth2 franck Linux Networking 8 02-26-2011 08:48 AM
device eth2 does not seem to be present Duane Evenson Linux Networking 1 10-26-2006 01:42 AM
Error: eth2: transmit timed out bolero92@yahoo.com Linux Networking 3 08-29-2006 12:01 PM
configure eth1 Thufir Linux Networking 8 08-29-2006 11:31 AM
Eth0 and eth1 Captain Beefheart Linux Networking 7 07-22-2004 06:39 PM



1 2 3 4 5 6 7 8 9 10 11