From: mdudley on
I have FreeBSD server that I just hooked up to my home network. I got
it talking on the net, but the ifconfig contains 16 extra entries that
read like this:

inet 216.176.199.204 netmask 0xffffffff broadcast 216.176.199.255

only the first entry which goes to the local 192.168.1.78 is correct.

How can I remove these extra invalid entries? They are not in the
rc.conf file, or anywhere else in etc or any of it subdirs that I can
find.

Thanks,

Marshall
From: John Marshall on
On Mon, 22 Mar 2010 11:38:54 -0700 (PDT), mdudley wrote:
> I have FreeBSD server that I just hooked up to my home network. I got
> it talking on the net, but the ifconfig contains 16 extra entries that
> read like this:
>
> inet 216.176.199.204 netmask 0xffffffff broadcast 216.176.199.255
>
> only the first entry which goes to the local 192.168.1.78 is correct.
>
> How can I remove these extra invalid entries? They are not in the
> rc.conf file, or anywhere else in etc or any of it subdirs that I can
> find.

ifconfig fxp0 inet 216.176.199.204 -alias

for each of the 16 "extra" addresses. Substitute the actual interface
on your system for fxp0 in the above example.

There must be a script somewhere adding those 16 alias addresses to the
interface. Have you tried looking in /usr/local/etc/rc.d to see if
there may be a culprit script there?

--
John Marshall
From: mdudley on
On Mar 23, 1:34 am, John Marshall <j...(a)rwpc12.mby.riverwillow.net.au>
wrote:
> On Mon, 22 Mar 2010 11:38:54 -0700 (PDT), mdudley wrote:
> > I have FreeBSD server that I just hooked up to my home network.  I got
> > it talking on the net, but the ifconfig contains 16 extra entries that
> > read like this:
>
> > inet 216.176.199.204 netmask 0xffffffff broadcast 216.176.199.255
>
> > only the first entry which goes to the local 192.168.1.78 is correct.
>
> > How can I remove these extra invalid entries?  They are not in the
> > rc.conf file, or anywhere else in etc or any of it subdirs that I can
> > find.
>
>  ifconfig fxp0 inet 216.176.199.204 -alias
>
> for each of the 16 "extra" addresses.  Substitute the actual interface
> on your system for fxp0 in the above example.
>
> There must be a script somewhere adding those 16 alias addresses to the
> interface.  Have you tried looking in /usr/local/etc/rc.d to see if
> there may be a culprit script there?
>
> --
> John Marshall

Bingo, they were in the ip.sh file in that subdirectory. I have no
idea why the hosting company set it up that way except probably more
incompetence, it sure is different than the way I have set up my other
servers. Renamed the file and rebooted, and now it is correct.

Thanks,

Marshall