Re: Hard-set network via ifup scripts...

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



Ray Van Dolson wrote:
Anyone know off the top of their head the "right" way to hard set a
link automatically to 100Mbps Full Duplex, etc using the ifup or ifcfg
files?

Don't see options in the scripts that might cover this, but maybe
there's a more elegant way to do it than to do something in rc.local or
hack up the ifup files myself...

You can add a line like:

ETHTOOL_OPTS="speed 100 duplex full autoneg off"

to the /etc/sysconfig/network-scripts/ifcfg-eth? files. But note that if you hard set one side of a link you must do the same on the other (switch) side or it will take the lack of negotiation to mean that it must assume half duplex.

--
  Les Mikesell
    lesmikesell@xxxxxxxxx
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux