自适应网卡没法用100M,总是自动用10M

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
fengtou
帖子: 160
注册时间: 2007-06-22 16:15
系统: Ubuntu-mate

自适应网卡没法用100M,总是自动用10M

#1

帖子 fengtou » 2016-03-10 15:50

装的是ubuntu-mate,和windows通过samba传输文件,自适应网卡没法用100M,总是自动用10M,请问该怎么办?
网卡是NVIDIA的板载网卡,谢谢
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 自适应网卡没法用100M,总是自动用10M

#2

帖子 poloshiao » 2016-03-10 15:56

1. https://help.ubuntu.com/14.04/servergui ... interfaces
Ethernet Interfaces
Ethernet Interface Settings
sudo apt-get install ethtool
pre-up /sbin/ethtool -s eth0 speed 1000 duplex full
1-1. 上面的 1000 是 1000 Mb/s
1-2. http://manpages.ubuntu.com/manpages/tru ... ool.8.html
ethtool - query or control network driver and hardware settings

如果還有疑問 請提供你的 ubuntu 版本
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 自适应网卡没法用100M,总是自动用10M

#3

帖子 vickycq » 2016-03-10 16:31

代码: 全选

sudo lshw -numeric -C net
把结果全部复制贴上来
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
fengtou
帖子: 160
注册时间: 2007-06-22 16:15
系统: Ubuntu-mate

Re: 自适应网卡没法用100M,总是自动用10M

#4

帖子 fengtou » 2016-03-10 16:40

vickycq 写了:

代码: 全选

sudo lshw -numeric -C net
把结果全部复制贴上来
闪了一下就直接返回了,没有任何结果
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 自适应网卡没法用100M,总是自动用10M

#5

帖子 vickycq » 2016-03-10 16:41

fengtou 写了: 闪了一下就直接返回了,没有任何结果
或者详细说明你的硬件型号 规格
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
fengtou
帖子: 160
注册时间: 2007-06-22 16:15
系统: Ubuntu-mate

Re: 自适应网卡没法用100M,总是自动用10M

#6

帖子 fengtou » 2016-03-10 16:42

poloshiao 写了:1. https://help.ubuntu.com/14.04/servergui ... interfaces
Ethernet Interfaces
Ethernet Interface Settings
sudo apt-get install ethtool
pre-up /sbin/ethtool -s eth0 speed 1000 duplex full
1-1. 上面的 1000 是 1000 Mb/s
1-2. http://manpages.ubuntu.com/manpages/tru ... ool.8.html
ethtool - query or control network driver and hardware settings

如果還有疑問 請提供你的 ubuntu 版本
sudo ethtool -s enp0s7 speed 1000 duplex full
Cannot set new settings: Invalid argument
not setting speed
not setting duplex

最新版的 ubuntu-mate
fengtou
帖子: 160
注册时间: 2007-06-22 16:15
系统: Ubuntu-mate

Re: 自适应网卡没法用100M,总是自动用10M

#7

帖子 fengtou » 2016-03-10 16:45

vickycq 写了:
fengtou 写了: 闪了一下就直接返回了,没有任何结果
或者详细说明你的硬件型号 规格
我不知道什么命令看型号规格,以前windows直接可以看到,换了linux就看不了
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 自适应网卡没法用100M,总是自动用10M

#8

帖子 vickycq » 2016-03-10 16:51

fengtou 写了:fengtou 写道:
闪了一下就直接返回了,没有任何结果

代码: 全选

sudo lshw -C bridge
把结果全部复制贴上来

samba 传输数据的最大速度是多少?
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
fengtou
帖子: 160
注册时间: 2007-06-22 16:15
系统: Ubuntu-mate

Re: 自适应网卡没法用100M,总是自动用10M

#9

帖子 fengtou » 2016-03-10 16:55

vickycq 写了:
fengtou 写了:fengtou 写道:
闪了一下就直接返回了,没有任何结果

代码: 全选

sudo lshw -C bridge
把结果全部复制贴上来

samba 传输数据的最大速度是多少?
samba 传输数据最大是1M/s

