当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 14 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 自适应网卡没法用100M,总是自动用10M
帖子发表于 : 2016-03-10 15:50 

注册: 2007-06-22 16:15
帖子: 122
系统: Ubuntu-mate
送出感谢: 7
接收感谢: 0 次
装的是ubuntu-mate,和windows通过samba传输文件,自适应网卡没法用100M,总是自动用10M,请问该怎么办?
网卡是NVIDIA的板载网卡,谢谢


页首
 用户资料  
 
2 楼 
 文章标题 : Re: 自适应网卡没法用100M,总是自动用10M
帖子发表于 : 2016-03-10 15:56 

注册: 2009-08-04 16:33
帖子: 16893
送出感谢: 21
接收感谢: 1827
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 版本


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 自适应网卡没法用100M,总是自动用10M
帖子发表于 : 2016-03-10 16:31 
头像

注册: 2011-03-20 13:12
帖子: 4522
地址: 山东省寿光县
系统: Debian
送出感谢: 105
接收感谢: 997
代码:
sudo lshw -numeric -C net

把结果全部复制贴上来


_________________
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户


页首
 用户资料  
 
4 楼 
 文章标题 : Re: 自适应网卡没法用100M,总是自动用10M
帖子发表于 : 2016-03-10 16:40 

注册: 2007-06-22 16:15
帖子: 122
系统: Ubuntu-mate
送出感谢: 7
接收感谢: 0 次
vickycq 写道:
代码:
sudo lshw -numeric -C net

把结果全部复制贴上来


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


页首
 用户资料  
 
5 楼 
 文章标题 : Re: 自适应网卡没法用100M,总是自动用10M
帖子发表于 : 2016-03-10 16:41 
头像

注册: 2011-03-20 13:12
帖子: 4522
地址: 山东省寿光县
系统: Debian
送出感谢: 105
接收感谢: 997
fengtou 写道:
闪了一下就直接返回了,没有任何结果

或者详细说明你的硬件型号 规格


_________________
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户


页首
 用户资料  
 
6 楼 
 文章标题 : Re: 自适应网卡没法用100M,总是自动用10M
帖子发表于 : 2016-03-10 16:42 

注册: 2007-06-22 16:15
帖子: 122
系统: Ubuntu-mate
送出感谢: 7
接收感谢: 0 次
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


页首
 用户资料  
 
7 楼 
 文章标题 : Re: 自适应网卡没法用100M,总是自动用10M
帖子发表于 : 2016-03-10 16:45 

注册: 2007-06-22 16:15
帖子: 122
系统: Ubuntu-mate
送出感谢: 7
接收感谢: 0 次
vickycq 写道:
fengtou 写道:
闪了一下就直接返回了,没有任何结果

或者详细说明你的硬件型号 规格


我不知道什么命令看型号规格,以前windows直接可以看到,换了linux就看不了


页首
 用户资料  
 
8 楼 
 文章标题 : Re: 自适应网卡没法用100M,总是自动用10M
帖子发表于 : 2016-03-10 16:51 
头像

注册: 2011-03-20 13:12
帖子: 4522
地址: 山东省寿光县
系统: Debian
送出感谢: 105
接收感谢: 997
fengtou 写道:
fengtou 写道:
闪了一下就直接返回了,没有任何结果

代码:
sudo lshw -C bridge

把结果全部复制贴上来

samba 传输数据的最大速度是多少?


_________________
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户


页首
 用户资料  
 
9 楼 
 文章标题 : Re: 自适应网卡没法用100M,总是自动用10M
帖子发表于 : 2016-03-10 16:55 

注册: 2007-06-22 16:15
帖子: 122
系统: Ubuntu-mate
送出感谢: 7
接收感谢: 0 次
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


页首
 用户资料  
 
10 楼 
 文章标题 : Re: 自适应网卡没法用100M,总是自动用10M
帖子发表于 : 2016-03-10 16:58 

注册: 2009-08-04 16:33
帖子: 16893
送出感谢: 21
接收感谢: 1827
引用:
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


页首
 用户资料  
 
11 楼 
 文章标题 : Re: 自适应网卡没法用100M,总是自动用10M
帖子发表于 : 2016-03-10 17:03 

注册: 2007-06-22 16:15
帖子: 122
系统: Ubuntu-mate
送出感谢: 7
接收感谢: 0 次
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


页首
 用户资料  
 
12 楼 
 文章标题 : Re: 自适应网卡没法用100M,总是自动用10M
帖子发表于 : 2016-03-10 17:05 
头像

注册: 2011-03-20 13:12
帖子: 4522
地址: 山东省寿光县
系统: Debian
送出感谢: 105
接收感谢: 997
fengtou 写道:
*-bridge
size: 100000000
capacity: 100000000
...speed=100Mbit/s

我的是10/100m,所以我只要100M,现在是自动选择10M

从这里看 协商的速度等于 100000000 == 100M
samba 速度慢可能另有原因


_________________
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户


页首
 用户资料  
 
13 楼 
 文章标题 : Re: 自适应网卡没法用100M,总是自动用10M
帖子发表于 : 2016-03-10 17:36 

注册: 2009-08-04 16:33
帖子: 16893
送出感谢: 21
接收感谢: 1827
引用:
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. 實測傳輸速度
還要看其他網路相關環境的硬件/驅動/程式 而定


页首
 用户资料  
 
14 楼 
 文章标题 : Re: 自适应网卡没法用100M,总是自动用10M
帖子发表于 : 2016-03-11 8:14 

注册: 2007-06-22 16:15
帖子: 122
系统: Ubuntu-mate
送出感谢: 7
接收感谢: 0 次
好的,谢谢大家


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 14 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 1 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译