他奶奶的trac登录不稳定的问题原来在网卡上,shit了!
《浅析ubuntu下如何修改网卡网速--将 100M网卡改为10M网卡》《linux下如何修改网卡mac地址和随机产生 mac地址》下面来看看网卡的参数,开始一直使用的就是eth0,后来apache2登上之后,
我下载600M的文件,发现速度竟然只有1.5MB/s,真是怪了,
后来想起来使用ethtool看网卡参数,结果一下子就清楚了,
下面是参数详细信息(PC为工控机)
在eth0网线拔掉的情况下eth0竟然还有参数,真是够奇怪的,可能是eth0坏掉了,
可以要说eth0坏掉了,我还可以ssh上去,这下可真是有够奇怪的了[luther.gliethttp]
而且当apache2登录到eth0上之后,下载速度1.5MB/s,同时原来下载速度为
10M/s的eth1也被搞到了1.5MB/s,太搞了!!!!有时eth0也到能够到达10MB/s,
应该可能就是eth0不稳定了,就是不能知道是硬件不稳定(可能性比较大),还是驱动问题(可能性比较小)
PS:还有一种可能就是网管把eth0的mac给封了,真jb邪门!!!!
luther@gliethttp:~$ sudo ethtool eth0 // 在eth0网线拔掉情况下的log
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
Link detected: no
luther@gliethttp:~$ sudo ethtool eth1 // 在eth1网线插着的情况下
Settings for eth1:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbag
Wake-on: g
Current message level: 0x00000001 (1)
Link detected: yes
luther@gliethttp:~$
可以不再使用eth0,然后eth1的mac地址可以设置为eth0,然后eth1就能dhcp到eth0原来的ip地址了.
luther@gliethttp:~$ sudo ifconfig eth1 hw ether 00:22:46:01:db:b5
然后插拔一下网线即可.
阅读(1357) | 评论(1) | 转发(0) |