Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Apr 2018 09:39:14 +0200
From:      Harry Schmalzbauer <freebsd@omnilan.de>
To:        Paul Esson <paul.esson@redstor.com>
Cc:        "freebsd-virtualization@freebsd.org" <freebsd-virtualization@freebsd.org>
Subject:   Re: bhyve networking
Message-ID:  <5AE18222.6000900@omnilan.de>
In-Reply-To: <HE1PR0102MB2588F1B078AB3A5D89DD6D1A9E8F0@HE1PR0102MB2588.eurprd01.prod.exchangelabs.com>
References:  <HE1PR0102MB25884F467EE8019D3D298E419E8F0@HE1PR0102MB2588.eurprd01.prod.exchangelabs.com>, <201804252033.w3PKXv8M097827@pdx.rh.CN85.dnsmgr.net> <HE1PR0102MB2588F1B078AB3A5D89DD6D1A9E8F0@HE1PR0102MB2588.eurprd01.prod.exchangelabs.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Bezüglich Paul Esson's Nachricht vom 25.04.2018 23:15 (localtime):
> Hi Rod,
> Can you share a command line for that?  I also tried presenting an
> access port from my switch on a specific VLAN - not trimmed.  Would I
> still have to tag the interface on the guest in that scenario?

Hmm, I lost the overview – I'm not familar with 'vm'.
To filter a specific id (tag/untag frames) inside the guest:
'ifconfig vlan[N] create vlandev vtnet0 vlan nnnn'
'ifconfig vlan[N] create vlandev vtnet0 vlan nnnm'

At boot time by rc(8):
vlans_vtnet0="vtnet_dmz vtnet_dmz2"
create_args_vtnet_dmz="vlan nnnn"
create_args_vtnet_dmz2="vlan nnnm"

[To optionally also rename the vlan interfaces after manually creating
cloned vlan interfaces, which is what the rc.conf(5) example does:
ifconfig rename vlan0 vtnet_dmz; ifconfig rename vlan0 vtnet_dmz2; ]

Hth,

-harry





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5AE18222.6000900>