Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Network Card Syntax ???

Need help with peripherals or devices?
Post Reply
Message
Author
Tails
Posts: 11
Joined: 2004-09-17 03:28
Location: In A Box
Contact:

Network Card Syntax ???

#1 Post by Tails »

What's the sytax to set the network card to a specific speed/duplex setting in the /etc/network/interfaces file? Here's my current settings:

auto eth0
iface eth0 inet static
address x.x.x.x
netmask x.x.x.x
network x.x.x.x
broadcast x.x.x.x
gateway x.x.x.x

Tails

miikkajo
Posts: 4
Joined: 2004-09-16 16:54

Re: Network Card Syntax ???

#2 Post by miikkajo »

you cannot specify speed and dublex from /etc/network/interfaces file

but there is few packages for that purpose:

mii-diag: contains mii-tool - manipulate media-independent interface status

nictools-nopci and
nictools-pci: contains tools for specific ethernet card type


example:

use mii-tool -F 100baseTx-FD eth0 to switch you nic to 100 full duplex mode

and

use mii-tool -F 100baseTx-HD eth0 to switch you nic to 100 half duplex mode

Tails
Posts: 11
Joined: 2004-09-17 03:28
Location: In A Box
Contact:

#3 Post by Tails »

Thanks miikkajo :)


Tails

Guest

#4 Post by Guest »

> you cannot specify speed and dublex from /etc/network/interfaces file

Not true. See http://bugs.debian.org/256240 .

Jeroen
Debian Developer, Site Admin
Debian Developer, Site Admin
Posts: 483
Joined: 2004-04-06 18:19
Location: Utrecht, NL
Contact:

#5 Post by Jeroen »

Eh, please read that bug carefully. It is a _wishlist_ to be able to do so, and it is refused. So, indeed, it is not possible, and it also shouldn't, /etc/network/interfaces is for protocol configuration, it is not intended as a hardware level configuration tool.

x
Posts: 4
Joined: 2004-09-14 23:32
Location: Chile

#6 Post by x »

You can run ethtool (or mii-tool) after the network card is brought up using the "up" option of the interfaces file, for example:

Code: Select all

auto eth0
iface eth0 inet static
address x.x.x.x
netmask x.x.x.x
network x.x.x.x
broadcast x.x.x.x
gateway x.x.x.x 
up ethtool -s eth0 speed 100 autoneg on
Xavier

Devastator
Posts: 9
Joined: 2004-09-20 12:20
Location: /dev/tty1

#7 Post by Devastator »

What would be the point of setting these values ?

Guest

#8 Post by Guest »

Devastator wrote:What would be the point of setting these values ?
There is some (old) hardware that doesn't support autonegotiation, bad wiring doesn't allow 100 mpbs or sometimes autonegotiation fails.

Xavier

Tails
Posts: 11
Joined: 2004-09-17 03:28
Location: In A Box
Contact:

#9 Post by Tails »

Devastator wrote:What would be the point of setting these values ?
Because it's a habit that I set all my core servers NIC card settings to 100/Full and take autonegotiation out of the picture....:) Same with the switch side also. That way it's almost impossible to get a speed/duplex mismatch.


Tails

sprucio
Posts: 143
Joined: 2005-03-29 03:30

#10 Post by sprucio »

This is a nice feature. I think I can safely say that most work environments that have high end switches will need this for full optimization.

Post Reply