From owner-freebsd-net@FreeBSD.ORG Tue Aug 19 09:56:34 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98CCE1065674 for ; Tue, 19 Aug 2008 09:56:34 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.238]) by mx1.freebsd.org (Postfix) with ESMTP id 5174D8FC12 for ; Tue, 19 Aug 2008 09:56:34 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by wr-out-0506.google.com with SMTP id c8so1034163wra.27 for ; Tue, 19 Aug 2008 02:56:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=UkiIH9JLltDikoVDWbWRIMdvX96ntoFlqWCZlE9W/rs=; b=qcMTdLeLpcrlJYHo5+o27HZf6tSjXH+my489KCJw+isGCqXFUTNvlxAp6JE6KSYOLq 3DGl4n9xlsA2T7gmfwm4LBY9ax+lINCRSsSi748sg93CJQdTpS8sfpgBtF+WFfN9ADsk OkVvjsd+tSROOpqCZuJWogt1Ir5vJmj8Wbq0w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ioTMvYN50SotULIIDuFP+3u4qYrX0xeMC0+gxRiDqBgQUGLrox4I5bKVSSQG5dxCre /UxoyAsqsHYTVr6ytNEZp4qyw7ff2xUAfRUAllQvi/0SZaQ6hdceVFHFGKrUAzTTMa1F G+DSBUnTXhcpt761aLUErhiFTMQQF/L24fc4E= Received: by 10.90.67.10 with SMTP id p10mr840647aga.64.1219138050604; Tue, 19 Aug 2008 02:27:30 -0700 (PDT) Received: by 10.90.81.10 with HTTP; Tue, 19 Aug 2008 02:27:30 -0700 (PDT) Message-ID: Date: Tue, 19 Aug 2008 13:27:30 +0400 From: pluknet To: Ganbold In-Reply-To: <48AA8624.5010206@micom.mng.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48AA8624.5010206@micom.mng.net> Cc: "freebsd-net@freebsd.org" , thompsa@freebsd.org Subject: Re: possibly bridge related problem 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: Tue, 19 Aug 2008 09:56:34 -0000 2008/8/19 Ganbold : > Hi, > > I have strange network problem on my laptop. > I can't make connection to my desktop(192.168.0.18) from my laptop. > However I can ping to other addresses from my laptop. > I can't ping and make connection to my laptop from my desktop either. > > On the laptop I have bridge created at boot time. > When I destroy bridge0 I can ping and make connection to my desktop. > Is this known problem? If not where should I look for the problem? > Or am I doing something wrong? > > ... > devil# uname -an FreeBSD devil.micom.mng.net 7.0-STABLE FreeBSD 7.0-STABLE > #8: Tue Aug 19 15:29:26 ULAT 2008 > tsgan@devil.micom.mng.net:/usr/obj/usr/src/sys/DEVIL i386 > devil# ping 192.168.0.1 PING 192.168.0.1 (192.168.0.1): 56 data bytes > 64 bytes from 192.168.0.1: icmp_seq=0 ttl=255 time=0.920 ms > 64 bytes from 192.168.0.1: icmp_seq=1 ttl=255 time=1.788 ms > 64 bytes from 192.168.0.1: icmp_seq=2 ttl=255 time=1.130 ms > ^C > --- 192.168.0.1 ping statistics --- > 3 packets transmitted, 3 packets received, 0.0% packet loss > round-trip min/avg/max/stddev = 0.920/1.279/1.788/0.370 ms > > devil# ping 192.168.0.18 PING 192.168.0.18 (192.168.0.18): 56 data bytes > ^C > --- 192.168.0.18 ping statistics --- > 4 packets transmitted, 0 packets received, 100.0% packet loss > > devil# ifconfig -a bge0: > flags=8943 metric 0 mtu 1500 > options=98 > ether 00:14:22:fb:32:a6 > inet 192.168.0.35 netmask 0xffffff00 broadcast 192.168.0.255 > media: Ethernet autoselect (1000baseTX ) > status: active > lo0: flags=8049 metric 0 mtu 16384 > inet 127.0.0.1 netmask 0xff000000 bridge0: > flags=8843 metric 0 mtu 1500 > ether 00:14:22:fb:32:a6 > id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 > maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200 > root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 > member: tap0 flags=143 > ifmaxaddr 0 port 4 priority 128 path cost 2000000 > member: bge0 flags=143 > ifmaxaddr 0 port 1 priority 128 path cost 20000 > tap0: flags=8902 metric 0 mtu 1500 > ether 00:bd:4b:1b:00:00 > tun0: flags=8051 metric 0 mtu 1500 > inet 192.168.10.34 --> 192.168.10.33 netmask 0xffffffff Opened by PID > 802 > > devil# kldstat Id Refs Address Size Name > 1 22 0xc0400000 701a64 kernel > 2 1 0xc0b02000 5844 if_tap.ko > 3 1 0xc0b08000 15524 snd_hda.ko > 4 2 0xc0b1e000 52a08 sound.ko > 5 2 0xc0b71000 10ebc drm.ko > 6 1 0xc0b82000 71c4 i915.ko > 7 1 0xc0b8a000 1fe68 kqemu.ko > 8 1 0xc0baa000 b8c8 aio.ko > 9 1 0xc0bb6000 6b3d0 acpi.ko > 10 1 0xc433b000 9000 if_bridge.ko > 11 1 0xc4344000 6000 bridgestp.ko > 12 2 0xc44c2000 d000 ipfw.ko > 13 1 0xc44fb000 4000 ipdivert.ko > 14 1 0xc452a000 22000 linux.ko > 15 1 0xc45a6000 e000 fuse.ko > > devil# more /etc/rc.conf > cloned_interfaces="bridge0 tap0" > firewall_enable="YES" > firewall_quiet="NO" > firewall_script="/etc/rc.firewall" > firewall_type="open" > gateway_enable="YES" > hostname="devil.micom.mng.net" > > ifconfig_bge0="DHCP" > ifconfig_bridge0="addm bge0 addm tap0 up" > inetd_enable="YES" > > natd_enable="YES" # Enable natd (if firewall_enable == YES). > natd_interface="bge0" # Public interface or IPaddress to use. > openvpn_enable="YES" > openvpn_if="tun" > > > devil# ipfw show 00050 224 19723 divert 8668 ip4 from any to any via bge0 > 00100 4 200 allow ip from any to any via lo0 > 00200 0 0 deny ip from any to 127.0.0.0/8 > 00300 0 0 deny ip from 127.0.0.0/8 to any > 65000 383 33187 allow ip from any to any > 65535 0 0 deny ip from any to any > > devil# netstat -rn Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > default 192.168.0.1 UGS 0 205 bge0 > 127.0.0.1 127.0.0.1 UH 0 2 lo0 > 192.168.0.0/24 link#1 UC 0 0 bge0 > 192.168.0.1 00:e0:29:3b:5a:b0 UHLW 2 10 bge0 1099 > 192.168.10.0/24 192.168.10.33 UGS 0 0 tun0 > 192.168.10.33 192.168.10.34 UH 1 0 tun0 > Hi, I guess you got that buggy window in 7-stable between [1] and the fix, that would come [2] in 7-stable in a few days. [1] http://svn.freebsd.org/viewvc/base?view=revision&revision=180364 [2] http://svn.freebsd.org/viewvc/base?view=revision&revision=181824 wbr, pluknet