Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Mar 2009 15:23:16 -0600
From:      ghe <ghe@slsware.com>
To:        freebsd-net@freebsd.org
Subject:   7.1  network problem
Message-ID:  <49CFE6C4.1080809@slsware.com>

next in thread | raw e-mail | index | archive | help
-----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<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
> 	options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC>
> 	ether 00:30:18:a0:29:dc
> 	inet 192.168.3.177 netmask 0xffffff00 broadcast 192.168.3.255
> 	media: Ethernet autoselect (100baseTX <full-duplex>)
> 	status: active
> re1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
> 	options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC>
> 	ether 00:30:18:a0:29:dd
> 	media: Ethernet autoselect (10baseT/UTP <half-duplex>)
> 	status: no carrier
> plip0: flags=108810<POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT> metric 0 mtu 1500
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> 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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49CFE6C4.1080809>