Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Sep 2009 13:21:22 GMT
From:      Alexander Yerenkow <yerenkow@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/138547: dhcp wrong behaviour with multiple networks
Message-ID:  <200909051321.n85DLMHS057546@www.freebsd.org>
Resent-Message-ID: <200909051330.n85DU6J5082944@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



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