Re: [fw-wiz] Multiple MAC address on one interface
From: Harald Welte (laforge_at_gnumonks.org)
To: email@example.com Date: Sat, 10 Jul 2004 22:11:51 +0200
On Fri, Jul 09, 2004 at 09:16:31PM -0400, firstname.lastname@example.org wrote:
> So, is there some cheap way to have one NIC
> respond to multiple MAC addresses? I'm most comfortable with Linux, but
> if I needed to use BSD or something else I'd be willing to do that.
Unfortunately this is not supported straight away by a stock kernel. So
there are two ways
1) use layer2 source-nat of the ebtables bridging tools (didn't test it
2) add the 2nd, 3rd, ... mac addresses to the multicast filter of your
NIC. Even though the multicast filters are thought for multicast MAC
addresses, they work fine with unicast MAC addresses, too ;) However,
I am not aware of any userspace tools to do so... the function inside
the kernel is dev_mc_add().
This remembers me to that fact that I always wanted to implement
something like 'real' alias devices... where eth0:0 can have a different
mac address than eth0:1 (which is not the case right now).
-- - Harald Welte <email@example.com> http://www.gnumonks.org/ ============================================================================ Programming is like sex: One mistake and you have to support it your lifetime
firewall-wizards mailing list
- application/pgp-signature attachment: Digital signature