Re: Documentation Error?

2005-03-03 Thread Loren M. Lang
On Tue, Mar 01, 2005 at 11:19:07AM -0500, Jerry McAllister wrote:
> > 
> > [EMAIL PROTECTED] wrote:
> > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/confi
> > > gtuning-v irtual-hosts.html
> > > 
> > > states that adding a virtual address is done in rc.conf like this:
> > > 
> > > ifconfig_fxp0="inet 10.1.1.1 netmask 255.255.255.0"
> > > ifconfig_fxp0_alias0="inet 10.1.1.2 netmask 255.255.255.255"
> > > 
> > > Shouldn't it be this instead?
> > > 
> > > ifconfig_fxp0="inet 10.1.1.1 netmask 255.255.255.0"
> > > ifconfig_fxp0_alias0="alias 10.1.1.2 netmask 255.255.255.255"
> > 
> > No.  The actual command to make one is:
> > 
> > ifconfig fxp0 inet 10.1.1.2 netmask 255.255.255.255 alias
> > 
> > So you do need to pass the "inet" to ifconfig.  The _alias0 makes
> > the script pass the trailing "alias"
> 
> H,   So what is happening when no 'inet' is in the string?
> It seems to work fine.Is something still not right and just
> waiting to explode?We have lots of servers configured that way.

Looking at ifconfig(8), I believe it's purely optional, ifconfig can
reconize what address type your giving it.  It's more useful when using
ifconfig to display information.  I've done it both ways and if your
servers work now, I doubt they'll blow up later.  It is probably
something that was required in the past.

> 
> jerry
> 
> > 
> > Ted
> > 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

-- 
I sense much NT in you.
NT leads to Bluescreen.
Bluescreen leads to downtime.
Downtime leads to suffering.
NT is the path to the darkside.
Powerful Unix is.

Public Key: ftp://ftp.tallye.com/pub/lorenl_pubkey.asc
Fingerprint: CEE1 AAE2 F66C 59B5 34CA  C415 6D35 E847 0118 A3D2
 


pgpYQNExwthl0.pgp
Description: PGP signature


RE: Documentation Error?

2005-03-01 Thread Ted Mittelstaedt


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Jason D.
> Montgomery
> Sent: Tuesday, March 01, 2005 1:55 PM
> To: Ted Mittelstaedt; Jerry McAllister
> Cc: [EMAIL PROTECTED]
> Subject: RE: Documentation Error?
>
>
> > Well one thing is that the 3c905 adapter (xl0) is known for
> > problems under FreeBSD.
>
> Ah, that's sad - ALL of our older Dell servers use this NIC (and I only
> run FreeBSD on them) - this could also explain odd intermittent network
> problems I'm having on our mail server.
>

Yes, Dell liked these cards because 3com has always worked overtime to
produce good stable windows drivers and as a result has a very good
reputation among Windows admins.  However, 3com (like other vendors) has
in some cases made up for shortcomings in their hardware by writing
patches into
their drivers, and they DON'T seem to document most of these problems in
any of their
programming documentation.

If you take a look at /sys/pci/if_xl.c you will find things like:

/*
 * Pretend that PHYs are only available at MII address 24.
 * This is to guard against problems with certain 3Com ASIC
 * revisions that incorrectly map the internal transceiver
 * control registers at all MII addresses. This can cause
 * the miibus code to attach the same PHY several times over.
 */

 * Note II, The Sequel: _CURRENT_ versions of the 3c905B have a
 * 256 bit hash table. This means we have to use all 8 bits regardless.
 * On older cards, the upper 2 bits will be ignored. G
 */


