Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Leonardo Rodrigues Magalhães" <leolistas@solutti.com.br>
To: Michele Petrazzo - Unipex srl <michele.petrazzo@unipex.it>
Cc: netfilter@vger.kernel.org
Subject: Re: More ethernet port same ip address
Date: Sat, 19 Jul 2008 11:01:07 -0300	[thread overview]
Message-ID: <4881F3A3.3080502@solutti.com.br> (raw)
In-Reply-To: <48819901.6030604@unipex.it>



Michele Petrazzo - Unipex srl escreveu:
> Hi all,
> this is a very strange ask (I don't find any other on the net)...
>
> I need to setup a linux box with more than one ethernet ports and every
> one must have the same ip address. I, of course :), already tried to 
> do it
> with a lot of solutions that linux offer (iptables+mark+ip route, 
> bonding,
> a vlan every port), but with the same result... Packet come into
> the right port but go out through the "last" that I have set, so it will
> never arrive. 

    have you tried setting a bridge interface ???

    do NOT give ip address to the real ethernet interfaces (ethX) ..... 
simply get them 'up' and them bring a bridge interface up, with the ip 
address you need, and 'add' all the physical interfaces on the bridge 
interface.

    that should do the job easily.

    and then get iptables rules on the bridge (probably br0) interface 
.... and there you have it !

-- 


	Atenciosamente / Sincerily,
	Leonardo Rodrigues
	Solutti Tecnologia
	http://www.solutti.com.br

	Minha armadilha de SPAM, NÃO mandem email
	gertrudes@solutti.com.br
	My SPAMTRAP, do not email it





  parent reply	other threads:[~2008-07-19 14:01 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-19  7:34 More ethernet port same ip address Michele Petrazzo - Unipex srl
2008-07-19  8:18 ` Bernhard Bock
2008-07-19 13:46   ` Michele Petrazzo - Unipex srl
2008-07-19 14:01 ` Leonardo Rodrigues Magalhães [this message]
2008-07-19 14:13   ` Jan Engelhardt
2008-07-19 15:14     ` Michele Petrazzo - Unipex srl
2008-07-19 15:42       ` Jan Engelhardt
2008-07-19 16:05         ` Michele Petrazzo - Unipex srl
2008-07-19 16:13           ` Jan Engelhardt
2008-07-19 16:17         ` Leonardo Rodrigues Magalhães
2008-07-19 16:34           ` Jan Engelhardt
2008-07-19 16:45             ` Leonardo Rodrigues Magalhães
2008-07-19 15:11   ` Michele Petrazzo - Unipex srl
2008-07-20 23:41 ` Grant Taylor
2008-07-21  7:00   ` Anatoly Muliarski
2008-07-21 14:08     ` Grant Taylor
2008-07-21 18:11 ` Michele Petrazzo - Unipex srl
2008-07-21 19:46   ` Grant Taylor
2008-07-22 13:03   ` Anatoly Muliarski
2008-07-22 15:06     ` Grant Taylor
2008-07-22 15:20       ` Jan Engelhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4881F3A3.3080502@solutti.com.br \
    --to=leolistas@solutti.com.br \
    --cc=michele.petrazzo@unipex.it \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox