Duplex and Speed on Linux

To check duplex and speed on the Smoothwall:

#ethtool ethA (always recommended to set the auto-negotiate on the switch side for the interface where Smoothwall is connected)

(for example to change the MTU size on the fly for testing purposes) (Shows the network speed and information about the interface)

To change the speed, duplex and the auto-negotiate for an interface:

#ethtool -s ethX speed 100 duplex full autoneg off (to turn off the auto negotiate)

OR

#vi /etc/actions/secondboot/9999custom

(insert the following in the file)

#! /bin/sh

/usr/sbin/ethtool -s ethC duplex full speed 100 autoneg off

(now press escape :wq! )

#chmod +x /etc/actions/secondboot/9999custom

#/etc/actions/secondboot/9999custom

(Finally, you need to reboot to exectute the startup script created, if required)

Advertisements

Posted on January 6, 2016, in Linux (Ubuntu/CentOS). Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: