[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: virtual physical interface?



On Wed, May 04, 2005 at 05:03:50AM -0600, RJ45 wrote:
> hello,
> I have a em1 interface on my OpenBSD
> I Want to run dhcpd so that it can have 2 shared networks.
> 
> on my em1 I have 2 different IP one of them is set by an alias
> anyway I Am not able to run 2 different shared network on the same 
> physical interface. dhcpd gives an error.

yes.

> can I create virtual interface like it is in linux (eth0:1 eth0:2 eth:3 
> etc..) ?

you can create eth0:X interfaces all you want in linux, dhcpd will still
only run one shared network on the physical interface; eth0, as it
cannot work with interface aliases, only physical interfaces.

> is it possible in some way ?
> how to do it ?

i would assume (i've not tried this myself) that if you create two VLAN
interfaces on a single physical ethernet interface, and plug the
ethernet interface into a trunk port on a VLAN capable switch, and put
each layer3 subnet on its own layer2 VLAN, that it should work.  should
be a good learning experience either way.

-j

--
"Stewie: Now look here...  Jo-LENE. I have an army to raise and I must
 get to Managua at once. I require a window seat and an in-flight Happy
 Meal. BUT NO PICKLES. OH, GOD HELP YOU IF I FIND PICKLES."
        --Family Guy



Visit your host, monkey.org