From owner-freebsd-questions@FreeBSD.ORG Tue Jan 16 20:52:20 2007 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 48AEF16A51C for ; Tue, 16 Jan 2007 20:52:20 +0000 (UTC) (envelope-from danm@prime.gushi.org) Received: from prime.gushi.org (prime.gushi.org [72.9.101.130]) by mx1.freebsd.org (Postfix) with ESMTP id E8E8F13C45D for ; Tue, 16 Jan 2007 20:52:19 +0000 (UTC) (envelope-from danm@prime.gushi.org) Received: from prime.gushi.org (localhost [127.0.0.1]) by prime.gushi.org (8.13.8/8.13.8) with ESMTP id l0GKqIba043730 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Jan 2007 15:52:18 -0500 (EST) (envelope-from danm@prime.gushi.org) DKIM-Signature: a=rsa-sha1; c=simple/simple; d=prime.gushi.org; s=primegushiorg; t=1168980738; bh=CB86BBRdKx4yQTcC4igdDcx1x/s=; h=DomainKey-Signature: Received:Date:From:To:cc:Subject:Message-ID:MIME-Version: Content-Type; b=s5j4a0QkQQPD9XbrJv10b+ZSdghYGFQ1HBTiVPtMcXGtgeOtRnG mBVnhtsYrsD2aRTikzniOWsg58CWYeCu3ZQ== DomainKey-Signature: a=rsa-sha1; s=primegushiorg; d=prime.gushi.org; c=nofws; q=dns; h=received:date:from:to:cc:subject:message-id:mime-version:content-type; b=qQrTmyExS6z2IZjaI+vs+uv/0pULcrjRrcEN0wdQZ1+38cjDenOT0ch8tRsRXwOjS 652hmjfvYumLR+T1ttTMA== Received: (from danm@localhost) by prime.gushi.org (8.13.8/8.13.6/Submit) id l0GKqIGW043728; Tue, 16 Jan 2007 15:52:18 -0500 (EST) (envelope-from danm) Date: Tue, 16 Jan 2007 15:52:17 -0500 (EST) From: "Dan Mahoney, System Admin" To: questions@freebsd.org Message-ID: <20070116150757.A95855@prime.gushi.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: rizzo@icir.org Subject: Dummynet with vlans X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jan 2007 20:52:20 -0000 Hey all, Note: I'm cc'ing Luigi Rizzo because, well, he's authoritative. This is NOT the same issue I asked about a couple years ago (which related to vlans, and bridging -- there is no bridge in play here). Anyway... We have a machine playing vlan aggregator. Gigabit nics (intels). em0 is the uplink to the core router. Straight gigabit link over copper to a 6500-series cisco switch (speaks OSPF using quagga). em1 is the downlink (over fiber) to the switch, and has no interface on it, but it IS a parent interface to 48 "vlan" entries, numbered vlan101 through vlan148 (where each is relative to a switch port). This setup works fine. Each vlan entry has it's own /29 IP address. That said, what is the "proper" syntax for adding dummynet rules to this? For example, to constrain one of those ports to (say) 50 megabits. I'm using pipe 440 config bw 50mbit/s pipe 441 config bw 50mbit/s add 44000 pipe 440 ip from any to any recv vlan144 in add 44001 pipe 441 ip from any to any xmit vlan144 out But this seems not to work. Do I need to define queues as well? The manpage cites examples similar to this, but I can't find any definitive reference. Should I just not use the vlan interfaces, and instead go by IP on the "outside" interface? -Dan -- "It's buttery kettle ASS corn!" -Dan Mahoney, Ezzi Computers, 10/22/03, 2AM --------Dan Mahoney-------- Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC ICQ: 13735144 AIM: LarpGM Site: http://www.gushi.org ---------------------------