Ⅰ 虛擬機網速慢,主機有100M,虛擬機只有10M,為什麼
可能是沒安裝驅動,安裝虛擬網卡驅動就好了
希望可以幫助你,請採納
Ⅱ 為什麼按100M 網線做法,「本地連接」只顯示10M
「本地連接」,顯示10M,說明本地網卡當前支持10M的網路速度模式,可以到網卡屬性里調整。
1、我的電腦--右鍵--管理--設備管理器--網路適配器;
Ⅲ vm虛擬機安裝中的系統網速為什麼只有10.mbps,而不是和物理機網速(100.mbps)一樣呢
沒有安裝網卡驅動啊。裝了應當是1000m的。
需要安裝vmtools或者xentool
Ⅳ ubuntu20.04隻有10m帶寬
內存或者上傳下載慢。
虛擬機網速慢,我覺得就兩個限制因素。一個是虛擬機的內存,內存小了,上傳和下載的速率就慢了,就像內存小的虛擬機跑得慢是一個道理。
虛擬機VirtualMachine指通過軟體模擬的具有完整硬體系統功能的、運行在一個完全隔離環境中的完整計算機系統。
一.修改網卡參數
1.1 查詢網卡名
ip addr或ifconfig均可
xue@xue-EZpad6:~$ ip addr
2: enx00e04c3603d8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 00:e0:4c:36:03:d8 brd ff:ff:ff:ff:ff:ff
inet 10.0.0.110/24 brd 10.0.0.255 scope global dynamic noprefixroute enx00e04c3603d8
valid_lft 73698sec preferred_lft 73698sec
inet6 fe80::75f7:f5c3:e075:ade6/64 scope link noprefixroute
valid_lft forever preferred_lft forever
1.2 安裝ethtool工具
sudo apt install ethtool
xue@xue-EZpad6:~$ ethtool enx00e04c3603d8
Settings for enx00e04c3603d8:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: 10Mb/s
Duplex: Full
Port: MII
PHYAD: 32
Transceiver: internal
Auto-negotiation: on
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x00007fff (32767)
drv probe link timer ifdown ifup rx_err tx_err tx_queued intr tx_done rx_status pktdata hw wol
Link detected: yes
問題就在這里,Speed: 10Mb/s
1.3 通過測試,命令如下
sudo ethtool -s enx00e04c3603d8 speed 100 plex full autoneg off
speed 100 設置速度(我的網卡最大隻支持100Mb/s),plex full 設置全雙工模式, autoneg off 關閉自動協商
注:最重要的是第三個參數,開啟了自動協商,設置速度是無效的,因為網卡和路由器協商的結果就是10Mb/s,只有關閉了協商,才能讓網卡強制運行100Mb/s模式.
二.設置開機啟動
經過ethtool設置後,只是當前有效,重啟設備後即失效,故需把命令添加到開機啟動中,讓他自動生效
2.1 編輯/lib/systemd/system/rc.local.service,設置啟動參數,添加如下代碼
sudo vim /lib/systemd/system/rc.local.service
[Install]
WantedBy=multi-user.target
Alias=rc-local.service
2.2設置軟連接,開機啟動回去/etc/……這個目錄下去找文件
ln -s /lib/systemd/system/rc.local.service /etc/systemd/system/rc.local.service
2.創建/etc/rc.local,寫入需要開啟啟動的命令
sudo vim /etc/rc.local
#!/bin/bash
ethtool -s enx00e04c3603d8 speed 100 plex full autoneg off
exit 0
:x保存退出
2。4 為/etc/rc.local附加執行許可權
sudo chmod +x /etc/rc.local
2.5 重啟設備
reboot
2.6 用ethtool檢查結果
xue@xue-EZpad6:~$ ethtool enx00e04c3603d8
Settings for enx00e04c3603d8:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 32
Transceiver: internal
Auto-negotiation: off
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x00007fff (32767)
drv probe link timer ifdown ifup rx_err tx_err tx_queued intr tx_done rx_status pktdata hw wol
Link detected: yes
Speed: 100Mb/s
————————————————
版權聲明:本文為CSDN博主「Mr_老冷」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/mr_oldcold/article/details/93617999