one physical interface -> n virtual interfaces

Paul A. Procacci pprocacci at datapipe.com
Tue Oct 16 22:03:46 UTC 2012


On Tue, Oct 16, 2012 at 10:35:55PM +0200, Mariano Cediel wrote:
> How do I create, from a physical interface, n virtual interfaces, but
> all effects are real, their MAC different, on which we can do
> individually NAT, etc, etc.?
>
> I need one external interface has 2 public IPs, and I'll do every NAT
> over every <interface> (with ipfw and divert)
> individually (each of them has its own gateway)
>
> A little help to start researching .....
> Greetings.

http://freebsd.1045724.n5.nabble.com/Virtual-Network-Interface-Card-td4005109.html

The above was posted in late 2010.  It has one example of creating vitual interfaces using the netgraph module.  3rd post from the top.

I'm not entirely sure if this is the current _correct_ way, but I imagine is still accurate and can be used to get you started.

~Paul

________________________________

This message may contain confidential or privileged information. If you are not the intended recipient, please advise us immediately and delete this message. See http://www.datapipe.com/legal/email_disclaimer/ for further information on confidentiality and the risks of non-secure electronic communication. If you cannot access these links, please notify us by reply message and we will send the contents to you.


More information about the freebsd-net mailing list