Documentation Error?

Ted Mittelstaedt tedm at toybox.placo.com
Tue Mar 1 21:44:02 GMT 2005



> -----Original Message-----
> From: owner-freebsd-questions at freebsd.org
> [mailto:owner-freebsd-questions at freebsd.org]On Behalf Of Jason D.
> Montgomery
> Sent: Tuesday, March 01, 2005 8:56 AM
> To: Jerry McAllister
> Cc: questions at freebsd.org; Ted Mittelstaedt
> Subject: RE: Documentation Error?
>
>
> Odd. I'm no guru, so it may just be my lack of understanding...
>
> I had this in my rc.config file to setup an alias on a NIC:
>
> ifconfig_xl0="inet 192.168.20.2 netmask 255.255.255.0"
> ifconfig_xl0_alias0="inet 192.168.20.3 netmask 255.255.255.255"
>
> And the alias'd address would NOT load at boot time. Couldn't get it to
> work.
>
> But when I changed it to this, it worked just fine:
>
> ifconfig_xl0="inet 192.168.20.2 netmask 255.255.255.0"
> ifconfig_xl0_alias0="alias 192.168.20.3 netmask 255.255.255.255"
>

Try:

ifconfig_xl0_alias0="inet 192.168.20.3 netmask 255.255.255.255 alias"

and see if that works.  Possibly something broken in your rc script
that isn't inserting the "alias" keyword into the ifconfig command it's
issuing when it sees alias0 in the rc.conf line?

> The ifconfig command wouldn't work either until I replaced alias with
> inet on the command line.
>

Correct, the ifconfig command needs the alias keyword to create an alias
interface.

> Am I just missing something else?
>

Well one thing is that the 3c905 adapter (xl0) is known for problems
under FreeBSD.

Ted



More information about the freebsd-questions mailing list