From owner-freebsd-net@FreeBSD.ORG Sun Aug 14 22:12:34 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11E3E16A41F for ; Sun, 14 Aug 2005 22:12:34 +0000 (GMT) (envelope-from neon777@gmail.com) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7994843D45 for ; Sun, 14 Aug 2005 22:12:33 +0000 (GMT) (envelope-from neon777@gmail.com) Received: by nproxy.gmail.com with SMTP id c2so160060nfe for ; Sun, 14 Aug 2005 15:12:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Qc29aaGSmYRAWbkq2OIMFvEGUNvjebY0mfJZedvWgvCK7Qx4bgMtOL3/EtJNLgg6CG3R4F3/j1R0/X8m+VOYcB5xVBcJjax1s+h9kt840UoatHq12P8FUMdN+6MPdl6xmOf62i5FGKKSuaTqmySN2NyB3rJ946yHbw3QhInBnxQ= Received: by 10.48.143.1 with SMTP id q1mr79007nfd; Sun, 14 Aug 2005 15:12:31 -0700 (PDT) Received: by 10.48.249.20 with HTTP; Sun, 14 Aug 2005 15:12:31 -0700 (PDT) Message-ID: <46a3a47205081415122806a653@mail.gmail.com> Date: Mon, 15 Aug 2005 01:12:31 +0300 From: noname To: freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: why ng_bridge does not like DHCP? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Aug 2005 22:12:34 -0000 freebsd 5.4 stable. xl0 is connected via ng_bridge to ngeth0 in this way: [root@asd:~]# ifconfig xl0 up [root@asd:~]# ngctl mkpeer . eiface hook ether [root@asd:~]# ifconfig ngeth0 up [root@asd:~]# ngctl mkpeer xl0: bridge lower link0 [root@asd:~]# ngctl name xl0:lower mybridge [root@asd:~]# ngctl connect ngeth0: mybridge: lower link1 [root@asd:~]# ngctl connect ngeth0: mybridge: upper link2 [root@asd:~]# ngctl msg xl0: setautosrc 0 [root@asd:~]# ngctl msg xl0: setpromisc 1 [root@asd:~]# ifconfig ngeth0 ether 00:12:12:12:12:12 [root@asd:~]# dhclient ngeth0 using tcpdump I can see dhcp request leaving from ngeth0, passing through xl0, dhcp reply comes back through xl0 but it doesn't reach ngeth0. Why? If I give ip-address with ifconfig, everything works fine. Also getting ip with dhcp to xl0, without touching netgraph works fine. Any clues?