Configure Speed and Duplex in Ubuntu

If you have a colocated Ubuntu server with CeraNet then you may need to modify the speed and duplex for best performance. CeraNet will provide you with the appropriate settings. If CeraNet tells you to configure your WAN link for auto-negotiate then you will likely not need to do anything in Ubuntu. Otherwise, you may need to hard-code your link as follows:

1) Install ethtools, if not already installed

  • $ sudo apt-get install ethtool net-tools

2) Verify WAN link properties

  • $ sudo ethtool eth0
  • NOTE: you may need to replace eth0 with the name of the NIC that you have connected to the WAN (i.e. eth1, etc.)
  • NOTE: if your WAN link was specified as auto-negotiate by CeraNet then the results should say Auto-negotiation: on and the Speed and Duplex should match the speed on your contract. If this is the case then you should not need to do anything more with your Ubuntu configuration.
  • NOTE: if your WAN link was specified to be hard-coded by CeraNet then the results should say Auto-negotiation: off and the Speed and Duplex should match the speed on your contract. Even if the Speed and Duplex match the desired values you should continue to follow the instructions below.
3) Hard-code WAN link
  • $ sudo vi /etc/init.d/10Full
  • NOTE: Insert the following script into the file. Start editing by clicking i for insert
#!/bin/sh
ETHTOOL="/usr/sbin/ethtool"
ETHTOOL_OPTS="speed 10 duplex full autoneg off"
DEV="eth0"
case "$1" in
start)
echo -n "Setting $DEV options to $ETHTOOL_OPTS...";
$ETHTOOL -s $DEV $ETHTOOL_OPTS;
echo " done.";;
stop)
;;
esac
exit 0
  • NOTE: Adjust the ETHTOOL_OPTS variable with values as specified by CeraNet. Adjust DEV variable based on the NIC being used on your server for the WAN connection.
  • NOTE: Save the file using the vi editor by clicking {esc}:wq{enter}
4) Apply the script to run at boot.
  • $ sudo chmod +x /etc/init.d/10Full
  • $ sudo update-rc.d 10Full defaults
  • NOTE: Reboot server and once logged back in verify that the settings are correct by following Step 2.
If you have any problems please contact CeraNet Technical Support (existing clients only).
 
  • 35 Users Found This Useful
Was this answer helpful?

Related Articles

Change Time Zone in CentOS

Changing the time zone on a CentOS server is fairly easy.   First, you'll need to know your...

Change Time Zone in CentOS

Changing the time zone on a CentOS server is fairly easy.   First, you'll need to know your...

Configure Speed and Duplex in CentOS

If you have a colocated CentOS server with CeraNet then you may need to modify the speed and...

Configure Speed and Duplex in CentOS

If you have a colocated CentOS server with CeraNet then you may need to modify the speed and...

Exit Gnome

Gnome is a GUI interface often used with Debian.  If you need to exit the GUI and go into the...