From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: Multiple MAC addresses for a single NIC using ebtables? Date: Tue, 21 Oct 2008 18:30:24 +0200 Message-ID: <48FE03A0.7060503@trash.net> References: <48FD6087.6050307@liberation.richw.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <48FD6087.6050307@liberation.richw.org> Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Rich Wales Cc: netfilter@vger.kernel.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