From owner-freebsd-questions@FreeBSD.ORG Sun Sep 27 20:49:58 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 189DC106566C for ; Sun, 27 Sep 2009 20:49:58 +0000 (UTC) (envelope-from mlobo@digiart.art.br) Received: from sv4.hmnoc.net (sv4.hmnoc.net [63.247.76.174]) by mx1.freebsd.org (Postfix) with ESMTP id D7B588FC17 for ; Sun, 27 Sep 2009 20:49:57 +0000 (UTC) Received: from [187.78.189.90] (port=52191 helo=papi.localnet) by sv4.hmnoc.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1Ms0gv-0007fZ-0B for freebsd-questions@freebsd.org; Sun, 27 Sep 2009 17:49:57 -0300 From: Mario Lobo To: freebsd-questions@freebsd.org Date: Sun, 27 Sep 2009 17:51:02 -0300 User-Agent: KMail/1.12.1 (FreeBSD/8.0-RC1; KDE/4.3.1; amd64; ; ) References: <200909271817.22176.sserre.bx@gmail.com> <200909272113.38035.sserre.bx@gmail.com> In-Reply-To: <200909272113.38035.sserre.bx@gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200909271751.02530.mlobo@digiart.art.br> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sv4.hmnoc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - digiart.art.br Subject: Re: tap interface problem 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: Sun, 27 Sep 2009 20:49:58 -0000 On Sunday 27 September 2009 16:13:38 S=E9bastien Serre wrote: > On Sunday 27 September 2009 18:17:22 S=E9bastien Serre wrote: > > Hello, I hope somebody here known well tap interfaces on freebsd :). > > > > I try to configure virtualbox with bridge interface. Everything seams o= k: > > # ifconfig tap0 > > > > tap0: flags=3D8943 metr= ic 0 > > mtu 1500 > > ether 00:bd:4f:0a:00:00 > > inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 > > > > # ls -l /dev/tap0 > > crw-rw-rw- 1 root wheel 0, 109 Sep 27 16:54 /dev/tap0 > > > > The problem is that nothing pass in the tap0 interface. tcpdump does not > > show any traffic when I try to connect a machine on the 192.168 networ= k. > > I can ping the interface address (192.168.0.1). But without with the use > > of the tap itself (use of lo0): > > > > # route -n get 192.168.0.1 > > route to: 192.168.0.1 > > destination: 192.168.0.1 > > interface: lo0 > > flags: > > recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu > > expire > > 0 0 0 0 0 0 16384 > > 0 > > > > > > Then i have a tap interface up, but i can't pass to it any traffic. > > Does anybody have a suggestion, or know some debugging tools to show wh= at > > append? > > > > Thanks > > > > Sebovick > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "freebsd-questions-unsubscribe@freebsd.org" >=20 > Me again, >=20 > I can now listen something on tap0: >=20 > # tcpdump -i tap0 > tcpdump: verbose output suppressed, use -v or -vv for full protocol decode > listening on tap0, link-type EN10MB (Ethernet), capture size 96 bytes > 21:08:22.668835 arp who-has 192.168.0.1 tell 192.168.0.101 > 21:08:23.668526 arp who-has 192.168.0.1 tell 192.168.0.101 > 21:08:24.668272 arp who-has 192.168.0.1 tell 192.168.0.101 > 21:08:25.671499 arp who-has 192.168.0.1 tell 192.168.0.101 >=20 > 192.168.0.101 is my virtual machine trying to ping the host address of the > tap interface. The host did not reply. > When I try to ping the guest from the host, tcpdump stay silent. >=20 > So the tap interface is ok for the guest, but the host don't know how to > talk against tap. Any idea? > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" >=20 is the brige0 interface up too?=20 =2D-=20 Mario Lobo http://www.mallavoodoo.com.br =46reeBSD since version 2.2.8 [not Pro-Audio.... YET!!] (99,7% winedows FRE= E)