From nobody@FreeBSD.org  Sat Sep  5 13:21:22 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 67CD1106566C
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <yerenkow@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: dhcp wrong behaviour with multiple networks
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         138547
>Category:       bin
>Synopsis:       [request] improve dhcp behaviour with multiple networks
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    vwe
>State:          suspended
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 05 13:30:06 UTC 2009
>Closed-Date:    
>Last-Modified:  Sat Aug 21 14:11:06 UTC 2010
>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:
Class-Changed-From-To: sw-bug->change-request 
Class-Changed-By: jilles 
Class-Changed-When: Sun Apr 25 22:19:04 UTC 2010 
Class-Changed-Why:  
This is a feature request. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138547 
State-Changed-From-To: open->suspended 
State-Changed-By: vwe 
State-Changed-When: Sat Aug 21 14:03:11 UTC 2010 
State-Changed-Why:  
Alexander, 
if I got all points of your request right, points 1 and 2 can be "fixed" in 
(read: must be configured by the admin) dhclient.conf(5) 
Point 3 must be properly configured by either ppp.conf or mpd.conf or 
whatever you use for dialing up. 
I don't see a FreeBSD bug here if properly configured. 
Please report back if we can close this PR. Thank you very much. 


Responsible-Changed-From-To: freebsd-bugs->vwe 
Responsible-Changed-By: vwe 
Responsible-Changed-When: Sat Aug 21 14:03:11 UTC 2010 
Responsible-Changed-Why:  
track 

http://www.freebsd.org/cgi/query-pr.cgi?pr=138547 
>Unformatted:
