howtos:setting_network_speed_and_duplex
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | howtos:setting_network_speed_and_duplex [02/12/2018 21:34] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Changing your Network Interface Speed, Duplex or Auto Negotiate settings on Red Hat Linux ====== | ||
+ | To set the interface speed, duplex or auto negotiation on Linux system boot up (make settings permanent), you need edit / | ||
+ | |||
+ | Open the file: | ||
+ | < | ||
+ | # vi / | ||
+ | </ | ||
+ | |||
+ | Append following line: | ||
+ | |||
+ | < | ||
+ | ETHTOOL_OPTS=" | ||
+ | </ | ||
+ | |||
+ | Save and close the system. It will set the eth0 device to 100Mbs, full duplex, with the auto negotiation off at boot time. You can simply restart the networking (it will disconnect all ssh or ftp session) or restart the server. Depend upon traffic and load it may take upto 1 minute to setup a new port speed: | ||
+ | |||
+ | < | ||
+ | # / | ||
+ | </ | ||
+ | |||
+ | If you want 1000Mbs set line as follows: | ||
+ | |||
+ | < | ||
+ | ETHTOOL_OPTS=" | ||
+ | </ | ||
+ | |||
+ | If above command failed to work for 1000Mbps use following command: | ||
+ | |||
+ | < | ||
+ | ETHTOOL_OPTS=" | ||
+ | </ | ||
+ | |||
+ | |||
+ | ====== Debian or Ubuntu Linux permanent settings ====== | ||
+ | |||
+ | |||
+ | Under Debian or Ubuntu Linux just create a script as follows: | ||
+ | |||
+ | < | ||
+ | # vi / | ||
+ | </ | ||
+ | |||
+ | or | ||
+ | |||
+ | < | ||
+ | $ sudo vi / | ||
+ | </ | ||
+ | |||
+ | Append following lines: | ||
+ | |||
+ | < | ||
+ | #!/bin/sh | ||
+ | ETHTOOL="/ | ||
+ | DEV=" | ||
+ | SPEED=" | ||
+ | case " | ||
+ | start) | ||
+ | echo -n " | ||
+ | $ETHTOOL -s $DEV speed $SPEED; | ||
+ | echo " done.";; | ||
+ | stop) | ||
+ | ;; | ||
+ | esac | ||
+ | exit 0 | ||
+ | </ | ||
+ | |||
+ | Save and close the file. | ||
+ | |||
+ | Setup executable permission: | ||
+ | |||
+ | < | ||
+ | # chmod +x / | ||
+ | </ | ||
+ | |||
+ | Now run script when Debian or Ubuntu Linux boots up. | ||
+ | |||
+ | Use update-rc.d command install System-V style init script links: | ||
+ | |||
+ | < | ||
+ | # update-rc.d 100Mbs defaults | ||
+ | </ | ||
+ | |||
+ | or | ||
+ | |||
+ | < | ||
+ | # sudo update-rc.d 100Mbs defaultsOutput: | ||
+ | |||
+ | | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | Reboot the system to take effect or just type script name: | ||
+ | |||
+ | < | ||
+ | # / | ||
+ | |||
+ | or | ||
+ | |||
+ | < | ||
+ | $ sudo / | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | Source: http:// |
howtos/setting_network_speed_and_duplex.txt · Last modified: 02/12/2018 21:34 by 127.0.0.1