Bobcares

Fix ethtool no such device error

by | Jul 7, 2020

Webmaster and online service providers often inform that they are receiving a “no such device” message while using the ethtool command. This happens due to missing interface, driver issue etc.

As a part of our Server Management Services, we have helped online service providers to fix several similar Cloudflare errors.

Today, let’s discuss some tips to fix the DNS resolution error.

What causes ethtool no such device error?

Ethtool is a Network Interface Card configuration command that allows you to retrieve information and change your NIC settings. At times users may face a “no such device” error message while using this command. The typical error message looks like :

ethtool no such device error

The common reasons for this error message include:

1. Missing Interface or it renamed to any other name

2. Driver issue

3. Selinux block

How to troubleshoot ethtool no such device error?

The first step to start troubleshooting the issue would be to check the dmesg output. dmesg is a command that Linux operating systems use to print the message buffer of the kernel. Since we here need the output related to an interface, we can use the following command to collect the required details:

dmesg | grep <interface_name>

For example, for the interface eth0 ,

dmesg |grep eth0

The output of the above command may resemble the one given below:

bnx2 0000:04:00.0: eth0: Broadcom NetXtreme II BCM5708 1000Base-T (B2)
PCI-X 64-bit 133MHz found at mem c8000000, IRQ 18, node addr 00:14:5e:fd:6d:76
udev: renamed network interface eth0 to eth3

It confirms that the reason here is that the network interface was renamed from eth0 to eth3. Rename of the interface file or performing a cleanup of the subsystem will help to fix this error.

Let us now look at the steps to fix the error.

Rename the file

As we discussed earlier, if the rename of the interface triggers the no such device message, changing the interface file name fixes the error. For instance, if the interface was renamed from eth0 to eth3, we could follow the steps below:

1.Rename ifcfg-eth0 file to ifcfg-eth3

# mv /etc/sysconfig/network-script/ifcfg-eth0 /etc/sysconfig/network-script/ifcfg-eth3

2. Rename DEVICE parameter inside /etc/sysconfig/network-script/ifcfg-eth3

DEVICE=”eth3″
…
…

Another method is actually to clean up all the SUBSYSTEM Information and reboot. Hopefully, the eth0 is mapped back to /etc/sysconfig/network-script/ifcfg-eth0

Alternatively,  try modifying the /etc/udev/rules.d/70-persistent-net.rules and reboot. For instance, the contents of the file may resemble:

# PCI device 0x0000:0x0001 (bnx2)

SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”,
ATTR{address}==”00:00:00:00:00:01″, ATTR{type}==”1″,
KERNEL==”eth*”, NAME=”eth3″

The value of the NAME field needs to be changed to eth0. Once you are done, reload the udev configuration with the command start_udev

# start_udev

Finally, the network configuration needs to be updated.

# service network restart

 

Disable Selinux

Another option to fix the no such device error is to disable Selinux. Selinux is a Linux kernel security feature for access control. We could cross-check the status of it using the command below:

#sestatus

To disable SELinux on CentOS 7 temporarily, we can use the command

#setenforce 0

Similarly to set it disabled permanently, we will need to edit the SELinux configuration file.

#vi /etc/selinux/config  and set the SELINUX to disabled

Finally, reboot the server for the changes to take effect.

[Need assistance to fix ethtool no such device error? We’ll help you.]

Conclusion

In short, no such device error occurs due to reasons like renamed interface name, SELinux block etc. Today we discussed some tips that our Support Engineers follow to fix the ethtool error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF