Short answer:  it didn't work.

On Tue, 28 May 2013, YongHyeon PYUN wrote:

On Mon, May 27, 2013 at 01:02:14PM -0400, Michael L. Squires wrote:

On Mon, 27 May 2013, YongHyeon PYUN wrote:

On Sun, May 26, 2013 at 08:38:41PM +0900, YongHyeon PYUN wrote:
On Fri, May 24, 2013 at 04:36:46PM +0900, Hiroki Sato wrote:
Hiroki Sato <h...@freebsd.org> wrote
 in <20130524.162926.395058052118975996....@allbsd.org>:

hr> YongHyeon PYUN <pyu...@gmail.com> wrote
hr>   in <20130524054720.ga1...@michelle.cdnetworks.com>:
hr>
hr>  A workaround is specifying the following line in rc.conf:
hr>
hr>  ifconfig_fxp0="DHCP media 100baseTX mediaopt full-duplex"


Sorry I've been offline, two trips last week.

I've installed 8.4-RELEASE on the NAT box with the fxp interface:

FreeBSD familysquires.net 8.4-RELEASE FreeBSD 8.4-RELEASE #54: Sun May 26
22:56:19 EDT 2013     r...@familysquires.net:/usr/obj/usr/src/sys/NEWGATE
i386

and am using the workaround given above which has stopped the fxp interface
cycling on/off.

I'll have access to the other box on Wednesday and will try the other test.

Here is patch I'm testing and it seems to work with dhclient on
CURRENT.
Mike, could you try attached patch?

Patch did not solve the problem on the home NAT box.  I'll try it on the
second 1U box at work tomorrow.

I applied the patch (see below) and recompiled/reinstalled world.

root@familysquires:/usr/src/sys/dev/fxp # uname -a
FreeBSD familysquires.net 8.4-RELEASE FreeBSD 8.4-RELEASE #54: Sun May 26 
22:56:19 EDT 2013     r...@familysquires.net:/usr/obj/usr/src/sys/NEWGATE  i386

drwxr-xr-x 236 root          3584 May 28 10:28   ../
-rw-r--r--  1 root         95366 May 28 10:28   if_fxp.c
-rw-r--r--  1 root         94968 Mar 28 09:04   if_fxp.c.orig
-rw-r--r--  1 root         15638 Mar 28 09:04   if_fxpreg.h
-rw-r--r--  1 root          8717 Mar 28 09:04   if_fxpvar.h
-rw-r--r--  1 root         23009 Mar 28 09:04   rcvbundl.h

One immediate difference in behavior is that without the modified rc.conf
the box was unable to use ntp to the outside world; it eventually sync'd on
my internal ntp server.  With the modified rc.conf the box immediately
sync'd to an ntp server in the outside world.

Result in messages was:

May 28 13:39:24 familysquires kernel: fxp0: link state changed to DOWN
May 28 13:39:24 familysquires dhclient: New Subnet Mask (fxp0): 255.255.240.0
May 28 13:39:24 familysquires dhclient: New Broadcast Address (fxp0): 255.255.25
5.255
May 28 13:39:24 familysquires dhclient: New Routers (fxp0): xx.xxx.xxx.1
May 28 13:39:26 familysquires kernel: fxp0: link state changed to UP
May 28 13:39:26 familysquires dhclient: New IP Address (fxp0): xx.xxx.xxx.163
May 28 13:39:26 familysquires kernel: fxp0: link state changed to DOWN
May 28 13:39:26 familysquires dhclient: New Subnet Mask (fxp0): 255.255.240.0
May 28 13:39:26 familysquires dhclient: New Broadcast Address (fxp0): 255.255.25
5.255
May 28 13:39:26 familysquires dhclient: New Routers (fxp0): xx.xxx.xxx.1
May 28 13:39:28 familysquires kernel: fxp0: link state changed to UP
May 28 13:39:31 familysquires dhclient: New IP Address (fxp0): xx.xxx.xxx.163
May 28 13:39:31 familysquires kernel: fxp0: link state changed to DOWN
May 28 13:39:31 familysquires dhclient: New Subnet Mask (fxp0): 255.255.240.0
May 28 13:39:31 familysquires dhclient: New Broadcast Address (fxp0): 255.255.25
5.255
May 28 13:39:31 familysquires dhclient: New Routers (fxp0): xx.xxx.xxx.1
May 28 13:39:33 familysquires kernel: fxp0: link state changed to UP
May 28 13:39:36 familysquires dhclient: New IP Address (fxp0): xx.xxx.xxx.163
May 28 13:39:36 familysquires kernel: fxp0: link state changed to DOWN
May 28 13:39:36 familysquires dhclient: New Subnet Mask (fxp0): 255.255.240.0
May 28 13:39:36 familysquires dhclient: New Broadcast Address (fxp0): 255.255.25
5.255
May 28 13:39:36 familysquires dhclient: New Routers (fxp0): xx.xxx.xxx.1
May 28 13:39:38 familysquires kernel: fxp0: link state changed to UP
May 28 13:39:40 familysquires reboot: rebooted by root

Mike Squires
mi...@siralan.org
UN*X at home
since 1986
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to