From owner-freebsd-stable@FreeBSD.ORG Tue Jun 8 18:26:13 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BBC4E106567A for ; Tue, 8 Jun 2010 18:26:13 +0000 (UTC) (envelope-from sclark46@earthlink.net) Received: from elasmtp-junco.atl.sa.earthlink.net (elasmtp-junco.atl.sa.earthlink.net [209.86.89.63]) by mx1.freebsd.org (Postfix) with ESMTP id 777338FC1B for ; Tue, 8 Jun 2010 18:26:13 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=RROyeUd1qw47F1hQsKzq6Pcpzw99R6wA0Kah8HDC9oVw7tNyDhAQkVMxwAZjPP3j; h=Received:Message-ID:Date:From:Reply-To:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-ELNK-Trace:X-Originating-IP; Received: from [69.22.83.66] (helo=joker.seclark.com) by elasmtp-junco.atl.sa.earthlink.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1OM3V6-0001G8-OQ; Tue, 08 Jun 2010 14:26:12 -0400 Message-ID: <4C0E8B42.70603@earthlink.net> Date: Tue, 08 Jun 2010 14:26:10 -0400 From: Stephen Clark User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-2.fc12 Thunderbird/3.0.4 MIME-Version: 1.0 To: Jeremy Chadwick References: <4C0E81D7.8020209@earthlink.net> <20100608180506.GA9340@icarus.home.lan> In-Reply-To: <20100608180506.GA9340@icarus.home.lan> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: a437fbc6971e80f61aa676d7e74259b7b3291a7d08dfec79d1ac86fc3f40b710766b08daeb6e10f2350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 69.22.83.66 Cc: FreeBSD Stable Subject: Re: FreeBSD eats 169.254.x.x addressed packets X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: sclark46@earthlink.net List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jun 2010 18:26:13 -0000 On 06/08/2010 02:05 PM, Jeremy Chadwick wrote: > On Tue, Jun 08, 2010 at 01:45:59PM -0400, Stephen Clark wrote: >> Why does FreeBSD 6.3 eat 169.254.x.x addressed packet when >> 4.9 didn't? > > The following output would help: > > - ifconfig -a > - netstat -rn > - Contents of /etc/rc.conf > > Also, be aware that RELENG_6 is to be EOL'd at the end of this year: > http://security.freebsd.org/ > Hi Jeremy, I am not sure that information is relevant. We have two systems configured identically one using 4.9 the other 6.3. We were replacing the 4.9 system with the 6.3 system. The internal lan had been setup on the 4.9 box using dhcpd handing out ip addresses in the 169.254.202/24 range. This box had been working for years. When we replaced it with the identically configured 6.3 box we could no longer ping the internal interface which had an ip address of 169.254.202.1. So after spending about a day trouble shooting we finally realized if we changed the address to 169.253.202.1 everything worked on the 6.3 box. Investigating the 169.254.x.x address shows it is normally used when a box can't get an address using dhcp so it assigns one randomly from the 169.254.x.x address space. I don't know what happened with 6.3 but any 6.3 box we assign and address in that range then you can't ping the address. This is from another box. srmrd# ifconfig bge0 169.254.1.1 srmrd# ping 169.254.1.1 PING 169.254.1.1 (169.254.1.1): 56 data bytes ^C --- 169.254.1.1 ping statistics --- 3 packets transmitted, 0 packets received, 100% packet loss srmrd# netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.198.252 UGS 0 2711166 fxp0 10.0.128/17 link#1 UC 0 0 fxp0 10.0.128.1 00:30:18:a3:47:a5 UHLW 1 3805 fxp0 1155 10.0.129.5 00:00:24:ca:65:ec UHLW 1 33348 fxp0 1154 10.0.129.91 00:1c:c0:94:3a:12 UHLW 1 149 fxp0 773 10.0.129.101 00:b0:d0:fe:89:d9 UHLW 1 58 lo0 127.0.0.1 127.0.0.1 UH 0 18437 lo0 169.254 link#2 UC 0 0 bge0 169.254.1.1 00:b0:d0:fe:89:da UHLW 1 3 lo0 192.168.198 link#1 UC 0 0 fxp0 192.168.198.94 00:02:b6:36:e9:4a UHLW 1 1490 fxp0 1113 192.168.198.98 00:90:c2:c7:5e:78 UHLW 1 3369 fxp0 255 192.168.198.101 00:04:23:b6:da:8d UHLW 1 1458 fxp0 1153 192.168.198.252 00:30:18:a3:47:90 UHLW 2 0 fxp0 1144 192.168.198.253 00:30:18:a3:47:a3 UHLW 1 25662 fxp0 801 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01:4::/32 fe80::1%lo0 UC lo0 ff02::%lo0/32 fe80::1%lo0 UC lo0 srmrd# uname -a FreeBSD srmrd.com 6.3-RELEASE-p13 FreeBSD 6.3-RELEASE-p13 #1: Tue Oct 13 09:07:05 EDT 2009 root@srmrd..com:/usr/src/sys/i386/compile/SMP i386 ************************** Here I added an alias ip srmrd# ifconfig bge0 alias 169.253.1.1 srmrd# ping 169.253.1.1 PING 169.253.1.1 (169.253.1.1): 56 data bytes 64 bytes from 169.253.1.1: icmp_seq=0 ttl=64 time=0.082 ms 64 bytes from 169.253.1.1: icmp_seq=1 ttl=64 time=0.055 ms 64 bytes from 169.253.1.1: icmp_seq=2 ttl=64 time=0.056 ms 64 bytes from 169.253.1.1: icmp_seq=3 ttl=64 time=0.053 ms 64 bytes from 169.253.1.1: icmp_seq=4 ttl=64 time=0.061 ms ^C --- 169.253.1.1 ping statistics --- 5 packets transmitted, 5 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.053/0.061/0.082/0.011 ms srmrd# netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.198.252 UGS 0 2711166 fxp0 10.0.128/17 link#1 UC 0 0 fxp0 10.0.128.1 00:30:18:a3:47:a5 UHLW 1 3805 fxp0 892 10.0.129.5 00:00:24:ca:65:ec UHLW 1 33356 fxp0 1128 10.0.129.91 00:1c:c0:94:3a:12 UHLW 1 274 fxp0 510 10.0.129.101 00:b0:d0:fe:89:d9 UHLW 1 58 lo0 127.0.0.1 127.0.0.1 UH 0 18437 lo0 169.253 link#2 UC 0 0 bge0 169.253.1.1 00:b0:d0:fe:89:da UHLW 1 10 lo0 169.254 link#2 UC 0 0 bge0 169.254.1.1 00:b0:d0:fe:89:da UHLW 1 3 lo0 192.168.198 link#1 UC 0 0 fxp0 192.168.198.94 00:02:b6:36:e9:4a UHLW 1 1490 fxp0 1090 192.168.198.98 00:90:c2:c7:5e:78 UHLW 1 3394 fxp0 1196 192.168.198.101 00:04:23:b6:da:8d UHLW 1 1458 fxp0 1100 192.168.198.252 00:30:18:a3:47:90 UHLW 2 0 fxp0 1182 192.168.198.253 00:30:18:a3:47:a3 UHLW 1 25662 fxp0 1187 Regards, Steve -- "They that give up essential liberty to obtain temporary safety, deserve neither liberty nor safety." (Ben Franklin) "The course of history shows that as a government grows, liberty decreases." (Thomas Jefferson)