FreeBSD eats 169.254.x.x addressed packets

Stephen Clark sclark46 at earthlink.net
Tue Jun 8 18:26:13 UTC 2010


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 at 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)




More information about the freebsd-stable mailing list