LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 06-08-2006, 01:41 PM   #1
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
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.

This is a brand new install of FreeBSD 6.1

Suggestions?
 
Old 06-13-2006, 01:48 PM   #2
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
In case anyone else comes across this....

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.

Last edited by BrianK; 06-13-2006 at 01:52 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Making a file server - questions: multi-port NICs, switches, etc BrianK Linux - Hardware 0 05-22-2006 08:01 PM
Making new multi-layered directories (Perl/bash) R00ts Programming 2 04-17-2006 05:11 PM
Linux VLAN Trunk? teamchachi Linux - Networking 1 07-28-2005 11:50 AM
trunk port in switch czezz Linux - Hardware 1 07-21-2005 02:34 AM
Making a linux multi-media station scoops98 Linux - General 2 06-14-2005 12:18 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 09:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration