1753970 Members
7390 Online
108811 Solutions
New Discussion юеВ

Re: rhel5 nic problem

 
venugopalanramraj
Occasional Contributor

rhel5 nic problem

in rhel 5 my nic card is working for same time and some time its not shown in the modules itself. how to check the nic card is working fine or not. what r the commands are need to check it
3 REPLIES 3
Suman_1978
HPE Pro

Re: rhel5 nic problem

Hi,
May be you can try these commands in Linux.

ifconfig $interface -- show the information for $interface (usually something like ifconfig eth0)

ethtool $interface

Thanks

I work for HPE.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

Accept or Kudo

Tim Nelson
Honored Contributor

Re: rhel5 nic problem

lspci

is the card still there ? if it does not show then it is probably toast and in need of replacing.



~sesh
Esteemed Contributor

Re: rhel5 nic problem

There are many ways to check if the NIC card is working or not.

1. On the hardware level, first check if the NIC port has the link light and activity light turning on. If yes, on to step 2.

2. Check the NIC is recognized in RHEL.
# dmesg

3. Check if the NIC interface shows an IP address. To do this:
# ifconfig ethX

If no IP address, consider the NIC configuration for either DHCP or static.

4. Next check if you can ping some other known ip address (in the same network):
# ping -I ethX 192.168.1.1

If you find any issues, check the driver being used for the NIC:
# ethtool -i ethX

If the driver information is displayed, check if the driver is loaded:
# lsmod

Note: you can pipe the output to grep for the driver name returned by ethtool. E.g.
# lsmod | grep

This should give you a fair idea of how the NIC is working, and where the possible issue could be. Good luck!