From owner-freebsd-questions@FreeBSD.ORG Sun Sep 27 21:32:17 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 DA9A71065670 for ; Sun, 27 Sep 2009 21:32:17 +0000 (UTC) (envelope-from sserre.bx@gmail.com) Received: from mail-ew0-f209.google.com (mail-ew0-f209.google.com [209.85.219.209]) by mx1.freebsd.org (Postfix) with ESMTP id 666038FC12 for ; Sun, 27 Sep 2009 21:32:17 +0000 (UTC) Received: by ewy5 with SMTP id 5so2416302ewy.36 for ; Sun, 27 Sep 2009 14:32:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :user-agent:references:in-reply-to:mime-version:content-type :content-transfer-encoding:message-id; bh=uVn0K4P+lSbAp9o3IAj4eyC+rDwJbsSNJcWkHluuPUU=; b=uFE3kmFgG/uvzclnf8P84iVQXNo0kdaVk9KbnzT18t64YFP0qzHEKrb75RHMCcA6qT nTdwqMzNHpL8eX0ZEejjixgnnaueAzJujI+/rWRNWmfF0wj3B3IFkReLzcCFOBIoPqxw bi0y3NVhm/mJy1aUotyMLidhVfuMXP5V7dag4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :content-type:content-transfer-encoding:message-id; b=B9IM6HPZylBYQ94D5+54URXmDzhe4iAIUYHnPRysAGyJXKlP1/Uey/S0Wt3j41vi1H stHo1L4z6zh6tyR4VmncKTIeTXLauMrPRI9NiM67aoseqD3pC+ZPdeVSOn/CYub2ku7T GrwbNKELRl0nrgQm0CMLPti5g8JIf6Dgj+4GE= Received: by 10.211.158.8 with SMTP id k8mr2900084ebo.38.1254087136215; Sun, 27 Sep 2009 14:32:16 -0700 (PDT) Received: from mentha.officinalis.lan (85-170-126-61.rev.numericable.fr [85.170.126.61]) by mx.google.com with ESMTPS id 7sm278928eyb.44.2009.09.27.14.32.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 27 Sep 2009 14:32:15 -0700 (PDT) From: =?iso-8859-1?q?S=E9bastien_Serre?= To: freebsd-questions@freebsd.org Date: Sun, 27 Sep 2009 23:31:51 +0200 User-Agent: KMail/1.12.1 (FreeBSD/7.2-RELEASE-p2; KDE/4.3.1; i386; ; ) References: <200909271817.22176.sserre.bx@gmail.com> <200909272113.38035.sserre.bx@gmail.com> <200909271751.02530.mlobo@digiart.art.br> In-Reply-To: <200909271751.02530.mlobo@digiart.art.br> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200909272331.51386.sserre.bx@gmail.com> 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 21:32:17 -0000 On Sunday 27 September 2009 22:51:02 Mario Lobo wrote: > 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 > > > ok: # ifconfig tap0 > > > > > > tap0: flags=3D8943 me= tric > > > 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 > > > network. 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 > > > what 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" > > > > Me again, > > > > I can now listen something on tap0: > > > > # 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 > > > > 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. > > > > 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 Hello, Yes it is. tcpdump see packets on bridge0 to. I jus have a doubt. I'm tryin= g=20 to connect the bridge to a physical interface that is not used (no carrier)= =2E=20 re0: flags=3D8943 metric 0 = mtu=20 1500 options=3D3898 ether 00:1f:d0:8e:79:5f inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255 media: Ethernet autoselect (none) status: no carrier It is up, but status is nocarrier and media is none. I think it can be the= =20 problem. bridge0 contain re0 ant tap0, packets can be logged with tcpdump on tap0 an= d=20 bridge0, re0 don't work. I will try tomarrow again. Thanks for your suggestion :).