From owner-freebsd-questions@FreeBSD.ORG Fri May 16 10:36:36 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C71C81065670 for ; Fri, 16 May 2008 10:36:36 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: from wmail.teledomenet.gr (wmail.teledomenet.gr [213.142.128.16]) by mx1.freebsd.org (Postfix) with ESMTP id 44D228FC16 for ; Fri, 16 May 2008 10:36:36 +0000 (UTC) (envelope-from nvass@teledomenet.gr) Received: by wmail.teledomenet.gr (Postfix, from userid 1002) id 5F05B1C80CF; Fri, 16 May 2008 13:14:41 +0300 (EEST) X-Spam-Checker-Version: SpamAssassin 3.1.7-deb (2006-10-05) on wmail.teledomenet.gr X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.7-deb Received: from iris.teledomenet.local (unknown [192.168.1.71]) by wmail.teledomenet.gr (Postfix) with ESMTP id 30CE81C80CC; Fri, 16 May 2008 13:14:31 +0300 (EEST) From: Nikos Vassiliadis To: freebsd-questions@freebsd.org Date: Fri, 16 May 2008 13:14:22 +0300 User-Agent: KMail/1.9.7 References: <482D54B3.3060306@otenet.gr> In-Reply-To: <482D54B3.3060306@otenet.gr> X-NCC-RegID: gr.telehouse MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805161314.22978.nvass@teledomenet.gr> Cc: Manolis Kiagias Subject: Re: Routing to internet addresses ending with 255 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 May 2008 10:36:36 -0000 On Friday 16 May 2008 12:32:35 Manolis Kiagias wrote: > I had this weird problem today, and I would like to know what caused it: > > I have two home servers, on different locations, on two ADSL lines using > dynamic DNS. One is running Debian, the other FreeBSD 7.0-RELEASE. > > I usually ssh from one to the other. Today, the debian server had a > public (internet) IP ending in 255. The FreeBSD 7.0 system refused to > communicate with it. Another 6.3 system had no problem. The 6.3 and 7.0 > system have identical adsl routers. > > Trying a traceroute from 7.0, it would seem the debian system was one > hop away, which is of course incorrect. > > I understand that x.x.x.255 is ethernet's broadcast address. No, it's not. Since these days IP is classless, a network (and thus its broadcast address) is completely local information, not known to remote hosts. What might look to an external observer as a /24 network, may be something else. For example 213.0.0.255/24 may be the broadcast address for net 213.0.0.0/24, but it's not the broadcast address for net 213.0.0.0/23, which would be 213.0.1.255. Also, regadless of being the broadcast address or not, to the external observer that address is just an IP address. The router of the network will handle specially(will broadcast) the packet if it's destined for the broadcast address. > However 6.3 > had no problem connecting to it, while 7.0 would not. Has something > changed in FreeBSD, is this the intended behaviour or a bug? This looks like a bug. Can you post more info about it? > Furthermore, is it valid for my ISP to assign me an address ending in > 255? Yes, assuming that you speak of a PPP connection. There is no network concept in PPP. The two peer addresses are totally unrelated. For example, a PPP interface configured with 10.0.0.1 --> 172.16.255.255 is perfectly valid configuration. HTH, Nikos