All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Rich Wales <richw@richw.org>
Cc: netfilter@vger.kernel.org
Subject: Re: Multiple MAC addresses for a single NIC using ebtables?
Date: Tue, 21 Oct 2008 18:30:24 +0200	[thread overview]
Message-ID: <48FE03A0.7060503@trash.net> (raw)
In-Reply-To: <48FD6087.6050307@liberation.richw.org>

Rich Wales wrote:
> Hi.  I have four static IP addresses from my ISP.  I'm using a firewall
> (Shorewall/Ubuntu) to connect my home LAN to the Internet, and various
> of my home machines are associated with various external IP addresses.
> 
> Since the firewall has only one external NIC, all external traffic uses
> a single MAC address.  This works -- but for various reasons, I would
> like to try to configure the box so that each one of my four external
> IP addresses will have its own separate MAC address.
> 
> Does anyone have a ready-made example for how to do this (presumably
> using "ebtables")?  I've been playing around with ebtables on a test
> system, but I can't seem to get all the pieces together to make this
> multi-MAC setup work.
> 
> Thanks for any help or suggestions.

The macvlan driver allows you to add virtual ethernet devices
with different mac addresses:

ip link add link eth0 [ name ] type macvlan

      parent reply	other threads:[~2008-10-21 16:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-21  4:54 Multiple MAC addresses for a single NIC using ebtables? Rich Wales
2008-10-21 15:45 ` Grant Taylor
2008-10-21 16:30 ` Patrick McHardy [this message]

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=48FE03A0.7060503@trash.net \
    --to=kaber@trash.net \
    --cc=netfilter@vger.kernel.org \
    --cc=richw@richw.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.