Re: Multiple MAC on a single (physical) interface

2009-02-06 Thread Frédéric Perrin
Le Jeudi 5 à 10:05, Nikos Vassiliadis a écrit : Frédéric Perrin wrote: I need to be able to send and receive using several MAC addresses, as if I had several NIC (which I of course don't have). [...] Yes, you could use a netgraph bridge

Re: Multiple MAC on a single (physical) interface

2009-02-06 Thread Nikos Vassiliadis
Frédéric Perrin wrote: Le Jeudi 5 à 10:05, Nikos Vassiliadis a écrit : Frédéric Perrin wrote: I need to be able to send and receive using several MAC addresses, as if I had several NIC (which I of course don't have). [...] Yes, you could

Re: Multiple MAC on a single (physical) interface

2009-02-06 Thread Frédéric Perrin
Le Vendredi 6 à 15:51, Nikos Vassiliadis a écrit : FreeBSD will then know that network 10.0.0.0/24 is attached to fxp0 and will use fxp0's IP and MAC address to do the ARP query... So, in short, if you use such a setup: fxp0 10.0.0.1/24 ether 00:00:00:01:01:01 ngeth0 10.0.0.2/32 ether

Re: Multiple MAC on a single (physical) interface

2009-02-05 Thread Nikos Vassiliadis
Frédéric Perrin wrote: Hello, I live in a network where it is pretty much assumed that one machine == one MAC address == one IP address. Therefore, in order to play with jails, some having of course access to the network, I need to be able to send and receive using several MAC addresses, as if

Multiple MAC on a single (physical) interface

2009-02-04 Thread Frédéric Perrin
Hello, I live in a network where it is pretty much assumed that one machine == one MAC address == one IP address. Therefore, in order to play with jails, some having of course access to the network, I need to be able to send and receive using several MAC addresses, as if I had several NIC (which

Re: Multiple MAC on a single (physical) interface

2009-02-04 Thread Glen Barber
On Wed, Feb 4, 2009 at 1:07 PM, Frédéric Perrin frederic.per...@resel.fr wrote: [snip] It seems quite a convoluted setup (especially having to make a tunnel from tap0 to tap1 ... tapn). Is there an easier way ? Comments ? Forgive me if I am misunderstanding what you are trying to accomplish,

Re: Multiple MAC on a single (physical) interface

2009-02-04 Thread Frédéric Perrin
Le Mercredi 4 à 19:36, Glen Barber a écrit : Forgive me if I am misunderstanding what you are trying to accomplish, but it appears you just want to have several jails with sevaral IP addresses. I'm not clear on why you mentioned MAC, as from what I see, is irrelevant. I want each jail to have

Re: Multiple MAC on a single (physical) interface

2009-02-04 Thread Glen Barber
A bit of searching for freebsd rc.conf ifconfig mac address brought me to this, in a previous mailing list thread. Not sure if this works with 'alias'ed interfaces, but worth a shot, I suppose. ifconfig_em0=inet 1.2.3.4 netmask 255.0.0.0 ether aa:bb:cc:dd:ee:ff -- Glen Barber

Re: Multiple MAC on a single (physical) interface

2009-02-04 Thread Frédéric Perrin
Le Mercredi 4 à 23:26, Glen Barber a écrit : A bit of searching for freebsd rc.conf ifconfig mac address brought me to this, in a previous mailing list thread. Not sure if this works with 'alias'ed interfaces, but worth a shot, I suppose. ifconfig_em0=inet 1.2.3.4 netmask 255.0.0.0 ether

Re: Multiple MAC on a single (physical) interface

2009-02-04 Thread Glen Barber
On Wed, Feb 4, 2009 at 6:20 PM, Frédéric Perrin frederic.per...@resel.fr wrote: ifconfig_em0=inet 1.2.3.4/8 ifconfig_em0_alias0=ether a:b:c:d:e:f Well, I was thinking: ifconfig_em0=inet 1.2.3.4 ifconfig_em0_alias0=1.2.3.5 ether xx:xx:xx:xx:xx -- Glen Barber