From owner-freebsd-net@FreeBSD.ORG Sun Mar 29 21:43:07 2009 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 2BB811065693 for ; Sun, 29 Mar 2009 21:43:07 +0000 (UTC) (envelope-from ghe@slsware.com) Received: from a218.slsware.com (a218.slsware.com [209.97.231.218]) by mx1.freebsd.org (Postfix) with ESMTP id 07F178FC0A for ; Sun, 29 Mar 2009 21:43:06 +0000 (UTC) (envelope-from ghe@slsware.com) Received: from air.slsware.wif (a226.slsware.dmz [192.168.2.226]) (Authenticated sender: ghe) by a218.slsware.com (a218.slsware.com) with ESMTPA id 469B940049C for ; Sun, 29 Mar 2009 15:23:16 -0600 (MDT) Message-ID: <49CFE6C4.1080809@slsware.com> Date: Sun, 29 Mar 2009 15:23:16 -0600 From: ghe User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) MIME-Version: 1.0 To: freebsd-net@freebsd.org X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: 7.1 network 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: Sun, 29 Mar 2009 21:43:08 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This morning I put 7.1 on a Via box with RealTek 8139C+/8169/8169S/8110S Ethernet card (from sysinstall). I'm new to FreeBSD, but I've been playing with this box to learn a little about the BSD side. The network seems not to work unless the interface (re0) is in promiscuous mode. I don't understand this. arp -a looks reasonable, and it doesn't change when promisc is turned off. ping works to localhost and to re0, but if I start a ping to outside the machine, nothing happens until I enable promisc by starting tcpdump or by issuing a command to ifconfig. Then the echoes start. And disabling stops them again. I don't think it's hardware because this box ran Debian Linux for several months with no problems -- unless maybe the Debian driver kept it in promisc all the time; I didn't look... rc.conf: > # -- sysinstall generated deltas -- # Sun Mar 29 09:52:35 2009 > # Created: Sun Mar 29 09:52:35 2009 > # Enable network daemons for user convenience. > # Please make all changes to this file, not to /etc/defaults/rc.conf. > # This file now contains just the overrides from /etc/defaults/rc.conf. > hostname="otto.slsware.lan" > ifconfig_re0="inet 192.168.3.177 netmask 255.255.255.0" > defaultrouter="192.168.3.1" > font8x14="NO" > font8x16="swiss-8x16" > font8x8="swiss-8x8" > ### linux_enable="YES" > ### nfs_client_enable="YES" > ### saver="daemon" > webmin_enable="YES" > # -- sysinstall generated deltas -- # Sun Mar 29 12:45:49 2009 > gateway_enable="NO" > router_enable="YES" > ftpd_enable="YES" > inetd_enable="YES" > named_enable="YES" > ntpd_enable="YES" > postfix_enable="YES" > routed_enable="YES" > rsyncd_enable="YES" > sshd_enable="YES" ifconfig -a: > re0: flags=8943 metric 0 mtu 1500 > options=389b > ether 00:30:18:a0:29:dc > inet 192.168.3.177 netmask 0xffffff00 broadcast 192.168.3.255 > media: Ethernet autoselect (100baseTX ) > status: active > re1: flags=8802 metric 0 mtu 1500 > options=389b > ether 00:30:18:a0:29:dd > media: Ethernet autoselect (10baseT/UTP ) > status: no carrier > plip0: flags=108810 metric 0 mtu 1500 > lo0: flags=8049 metric 0 mtu 16384 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 > inet6 ::1 prefixlen 128 > inet 127.0.0.1 netmask 0xff000000 This is with promisc on. The output is identical with it off, except the PROMISC flag is off. - -- Glenn English ghe@slsware.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknP5sMACgkQ04yQfZbbTLa5TQCeKToOFTJKy9B7xkZ1TTV3q2tG yBsAnRzLRjJJlnE1y8ZZFc/L9V1OUtzz =K+D6 -----END PGP SIGNATURE-----