sudo lshw -C bridge
*-isa
description: ISA bridge
product: MCP61 LPC Bridge
vendor: NVIDIA Corporation
physical id: 1
bus info: pci@0000:00:01.0
version: a2
width: 32 bits
clock: 66MHz
capabilities: isa bus_master
configuration: latency=0
resources: ioport:4f00(size=256)
*-pci:0
description: PCI bridge
product: MCP61 PCI bridge
vendor: NVIDIA Corporation
physical id: 4
bus info: pci@0000:00:04.0
version: a1
width: 32 bits
clock: 66MHz
capabilities: pci ht subtractive_decode bus_master cap_list
*-bridge
description: Ethernet interface
product: MCP61 Ethernet
vendor: NVIDIA Corporation
physical id: 7
bus info: pci@0000:00:07.0
logical name: enp0s7
version: a2
serial: 70:71:bc:0a:ff:5d
size: 100000000
capacity: 100000000
width: 32 bits
clock: 66MHz
capabilities: bridge pm msi ht bus_master cap_list ethernet physical mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=forcedeth driverversion=0.64 duplex=full ip=192.168.1.84 latency=0 link=yes maxlatency=20 mingnt=1 multicast=yes port=MII speed=100Mbit/s
resources: irq:29 memory:fbefd000-fbefdfff ioport:d480(size=8)
*-pci:1
description: PCI bridge
product: MCP61 PCI Express bridge
vendor: NVIDIA Corporation
physical id: 9
bus info: pci@0000:00:09.0
version: a2
width: 32 bits
clock: 33MHz
capabilities: pci pm msi ht pciexpress normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:24 ioport:e000(size=4096) memory:fbf00000-fbffffff ioport:e0000000(size=268435456)
*-pci:2
description: PCI bridge
product: MCP61 PCI Express bridge
vendor: NVIDIA Corporation
physical id: b
bus info: pci@0000:00:0b.0
version: a2
width: 32 bits
clock: 33MHz
capabilities: pci pm msi ht pciexpress normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:25
*-pci:3
description: PCI bridge
product: MCP61 PCI Express bridge
vendor: NVIDIA Corporation
physical id: c
bus info: pci@0000:00:0c.0
version: a2
width: 32 bits
clock: 33MHz
capabilities: pci pm msi ht pciexpress normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:26
*-pci:4
description: Host bridge
product: Family 10h Processor HyperTransport Configuration
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 100
bus info: pci@0000:00:18.0
version: 00
width: 32 bits
clock: 33MHz
*-pci:5
description: Host bridge
product: Family 10h Processor Address Map
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 101
bus info: pci@0000:00:18.1
version: 00
width: 32 bits
clock: 33MHz
*-pci:6
description: Host bridge
product: Family 10h Processor DRAM Controller
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 102
bus info: pci@0000:00:18.2
version: 00
width: 32 bits
clock: 33MHz
*-pci:7
description: Host bridge
product: Family 10h Processor Miscellaneous Control
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 103
bus info: pci@0000:00:18.3
version: 00
width: 32 bits
clock: 33MHz
configuration: driver=k10temp
resources: irq:0
*-pci:8
description: Host bridge
product: Family 10h Processor Link Control
vendor: Advanced Micro Devices, Inc. [AMD]
physical id: 104
bus info: pci@0000:00:18.4
version: 00
width: 32 bits
clock: 33MHz
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 自适应网卡没法用100M,总是自动用10M

#10

帖子 poloshiao » 2016-03-10 16:58

sudo ethtool -s enp0s7 speed 1000 duplex full
Cannot set new settings: Invalid argument
not setting speed
not setting duplex
1. pre-up /sbin/ethtool -s eth0 speed 1000 duplex full
不是下指令
而是寫在連線設定檔裏
啟動連線時 就生效
2. 連線設定檔 /etc/network/interfaces
3. sudo ifconfig -a
確定 你的有線網卡界面是 enp0s7
4. 1000 M 需要你的網卡/路由支援
如果不支援 試試 100 M
請提供你的 ubuntu 版本
最新版的 ubuntu-mate
5. 版本 指 14.04 15.10 ...
description: Ethernet interface
logical name: enp0s7
configuration: autonegotiation=on broadcast=yes driver=forcedeth driverversion=0.64 duplex=full ip=192.168.1.84 latency=0 link=yes maxlatency=20 mingnt=1 multicast=yes port=MII speed=100Mbit/s
6. 你這裡已是 100M
fengtou
帖子: 160
注册时间: 2007-06-22 16:15
系统: Ubuntu-mate

Re: 自适应网卡没法用100M,总是自动用10M

#11

帖子 fengtou » 2016-03-10 17:03

poloshiao 写了:
sudo ethtool -s enp0s7 speed 1000 duplex full
Cannot set new settings: Invalid argument
not setting speed
not setting duplex
1. pre-up /sbin/ethtool -s eth0 speed 1000 duplex full
不是下指令
而是寫在連線設定檔裏
啟動連線時 就生效
2. 連線設定檔 /etc/network/interfaces
3. sudo ifconfig -a
確定 你的有線網卡界面是 enp0s7
4. 1000 M 需要你的網卡/路由支援
如果不支援 試試 100 M

1.per-up: command not found
per-up 是什么意思呢?
2.要修改interfaces吗?
3.确定是enp0s7了
4.我的是10/100m,所以我只要100M,现在是自动选择10M
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: 自适应网卡没法用100M,总是自动用10M

#12

帖子 vickycq » 2016-03-10 17:05

fengtou 写了:*-bridge
size: 100000000
capacity: 100000000
...speed=100Mbit/s

我的是10/100m,所以我只要100M,现在是自动选择10M
从这里看 协商的速度等于 100000000 == 100M
samba 速度慢可能另有原因
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: 自适应网卡没法用100M,总是自动用10M

#13

帖子 poloshiao » 2016-03-10 17:36

per-up: command not found
1. 是 pre-up
per-up 是什么意思呢?
2. http://manpages.ubuntu.com/manpages/sau ... ces.5.html
pre-up command
Run command before bringing the interface up. If this command
fails then ifup aborts, refraining from marking the interface as
configured, prints an error message, and exits with status 0.
This behavior may change in the future.
在網卡界面啟動前 先執行 /sbin/ethtool 設定連線速度
2.要修改interfaces吗?
3. 對
4.我的是10/100m,所以我只要100M,现在是自动选择10M
4. 如果你使用
pre-up /sbin/ethtool -s enp0s7 speed 100 duplex full
如上 2 所述 只有 100 M 可以連線
否則 網卡啟動失敗 並且出現失敗訊息通知你
4-1. 實測傳輸速度
還要看其他網路相關環境的硬件/驅動/程式 而定
fengtou
帖子: 160
注册时间: 2007-06-22 16:15
系统: Ubuntu-mate

Re: 自适应网卡没法用100M,总是自动用10M

#14

帖子 fengtou » 2016-03-11 8:14

好的,谢谢大家
回复