Port based VLAN
m.seaman at infracaninophile.co.uk
Wed Dec 22 14:18:32 UTC 2010
On 22/12/2010 11:15, Indexer wrote:
> I plan to make a FreeBSD based router sometime soon. I would like to be able to do port based vlanning on the router, so that a client computer that plugs into that socket is "dumb" to the vlans' existance.
> em0 - untagged
> em1 - vlan 1
> em2 - vlan 2
> Is what i want to achieve (as a simple example). This way i can use unmanaged switches on em2, and all clients behind that are to the router on vlan2
> How does one go about this on freebsd.
ifconfig_em1="up -vlanhwtag" # You may or may not want hwtag -- try both
The em0 i/f should be configured as usual. This will create virtual
interfaces vlan1 and vlan2 which you can apply firewall rules to etc.
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matthew at infracaninophile.co.uk Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 267 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20101222/baa7c6d1/signature.pgp
More information about the freebsd-questions