From owner-freebsd-questions@FreeBSD.ORG Sat Sep 10 07:48:40 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 06D7E16A41F for ; Sat, 10 Sep 2005 07:48:40 +0000 (GMT) (envelope-from chengjin@cs.caltech.edu) Received: from swordfish.cs.caltech.edu (swordfish.cs.caltech.edu [131.215.44.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id C118A43D48 for ; Sat, 10 Sep 2005 07:48:39 +0000 (GMT) (envelope-from chengjin@cs.caltech.edu) Received: from orchestra.cs.caltech.edu (orchestra.cs.caltech.edu [131.215.44.20]) by swordfish.cs.caltech.edu (Postfix) with ESMTP id 6134DDF326 for ; Sat, 10 Sep 2005 00:48:38 -0700 (PDT) Received: by orchestra.cs.caltech.edu (Postfix, from userid 20269) id 92F6B103BB3; Sat, 10 Sep 2005 00:48:34 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by orchestra.cs.caltech.edu (Postfix) with ESMTP id 20B21103B9D for ; Sat, 10 Sep 2005 00:48:34 -0700 (PDT) Date: Sat, 10 Sep 2005 00:48:34 -0700 (PDT) From: Cheng Jin To: freebsd-questions@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: ipfw out xmit trouble 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: Sat, 10 Sep 2005 07:48:40 -0000 Hi, I have an ethernet bridging [xl0 fxp0] set up like the following outside world --- [xl0 fxp0] --- test machine xl0 and fxp0 are the two interfaces on the bridging machine. xl0 has an IP address (could this be the source of the problem?), but fxp0 doesnt. I would like to simulate a DSL line on the xl0 side (for packets arriving and leaving xl0). The commands that I use are: sysctl -w net.link.ether.bridge_ipfw=1 sysctl -w net.link.ether.ipfw=1 # not sure whether this is needed ipfw -f flush ipfw -f pipe flush ipfw add 65534 allow all from any to any # just so i can login ipfw add 65533 pipe 1 all from any to any out xmit xl0 ipfw add 65533 pipe 2 all from any to any in recv xl0 ipfw pipe 1 config delay 20 bw 256K queue 50 ipfw pipe 2 config delay 13 bw 3M queue 50 pipe 2 works fine, but I couldn't get pipe 1 to work. ping to and from the test machine shows a delay about 14 ms, i.e. from the "in recv xl0" part. If i change the configuration for pipe 1 to "in recv fxp0", it would then work, but I think packets would be queued inside ether_input/bdg_forward on the fxp0 side, rather than ether_output_frame on the xl0 side. Even though I have stared at it for the longest time, I can't see anything wrong with pipe 1. Any help would be greatly appreciated! Cheng -- @626 395 8820