FreeBSD - need help making vlan for multi-port trunk..
*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
FreeBSD - need help making vlan for multi-port trunk..
I'm having a hard time putting together a vlan for a multi-port trunk... I'm new to FreeBSD & not entirely familiar with config file locations. I've gone through a few online mini-vlan FAQs, but I'm getting stuck in a few places.
So far...
I've made a new kernel with "device vlan" per 'man vlan'
I've added if_vlan_load="YES" to /boot/loader.conf per 'man vlan'
now I'm not too sure what to do... the mini-faq was pretty unclear & the others I've found are out of date.
I have 6 NICs on this computer. 2 on the mobo & 4 on a PCIx car. I want to use the 4 on the PCIx card for the trunk. They show up as interfaces em2-em5. I have all of them configured to the same IP, but I don't know how to group them as a vlan.
vlan/802.1q is not the correct solution for link aggregation ("trunking" for high throughput). 802.3ad is the correct protocol & is not supported under FreeBSD as yet.
OpenBSD has something called "trunk" that is supposed to handle it. NetBSD has a driver called "agr" that does it - the agr driver is a kernel module so it requires a kernel recompile.
OpenBSD wouldn't install on my system & NetBSD doesn't have vlan in the release snapshot of the kernel source. I attempted to get the current (cvs) source tree, but couldn't get the kernel to compile with the non-release snapshot (made several attempts - being new to BSD didn't help), so I ditched BSD & went back to Linux. Deadlines are a bitch.
FYI: Under Linux, this is all pretty easy. There's a kernel module called "bonding" that's built into the kernel on most newer distros. You load up the modules in 802.3ad mode by:
modprobe bonding mode=4 miimon=100
then you need a program called ifenslave (which was availble through my default apt-source in Ubuntu). at that point, it's just:
ifconfig bond0 <ip address> up
ifenslave bond0 eth0 eth1 eth2....
Evidently, the setup under NetBSD is similarly simple once you get the agr driver running.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.