From nobody@FreeBSD.org  Fri Aug 27 18:38:51 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0D42416A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Aug 2004 18:38:51 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id F3AA543D62
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Aug 2004 18:38:50 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i7RIcoS4076377
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 27 Aug 2004 18:38:50 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i7RIco1p076376;
	Fri, 27 Aug 2004 18:38:50 GMT
	(envelope-from nobody)
Message-Id: <200408271838.i7RIco1p076376@www.freebsd.org>
Date: Fri, 27 Aug 2004 18:38:50 GMT
From: Martin Piayda <martin.piayda@udo.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: DHCP-Request is sets other device's ip to null, when using Realtek and Via-NICs
X-Send-Pr-Version: www-2.3

>Number:         71045
>Category:       kern
>Synopsis:       [rl] [vr] DHCP-Request is sets other device's ip to null, when using Realtek and Via-NICs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    yongari
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 27 18:40:27 GMT 2004
>Closed-Date:    Mon Jan 17 23:23:12 UTC 2011
>Last-Modified:  Mon Jan 17 23:23:12 UTC 2011
>Originator:     Martin Piayda
>Release:        5.2.1
>Organization:
University of Dortmund
>Environment:
FreeBSD themis 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9
>Description:
I noticed an annoying, but not serious matter, that occurs in combination
with RealTek and Via Rhine based Network Interface Cards.  I own three
NICs, a D-Link 530TX (Via Rhine), a D-Link 528TX (RealTek) and a
SoHo-Ware-RealTek-Supermarket-Network-Card. :-)

So, let's come to the point:
When physically placing the cards in the order D-Link 530, D-Link 528,
Cheap-RealTek and using the D-Link 530 as the DHCP-Hook for the Network-
Gate the horror starts. The logical order, that ifconfig delivers is rl0
(D-Link 528), vr0 (D-Link 530) and rl1 (Cheapy).

The corresponding rc.conf sniplet is:
ifconfig_vr0="DHCP"
ifconfig_rl0="inet 10.0.0.1  netmask 255.255.255.0 broadcast 10.0.0.255"
ifconfig_rl1="inet 10.0.1.1  netmask 255.255.255.0 broadcast 10.0.1.255"

That's all.
When booting, the vr0-card is DHCP-configured correctly, rl0 is left
unconfigured (or overridden?) with the any-ip 0.0.0.0 and rl1 is set
correctly (10.0.1.1).

After analysing and experimenting, I swapped the two D-Links physically
and used rl0 as DHCP-Hook and vr0 for 10.0.0.1.  That fixed the Problem
and all Network cards were happy including me.

Well, I can only assume, what the matter is, but at least it must be
software-related.

I think the rl0-card, that was firstly configured get's confused by the
"following" vr0 card in the ifconfig-row. I bet, if vr0 was first, it
would be right.

This could be checked out, if some people were running similar scenarios
where the first NIC, that ifconfig shows is statically configured and the
second dynamically by DHCP.

I don't think it's me who caused the Problem and it's not really serious.
I'm looking forward for the developer's analysis and explanation. :-)

Regards,
Martin
>How-To-Repeat:

>Fix:
      
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Sep 24 05:40:21 GMT 2004 
Responsible-Changed-Why:  
This does not sound i386-specific. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71045 
State-Changed-From-To: open->feedback 
State-Changed-By: yongari 
State-Changed-When: Mon Sep 27 23:19:55 UTC 2010 
State-Changed-Why:  
Is this still issue on recent FreeBSD release? 
I also have similar configuration(DHCP + static IP) and had so such  
issue even though I use different ethernet drivers. 


Responsible-Changed-From-To: freebsd-bugs->yongari 
Responsible-Changed-By: yongari 
Responsible-Changed-When: Mon Sep 27 23:19:55 UTC 2010 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=71045 
State-Changed-From-To: feedback->closed 
State-Changed-By: yongari 
State-Changed-When: Mon Jan 17 23:22:56 UTC 2011 
State-Changed-Why:  
Feedback timeout. 

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