/* Wait a little while for the chip to get its brains in order.
*/
DELAY(10);
/*
 * This routine is a kludge to work around possible hardware faults
 * or manufacturing defects that can cause the media options register
 * (or reset options register, as it's called for the first generation
 * 3c90x adapters) to return an incorrect result. I have encountered

 * Note: my 3c575C cardbus card lies. It returns a value
 * of 0x1578 for its capabilities word, which is somewhat
 * nonsensical. Another way to distinguish a 3c90x chip

Now, most ethernet controller chips do have differences in revisions -
but unless those differences are documented, you have to guess when
you run into these things.  The presence of differences in board
revisions
isn't cause for alarm, what is cause for alarm is when you see statements
like: "certain 3Com ASIC revisions"  (if he knew which revisions he
would have written around the problem) "possible hardware faults or
manufacturing defects"  (you better believe 3com knows all about the
conditions that cause this and isn't sharing)  and "my 3c575C cardbus
card lies"  (shorthand for WTF is this damn thing doing?)

And these are just the ones that our group found, I would imagine that
there's plenty of others that 3com knows about and isn't telling.

I've also seen trouble with these under Linux.

> What's your favorite NIC on FreeBSD then?
>

For 10Base T ISA only:

WD or SMC 8013  (these aren't produced anymore)

For 10/100 PCI:

device  dc  # DEC/Intel 21143 and various workalikes

(except for the "LC82C115 PNIC II 10/100BaseTX", the "82c168 PNIC
10/100BaseTX"
and the "82c169 PNIC 10/100BaseTX" I will leave it as a homework
assignment for you to find out why this is.  hint, read the code)

device  fxp # Intel EtherExpress PRO/100B (82557,
82558)

See the following for a list of vendors that use these chips:

http://www.freebsd.org/releases/4.11R/hardware-i386.html#ETHERNET

Ted

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Documentation Error?

2005-03-01 Thread Jason D. Montgomery
> Well one thing is that the 3c905 adapter (xl0) is known for 
> problems under FreeBSD.

Ah, that's sad - ALL of our older Dell servers use this NIC (and I only
run FreeBSD on them) - this could also explain odd intermittent network
problems I'm having on our mail server.

What's your favorite NIC on FreeBSD then?

Thanks again for all the feedback.

later,
jason


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Documentation Error?

2005-03-01 Thread Ted Mittelstaedt


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Jason D.
> Montgomery
> Sent: Tuesday, March 01, 2005 8:56 AM
> To: Jerry McAllister
> Cc: [EMAIL PROTECTED]; 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

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Documentation Error?

2005-03-01 Thread Ted Mittelstaedt


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Chris Hodgins
> Sent: Tuesday, March 01, 2005 8:39 AM
> To: Jerry McAllister
> Cc: [EMAIL PROTECTED]; Ted Mittelstaedt; Jason D. Montgomery
> Subject: Re: Documentation Error?
> 
> 
> man rc.conf and search for "network_interfaces".  The reason it still 
> works is that if you do a simple test with your ifconfig both:
> 
> ifconfig wi0 192.168.0.6
> ifconfig wi0 inet 192.168.0.6
> 
> work as you would expect.
> 

I think /stand/sysinstall sets the alias interfaces up with the "inet"

Ted
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Documentation Error?

2005-03-01 Thread Jason D. Montgomery
Cool, I thought I had tried that as well without success, but I'll take
your word and experience over mine any day. :)

Thanks for the clarification and actually responding to a random email.

later,
jason

-Original Message-
From: Jerry McAllister [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 28, 2005 5:54 PM
To: Jason D. Montgomery
Cc: [EMAIL PROTECTED]
Subject: Re: Documentation Error?

> 
>
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-v
> irtual-hosts.html
> 
> states that adding a virtual address is done in rc.conf like this:
> 
> ifconfig_fxp0="inet 10.1.1.1 netmask 255.255.255.0"
> ifconfig_fxp0_alias0="inet 10.1.1.2 netmask 255.255.255.255"
> 
> Shouldn't it be this instead?
> 
> ifconfig_fxp0="inet 10.1.1.1 netmask 255.255.255.0"
> ifconfig_fxp0_alias0="alias 10.1.1.2 netmask 255.255.255.255"
> 
> (keyword passed to ifconfig is alias instead of inet)
> 

It shouldn't be either.   It should be:

  ifconfig_fxp0_alias0="10.1.1.2 netmask 255.255.255.255"

With neither 'inet' or 'alias' within the quotes for the alias
definition.
At least that is the way it works for us on about 75 servers.

jerry

>  
> 
> later,
> 
> jason
> 
> -=-=-=-=-=-=-=-=-=-=-
> 
> jason d. montgomery
> 
> ATGi
> 
> -=-=-=-=-=-=-=-=-=-=-
> 



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Documentation Error?

2005-03-01 Thread Jason D. Montgomery
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"

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

Am I just missing something else?

FYI:

# uname -a
FreeBSD ns2.atgi.com 4.9-RELEASE-p1 FreeBSD 4.9-RELEASE-p1 #0: Fri Dec
5 15:13:58 EST 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/NS2  i386

later,
jason
-Original Message-
From: Chris Hodgins [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 01, 2005 11:39 AM
To: Jerry McAllister
Cc: Ted Mittelstaedt; [EMAIL PROTECTED]; Jason D. Montgomery
Subject: Re: Documentation Error?

Jerry McAllister wrote:
>>[EMAIL PROTECTED] wrote:
>>
>>>http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/confi
>>>gtuning-v irtual-hosts.html
>>>
>>>states that adding a virtual address is done in rc.conf like this:
>>>
>>>ifconfig_fxp0="inet 10.1.1.1 netmask 255.255.255.0"
>>>ifconfig_fxp0_alias0="inet 10.1.1.2 netmask 255.255.255.255"
>>>
>>>Shouldn't it be this instead?
>>>
>>>ifconfig_fxp0="inet 10.1.1.1 netmask 255.255.255.0"
>>>ifconfig_fxp0_alias0="alias 10.1.1.2 netmask 255.255.255.255"
>>
>>No.  The actual command to make one is:
>>
>>ifconfig fxp0 inet 10.1.1.2 netmask 255.255.255.255 alias
>>
>>So you do need to pass the "inet" to ifconfig.  The _alias0 makes
>>the script pass the trailing "alias"
> 
> 
> H,   So what is happening when no 'inet' is in the string?
> It seems to work fine.Is something still not right and just
> waiting to explode?We have lots of servers configured that way.
> 
> jerry
> 
> 
>>Ted
>>
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
> 

man rc.conf and search for "network_interfaces".  The reason it still 
works is that if you do a simple test with your ifconfig both:

ifconfig wi0 192.168.0.6
ifconfig wi0 inet 192.168.0.6

work as you would expect.

HTH
Chris



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Documentation Error?

2005-03-01 Thread Chris Hodgins
Jerry McAllister wrote:
[EMAIL PROTECTED] wrote:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/confi
gtuning-v irtual-hosts.html
states that adding a virtual address is done in rc.conf like this:
ifconfig_fxp0="inet 10.1.1.1 netmask 255.255.255.0"
ifconfig_fxp0_alias0="inet 10.1.1.2 netmask 255.255.255.255"
Shouldn't it be this instead?
ifconfig_fxp0="inet 10.1.1.1 netmask 255.255.255.0"
ifconfig_fxp0_alias0="alias 10.1.1.2 netmask 255.255.255.255"
No.  The actual command to make one is:
ifconfig fxp0 inet 10.1.1.2 netmask 255.255.255.255 alias
So you do need to pass the "inet" to ifconfig.  The _alias0 makes
the script pass the trailing "alias"

H,   So what is happening when no 'inet' is in the string?
It seems to work fine.Is something still not right and just
waiting to explode?We have lots of servers configured that way.
jerry

Ted
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"
man rc.conf and search for "network_interfaces".  The reason it still 
works is that if you do a simple test with your ifconfig both:

ifconfig wi0 192.168.0.6
ifconfig wi0 inet 192.168.0.6
work as you would expect.
HTH
Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Documentation Error?

2005-03-01 Thread Jerry McAllister
> 
> [EMAIL PROTECTED] wrote:
> > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/confi
> > gtuning-v irtual-hosts.html
> > 
> > states that adding a virtual address is done in rc.conf like this:
> > 
> > ifconfig_fxp0="inet 10.1.1.1 netmask 255.255.255.0"
> > ifconfig_fxp0_alias0="inet 10.1.1.2 netmask 255.255.255.255"
> > 
> > Shouldn't it be this instead?
> > 
> > ifconfig_fxp0="inet 10.1.1.1 netmask 255.255.255.0"
> > ifconfig_fxp0_alias0="alias 10.1.1.2 netmask 255.255.255.255"
> 
> No.  The actual command to make one is:
> 
> ifconfig fxp0 inet 10.1.1.2 netmask 255.255.255.255 alias
> 
> So you do need to pass the "inet" to ifconfig.  The _alias0 makes
> the script pass the trailing "alias"

H,   So what is happening when no 'inet' is in the string?
It seems to work fine.Is something still not right and just
waiting to explode?We have lots of servers configured that way.

jerry

> 
> Ted
> 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Documentation Error?

2005-02-28 Thread Ted Mittelstaedt
[EMAIL PROTECTED] wrote:
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/confi
> gtuning-v irtual-hosts.html
> 
> 
> 
> states that adding a virtual address is done in rc.conf like this:
> 
> ifconfig_fxp0="inet 10.1.1.1 netmask 255.255.255.0"
> ifconfig_fxp0_alias0="inet 10.1.1.2 netmask 255.255.255.255"
> 
> Shouldn't it be this instead?
> 
> ifconfig_fxp0="inet 10.1.1.1 netmask 255.255.255.0"
> ifconfig_fxp0_alias0="alias 10.1.1.2 netmask 255.255.255.255"
> 
> 

No.  The actual command to make one is:

ifconfig fxp0 inet 10.1.1.2 netmask 255.255.255.255 alias

So you do need to pass the "inet" to ifconfig.  The _alias0 makes
the script pass the trailing "alias"

Ted

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Documentation Error?

2005-02-28 Thread Jerry McAllister
> 
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-v
> irtual-hosts.html
> 
> states that adding a virtual address is done in rc.conf like this:
> 
> ifconfig_fxp0="inet 10.1.1.1 netmask 255.255.255.0"
> ifconfig_fxp0_alias0="inet 10.1.1.2 netmask 255.255.255.255"
> 
> Shouldn't it be this instead?
> 
> ifconfig_fxp0="inet 10.1.1.1 netmask 255.255.255.0"
> ifconfig_fxp0_alias0="alias 10.1.1.2 netmask 255.255.255.255"
> 
> (keyword passed to ifconfig is alias instead of inet)
> 

It shouldn't be either.   It should be:

  ifconfig_fxp0_alias0="10.1.1.2 netmask 255.255.255.255"

With neither 'inet' or 'alias' within the quotes for the alias definition.
At least that is the way it works for us on about 75 servers.

jerry

>  
> 
> later,
> 
> jason
> 
> -=-=-=-=-=-=-=-=-=-=-
> 
> jason d. montgomery
> 
> ATGi
> 
> -=-=-=-=-=-=-=-=-=-=-
> 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Documentation Error?

2005-02-28 Thread Pat Maddox
I don't know what the difference is between passing inet and alias,
but all my configs have inet, and it works fine.


On Mon, 28 Feb 2005 15:07:26 -0500, Jason D. Montgomery <[EMAIL PROTECTED]> 
wrote:
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-v
> irtual-hosts.html
> 
> states that adding a virtual address is done in rc.conf like this:
> 
> ifconfig_fxp0="inet 10.1.1.1 netmask 255.255.255.0"
> ifconfig_fxp0_alias0="inet 10.1.1.2 netmask 255.255.255.255"
> 
> Shouldn't it be this instead?
> 
> ifconfig_fxp0="inet 10.1.1.1 netmask 255.255.255.0"
> ifconfig_fxp0_alias0="alias 10.1.1.2 netmask 255.255.255.255"
> 
> (keyword passed to ifconfig is alias instead of inet)
> 
> later,
> 
> jason
> 
> -=-=-=-=-=-=-=-=-=-=-
> 
> jason d. montgomery
> 
> ATGi
> 
> -=-=-=-=-=-=-=-=-=-=-
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Documentation Error?

2005-02-28 Thread Jason D. Montgomery
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-v
irtual-hosts.html

 

states that adding a virtual address is done in rc.conf like this:

ifconfig_fxp0="inet 10.1.1.1 netmask 255.255.255.0"
ifconfig_fxp0_alias0="inet 10.1.1.2 netmask 255.255.255.255"

Shouldn't it be this instead?

ifconfig_fxp0="inet 10.1.1.1 netmask 255.255.255.0"
ifconfig_fxp0_alias0="alias 10.1.1.2 netmask 255.255.255.255"

 

(keyword passed to ifconfig is alias instead of inet)

 

later,

jason

-=-=-=-=-=-=-=-=-=-=-

jason d. montgomery

ATGi

-=-=-=-=-=-=-=-=-=-=-

 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"