From owner-freebsd-bugs@FreeBSD.ORG Sat Sep 5 13:30:06 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CCDB41065676 for ; Sat, 5 Sep 2009 13:30:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 905B18FC08 for ; Sat, 5 Sep 2009 13:30:06 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n85DU6Ms082947 for ; Sat, 5 Sep 2009 13:30:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n85DU6J5082944; Sat, 5 Sep 2009 13:30:06 GMT (envelope-from gnats) Resent-Date: Sat, 5 Sep 2009 13:30:06 GMT Resent-Message-Id: <200909051330.n85DU6J5082944@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alexander Yerenkow Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67CD1106566C for ; Sat, 5 Sep 2009 13:21:22 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 56E508FC17 for ; Sat, 5 Sep 2009 13:21:22 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n85DLMaf057547 for ; Sat, 5 Sep 2009 13:21:22 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n85DLMHS057546; Sat, 5 Sep 2009 13:21:22 GMT (envelope-from nobody) Message-Id: <200909051321.n85DLMHS057546@www.freebsd.org> Date: Sat, 5 Sep 2009 13:21:22 GMT From: Alexander Yerenkow To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/138547: dhcp wrong behaviour with multiple networks X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Sep 2009 13:30:06 -0000 >Number: 138547 >Category: misc >Synopsis: dhcp wrong behaviour with multiple networks >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Sep 05 13:30:06 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Alexander Yerenkow >Release: 7.2 >Organization: >Environment: FreeBSD pcbsd 7.2-STABLE FreeBSD 7.2-STABLE #6: Mon Jun 15 19:18:56 EDT 2009 root@build7x32.pcbsd.org:/usr/obj/pcbsd-build72/cvs/7.2-src/sys/PCBSD i386 >Description: I have network, for example wlan0. It takes all info by DHCP, gateway and DNS too. 1. If I want to use my own DNS,there is no way to do it, any changes to /etc/resolv.conf are overwrited, even if the auto-discovered dns address leaved untouched there. 2. If I have other network which I need to use (for example, gprs via bluetooth), it connect OK. But DNS probably can be overridden by any other interface with DHCP - not good. 3. If I disconnect my gprs/ppp, I get "no route to host", for any ip. I had a gateway for wlan0, I connected with gprs (tun0), it simply overriden my gateway, not stored any info about which default gate was earlier, and after disconnect I got broken route table. I'd propose a little smartr DHCP, which will respect other DNSes, specified manually or get from other DHCP interfaces. I'd propose additional checks during connect/disconnect interfaces, to have always working route table, no matter of user actions. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: