我最近购买了一个被宣传为100Mbps上行链路的VPS,但该促销承诺免费升级到1Gbps上行链路。 我试图找出如果我没有得到任何运气的各种方法升级。
运行lspci我得到:
[root@host ~]# lspci pcilib: Cannot open /proc/bus/pci lspci: Cannot find any working access method. [root@host ~]#
同样,运行lshw和ethtool也不会显示任何networking信息。
ifconfig -a显示:
[root@host /]# ifconfig -a lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:1662 errors:0 dropped:0 overruns:0 frame:0 TX packets:1662 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:97474 (95.1 KiB) TX bytes:97474 (95.1 KiB) venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:127.0.0.1 PtP:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255 UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1 RX packets:256143 errors:0 dropped:0 overruns:0 frame:0 TX packets:177324 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:280427908 (267.4 MiB) TX bytes:76882233 (73.3 MiB) venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:198.xx.xxx.xx PtP:198.xx.xxx.xx Bcast:198.xx.xxx.xx Mask:255.255.255.255 UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1 [root@host /]#
也许这个服务器没有PCI,如果是这样的话还有什么其他办法可以找出上行速度吗?
我find了一种方法来testing你是否在100mbps或1gbps的上行链路上,你下载这个python脚本,用speedtest.net进行速度testing
wget -O speedtest-cli.py https://github.com/sivel/speedtest-cli/raw/master/speedtest_cli.py
然后,一旦你有脚本你做:
python speedtest-cli.py --share
这是我的结果:

这certificate我的工作站是在full-dulpex transmission 1 gigabit per second uplink
使用ethtool与接口的参数,例如ethtool eth0 。
Dmesg可能有其他有用的信息,但它是暂时的。