From owner-freebsd-questions@FreeBSD.ORG Thu Jan 22 01:49:11 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3745B16A4CE for ; Thu, 22 Jan 2004 01:49:11 -0800 (PST) Received: from server.rucus.ru.ac.za (server.rucus.ru.ac.za [146.231.115.1]) by mx1.FreeBSD.org (Postfix) with SMTP id 90C2D43D53 for ; Thu, 22 Jan 2004 01:48:58 -0800 (PST) (envelope-from guy@rucus.ru.ac.za) Received: (qmail 89006 invoked from network); 22 Jan 2004 09:48:49 -0000 Received: from shell-em0.rucus.ru.ac.za (guy@10.0.0.1) by server-em0.rucus.ru.ac.za with QMQP; 22 Jan 2004 09:48:49 -0000 Date: Thu, 22 Jan 2004 11:48:49 +0200 From: Guy Antony Halse To: freebsd-questions@freebsd.org Message-ID: <20040122094849.GA7884@rucus.ru.ac.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: DHCP and multiple vlans X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jan 2004 09:49:11 -0000 I'm trying to configure a FreeBSD 5.1-RELEASE system to act as the default gateway for several virtual lans. I've got two NICs in the box, one which supplies the uplink, and one which has about 40 vlan(4) vlans on it. I was trying to run isc-dhcp3's dhcrelay to relay DHCP messages to our DHCP server when I ran into a problem. Only the first ten vlans (vlan0 through vlan9) are serviced by dhcrelay. I originally thought that this was a dhcrelay limitation, so I tried using the wide-dhcp relay as well. The same problem occurs, but with a useful error message if I try and configure more than ten vlans: root@worm:~# relay -d vlan1 vlan2 vlan3 vlan4 vlan5 vlan6 vlan7 vlan8 vlan9 ^C root@worm:~# relay -d vlan1 vlan2 vlan3 vlan4 vlan5 vlan6 vlan7 vlan8 vlan9 vlan10 relay[15320]: can't open bpf in open_if() root@worm:~# It appears to me that there is a limit of ten bpf devices somewhere. This is backed up by what I see in dhcrelay. So the question is how do I overcome this limitation? In FreeBSD 4.x you used to specify the number of BPF devices in the kernel configuration pseudo-device line. That doesn't appear to be the case now. I tried creating more BPF devices in /dev - I now have 80 /dev/bpf* entries, but that didn't help. Any assistance would be appreciated. - Guy -- Systems Manager, IT Division, Rhodes University, Grahamstown, South Africa Email: G.Halse@ru.ac.za Web: http://mombe.org/ IRC: rm-rf@irc.zanet.net *** ANSI Standard Disclaimer *** J.A.P.H