From nobody@FreeBSD.org  Tue Jul 13 08:52:19 2010
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 05CBD106567B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 13 Jul 2010 08:52:19 +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 EA3DB8FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 13 Jul 2010 08:52:18 +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 o6D8qIu5068880
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 13 Jul 2010 08:52:18 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o6D8qIoX068879;
	Tue, 13 Jul 2010 08:52:18 GMT
	(envelope-from nobody)
Message-Id: <201007130852.o6D8qIoX068879@www.freebsd.org>
Date: Tue, 13 Jul 2010 08:52:18 GMT
From: Fabrice Bruel <fabrice.bruel@orange-ftgroup.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: IP respond to ping even if the attached interface is no carrier
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         148537
>Category:       kern
>Synopsis:       IP respond to ping even if the attached interface is no carrier
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-net
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 13 09:10:02 UTC 2010
>Closed-Date:    Tue Jul 27 00:43:55 UTC 2010
>Last-Modified:  Tue Jul 27 00:43:55 UTC 2010
>Originator:     Fabrice Bruel
>Release:        FreeBSD 8.0 release amd 64
>Organization:
OBS
>Environment:
FreeBSD HPFBSD8PF64 8.0-RELEASE-p3 FreeBSD 8.0-RELEASE-p3 #0: Fri Jul  9 08:47:02 GMT 2010     root@HPFBSD8PF64:/usr/obj/usr/src/sys/FBSD8PF  amd64

>Description:
Hello,

Please considered a server with two or more physicals Ethernet Interfaces.
To supervise this server, we are using a tool that try to ping all the IP
address of the server, but the IP packet come by just one interface (that
is on the same LAN on the supervision tool).

If an interface is "no carrier", its IP answer very well to the ping request,
so in our tool, everything seems to be OK.

Is it possible that the FreeBSD Kernel checks the status of an interface
before answer ?

Thanks
Fabrice
>How-To-Repeat:
- A server with two physical interfaces.  
- a static route to access the second interface through the first interface
- unplugged the network cable in the second interface 
- ping @IP_attached_to_the_second_interface 
>Fix:


>Release-Note:
>Audit-Trail:

From: Vlad Galu <dudu@dudu.ro>
To: Fabrice Bruel <fabrice.bruel@orange-ftgroup.com>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: amd64/148537: IP respond to ping even if the attached interface 
	is no carrier
Date: Tue, 13 Jul 2010 13:26:02 +0200

 What you describe here is not a bug, but really a feature - IP
 forwarding. IP addresses aren't bound to interfaces by link states,
 but by configuration. What you can do is add a route to another IP
 address directly connected to the interface that flaps, and ping that
 address instead.
 
 
 --=20
 Good, fast & cheap. Pick any two.
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Tue Jul 27 00:42:38 UTC 2010 
State-Changed-Why:  
Believed to be working as designed. 


Responsible-Changed-From-To: freebsd-amd64->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Jul 27 00:42:38 UTC 2010 
Responsible-Changed-Why:  

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