From owner-freebsd-bugs Thu Mar 7 12:40:38 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4102937B423 for ; Thu, 7 Mar 2002 12:40:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g27Ke1K83948; Thu, 7 Mar 2002 12:40:01 -0800 (PST) (envelope-from gnats) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 9B3E637B402 for ; Thu, 7 Mar 2002 12:32:41 -0800 (PST) Received: (from robert@localhost) by fledge.watson.org (8.11.6/8.11.6) id g27KWXJ21156; Thu, 7 Mar 2002 15:32:33 -0500 (EST) (envelope-from robert) Message-Id: <200203072032.g27KWXJ21156@fledge.watson.org> Date: Thu, 7 Mar 2002 15:32:33 -0500 (EST) From: Robert Watson Reply-To: Robert Watson To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: kern/35645: Layer 2 switching using default router of "self" broken Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 35645 >Category: kern >Synopsis: Layer 2 switching using default router of "self" broken >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Mar 07 12:40:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Robert Watson >Release: FreeBSD 5.0-CURRENT >Organization: NAI LAbs >Environment: System: FreeBSD fledge.watson.org 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE #0: Fri Dec 21 21:55:59 EST 2001 robert@fledge.watson.org:/usr/obj/data/fbsd-stable/src/sys/FLEDGE i386 >Description: Many network stacks use a default route of the local IP address to represent a switch model in which all packets destined for the default route are handled by attempting direct link-layer delivery to the destination over the local interface associated with the IP address. As a result, some network configurations provide the same IP address for use both as the host address and the default router via DHCP, which on FreeBSD results in an inability to send packets off the local network segment. Bill Fenner suggests that the FreeBSD stack wants: route add default -interface foo0 Instead of use of the IP address, and that the dhclient script should do the mapping to the appropriate FreeBSD incantation. >How-To-Repeat: >Fix: This is probably an example of a common IP stack quirk being assumed and propagated to hosts where it's not true. However, it means that FreeBSD doesn't work "out of the box" in some switched network environments. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message