[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: enable duplex



On Thursday 15 July 2004 11:00, Jacob Friis Larsen hurled the following on the 
wire:
> I have a HP ProLiant DL140 with Integrated Dual Broadcom 10/100/1000 NICs.
>
> Am I correct that duplex means that I can use the two jacks as one?

No, I'm affraid not. The 'duplex full' means that the NIC is in full duplex 
mode. Another option is half duplex mode.
Full duplex means that the card will do transmitting and receiving at the same 
time. Half duplex means that it will either transmit or receive.
Typically you want your card to be in full duplex. However, the card can 
negatiate it's own duplex setting. That's what the 'autoneg' parameter id 
for. Set it on to let the card negotiate the settings. Autonegotitation 
should be fine and worry free for you.

> What happens if one of the jacks suddenly is not connected?

If you want to use both interfaces as one (so that the link stays up if one is 
disconnected) you need to use bonding:
http://www.sourceforge.net/projects/bonding/

Quick howto (but please read the documentation first):

Make sure that the bonding module is installed in your kernel.
Bonding should be included in the output of lsmod.
To set up failover, you should configure the 2 interfaces first (each with an 
ip address)
Configure the bonding module with the following command:

modprobe bonding miimon=250 mode=1

The miimon parameter sets the timeout between the checks for interface
connectivity. Thus an interface failure can be undetected for max. 250
milliseconds (a quarter of a second).

Next we configure the virtual interface:

ifconfig bond0 10.100.20.230

Finally we enslave the other interfaces:

ifenslave bond0 eth0 eth1

Make sure to change the ip addresses as needed. Also, this is from a redhat 
server, but it shouldn't be to different from debian.

Good luck

joost


DISCLAIMER
This e-mail and any attached files are confidential and may be legally privileged. If you are not the addressee, any disclosure, reproduction, copying, distribution, or other dissemination or use of this communication is strictly prohibited. If you have received this transmission in error please notify A.S.T.R.I.D.  nv/sa immediately and then delete this e-mail.



Reply to: