Discussion Locked

forcing speed/mode on a NIC

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have Red Hat 8.0. I want to force the NIC to 100 Full Duplex. I'm assuming that the default is auto negotiate. I manage many Solaris servers and found that the negotiation isn't always working with our switches so all ports are forced 100 FD onthe switches. I could set a port back to Auto but I'd rather not. In Solaris ndd is used to set this and many other parameters. I have found that the other similiar parameters are set via /etc/sysctl.conf in Linux, but I don't see the proper syntax for doing this one anywhere.

6 replies

by pokhylchenko

#ifconfig media 100baseTX mediaopt full-duplex

This is live command from FreeBSD, see for some differrences in Linux, I doubt that there's any.

by cpfeiffe

I tried ifconfig in Red Hat. It appears that it only allows you to set the speed but not the mode. This would be OK if there is another way to set the mode. I have tried to look everywhere I can think of including redhat.com so I'm completely outof ideas here.

by jasonc

Hello I have recently found a tool in linux 7.3 that i think is included in every version of linux. Try 'mii-tool --h'. You will be able to force the NIC to any speed and restart network or the system.

Jason Couto

by cpfeiffe

This does seem to work except that my NIC driver doesn't allow me to set the mode. I found another NIC which has a more recent driver available and this worked. ifconfig still doesn't let you set mode in Linux.

This discussion is closed to new replies.