From owner-freebsd-net@FreeBSD.ORG Mon Mar 13 19:29:55 2006 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 6DBCB16A41F for ; Mon, 13 Mar 2006 19:29:55 +0000 (UTC) (envelope-from julian@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CDB143D6D for ; Mon, 13 Mar 2006 19:29:51 +0000 (GMT) (envelope-from julian@elischer.org) Received: from unknown (HELO [10.251.17.229]) ([10.251.17.229]) by a50.ironport.com with ESMTP; 13 Mar 2006 11:29:52 -0800 Message-ID: <4415C82E.5030209@elischer.org> Date: Mon, 13 Mar 2006 11:29:50 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.11) Gecko/20050727 X-Accept-Language: en-us, en MIME-Version: 1.0 To: sheeda References: <88e4c6d9ae3b630849eaef06bfb8fb0b@talha.com> In-Reply-To: <88e4c6d9ae3b630849eaef06bfb8fb0b@talha.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, talha@talha.com Subject: Re: netgraph issue 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: Mon, 13 Mar 2006 19:29:55 -0000 sheeda wrote: >hello everyone, > >i am new to netgraph and have been experimenting with few very basic configurations and facing some issues. > >i have got 2 machines, A & C, connected via third machine B with dual nics, with everything in same subnet. > >A <-----> B <-----> C > >i have used the bridge script in /usr/share/examples/netgraph and i am successfully able to ping between A and C. > >i did some experiments and getting weird results: > >1. i cleaned up the tee node and compiled a pipe node by removing the lefttoright and righttoleft hooks. once i load the ng_pipe.ko module and place it between the two ether nodes on lower hooks, i can't ping between A and C. i even switched the 2 interfaces to promisc mode and disabled the mac auto source thing through the msg command. > >(lnc0)-----(pipe)-----(lnc1) > >the ping strangely starts working if i start and stop the bridge script and then connect my pipe node, even after unloading the ng_bridge module. > > I tho9ught that the the bridge node sent some contol messages to the interfaces it is connected to but looking quickly at it, I can;t see that now. (?).. why not start with a bridge node and simplfy that? then you could see when it breaks :-) >2. i suspected some issue with my pipe netgraph node, therefore connected the two ether nodes directly via lower hooks and had the same issue. the A & C starts communicating again once i start and stop the bridge script and then connect the lower hooks and set the promisious modes. > >(lnc0)----------------(lnc1) > lower > >all my 3 machines are freebsd release 3 in vmware. i have even tried setting up the static arps on A and C but it makes no difference. > >another interesting thing i found was that if i shutdown my pipe node, the two ether nodes connect directly on lower hooks and the ping continues to work. > >please let me know if this is all the default behaviour or if i am missing something. > > I think we're missing something.. >thanks to everyone for their help in advance. > >regards, > >sheeda > > >_______________________________________________ >freebsd-net@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-net >To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > >