ldvhai
asked on
Reset eth0 on Linux!
Hi All,
When I run ifconfig on the CentOS, information of eth0:
eth0 Link encap:Ethernet HWaddr 00:0C:29:87:91:F9
inet addr:192.168.102.111 Bcast: 192.168.102.255 Mask:255.255.255.0
.....
RX bytes:10623376070 (9.8 GiB) TX bytes:97989127014 (91.2 GiB)
How can I reset these counters especially RX/TX packets? (I don't want to use "/etc/init.d/network restart")
Thks in advance,
LDVHAI.
When I run ifconfig on the CentOS, information of eth0:
eth0 Link encap:Ethernet HWaddr 00:0C:29:87:91:F9
inet addr:192.168.102.111 Bcast: 192.168.102.255 Mask:255.255.255.0
.....
RX bytes:10623376070 (9.8 GiB) TX bytes:97989127014 (91.2 GiB)
How can I reset these counters especially RX/TX packets? (I don't want to use "/etc/init.d/network restart")
Thks in advance,
LDVHAI.
ASKER
Thanks for your answer:
The information got from CentOS
[root@ldvhai ~]# ethtool -i eth0
driver: e1000
version: 7.3.21-k4-3-NAPI
firmware-version: N/A
bus-info: 0000:02:00.0
[root@ldvhai ~]#
Thks,
The information got from CentOS
[root@ldvhai ~]# ethtool -i eth0
driver: e1000
version: 7.3.21-k4-3-NAPI
firmware-version: N/A
bus-info: 0000:02:00.0
[root@ldvhai ~]#
Thks,
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
service network restart
OR
ifdown eth0
ifup eth0
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for your anwser.
ASKER
Thanks for your anwser.
You can check if the driver is a kernel module by doing
#ethtool -i eth0