LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: baidongyi

注意:这个问题解决不了,我就不用linux了!!!

[复制链接]
发表于 2005-1-16 13:43:18 | 显示全部楼层
兄弟真够执着的,顶一下
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-16 19:12:24 | 显示全部楼层
Post by starboys
我见过一个在windows下要用10M才能上网的是,最后换了一根网线就好了。
你可以换一根网线试一下。


我拿我的网线到别人家里用,用得了100Mps。看来也许不是网线的问题。谢谢你
回复 支持 反对

使用道具 举报

发表于 2005-1-16 19:16:05 | 显示全部楼层
Post by baidongyi
我的Realtex RTL 8139的默认速度(100Mps)和中国电信的ADSL默认速度(10Mps)不同,导致上不了网,我经过一个星期的努力,还是没有成功,请问我该怎么设置呢?

8139是10M/100M自适应的,我在电信宽带下能用.不包月10M,包月1M.都能用啊
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-16 19:34:58 | 显示全部楼层
http://bbs.chinaunix.net/forum/4/20040314/280369.html
我又看到了这个文章
~~~~~~~~8139是10M/100M自适应的,我在电信宽带下能用.不包月10M,包月1M.都能用啊~~
我以前也是可以的,但是几个月前的某一天,我就用不了了,我强烈怀疑是不是我的网卡坏了!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-16 19:42:35 | 显示全部楼层
网卡状态10M/100M  



http://www.chinahrb.com/ 2004-02-06 21:18:00 浏览 135 次

查看[大字体 中字体 小字体]  自动滚屏[左键停止]

用#mii-tool -l (不是-1) ,可以查看。我用命令查看了一下,显示如下 eth0: negotiated 100baseTx-FD, link ok 笔记本内置网卡,100M。因为网线比较老了,网卡100M工作始终不正常,window下配成10M就可以了,但是在Linux上如果改呢? in /etc/conf.modules alias eth0 3c59x Options Line Media Type options 3c59x options=0 "10baseT" options 3c59x options=1 "10Mbs AUI" options 3c59x options=3 "10base2" options 3c59x options=4 "100baseTX" options 3c59x options=5 "100baseFX" options 3c59x options=8 "Autonegotiate" options 3c59x options=9 "MII-External" options 3c59x options=10 "Default" (10baseT) In addition, full_duplex=1 can be supplied to force the card into full duplex mode, e.g. options 3c59x options=5 full_duplex=1 谢谢了,但是好像用处不大. 我得网卡驱动是eepro100, 也有这些options么?我改过了modules.conf, 添加了options eepro100 options=0,为什么每次ifconfig eth0 down(up),这句就没有了? 好像用ifconfig eth0 media TYPE也可以改,但是我得到operation is not supported. 为什么? 经过研究: 1 100M--》10M 的方法 #mii-tool --advertise=10baseT-FD eth0 2.10M--> 100M #mii-tool --advertise=100baseTx-FD eth0 3.检验是否成功 # mii-tool -l etho 100baseTx-FD link ok 4.看一下你的网卡指示灯也可以。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-16 19:44:42 | 显示全部楼层
让自适应网卡(10/100),绑定10M或者100M

OS: RedHat Linux 9.0

在Linux上有一个工具mii-tool,mii-tool 是查看和管理自适应接口(网卡)状态的一个工具。

在linux上可以通过man命令获得他的帮助文档!

网卡分为10Mb半双工和全双工,100Mb半双工和全双工,还有10-100Mb自适用,下面就是我们需要用的一些内容!

Port Speed                      Description
10baseT-HD                   10 megabit half duplex  
10baseT-FD                    10 megabit full duplex
100baseTx-HD                100 megabit half duplex
100baseTx-FD                 100 megabit full duplex

注释:half duplex为半双工,full duplex为全双工。

mii-tool常用参数如下:

-v ,--verbose:    显示mii状态的详细信息
-R ,--rest:           重新设置成默认配置
-r,restart:         重新启动自适用
-F,--force:          强制性操作

其他在这里不阐述了,想获得详细信息请阅读mii-tool帮助文档。



强制性把自适用网卡设置成全双工10M:

$mii-tool --force 10baseT-FD

然后用mii-tool命令看看是不是如下的内容:

eth0: 10Mbit,full duplex,link ok

其它的设置对应上面的资料!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-16 19:45:58 | 显示全部楼层
100M网卡降低成10M用的方法。不确切的请指正
http://www.douzhe.com 作者:cgweb  发表于:2003-02-19 10:25:18

经过研究:
1 100M--》10M 的方法
   #mii-tool --advertise=10baseT-FD eth0
2.10M--> 100M  
  #mii-tool --advertise=100baseTx-FD eth0

3.检验是否成功
  # mii-tool -l
   etho  100baseTx-FD link ok

4.看一下你的网卡指示灯也可以。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-16 19:53:45 | 显示全部楼层
B.5.?mii-tool
Prev? Appendix?B.?Ethernet Layer Tools ?Next

--------------------------------------------------------------------------------

B.5.?mii-tool
A key tool for determining if you are connected to the Ethernet, and if so, at what speed. The mii-tool program does not support all Ethernet devices, as some Ethernet devices have their own vendor-supplied tools to report the same information. The mii-tool source code is based on a tool called mii-diag which provides slightly more information but is less user friendly.

The information reported by mii-tool is quite terse. The following table should clarify the meaning of the speeds you'll encounter in output from mii-tool [41].

Table?B.2.?Ethernet Port Speed Abbreviations

Port Speed Description
10baseT-HD 10 megabit half duplex
10baseT-FD 10 megabit full duplex
100baseTx-HD 100 megabit half duplex
100baseTx-FD 100 megabit full duplex

The raw number indicates the number of bits which can be exchanged between two Ethernet devices over the wire. So 10 megabit Ethernet can support the transmission of ten million bits per second. The suffix to each identifier indicates whether both hosts can send and receive simultaneously or not. Half duplex means that each device can either send or receive in the same instant. Full duplex means that both devices can send and receive simultaneously.

The simplest use of mii-tool reports the link status of all Ethernet devices on a system. Any argument to mii-tool is interpreted as an interface name to query for link status.

Example?B.21.?Detecting link layer status with mii-tool

[root@tristan]# mii-tool
eth0: negotiated 100baseTx-FD, link ok
[root@tristan]# mii-tool -v
eth0: negotiated 100baseTx-FD, link ok
  product info: vendor 08:00:17, model 1 rev 0
  basic mode:   autonegotiation enabled
  basic status: autonegotiation complete, link ok
  capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
  advertising:  100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
  link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
         

In the above example, we can infer that tristan has only one Ethernet device (or no Ethernet drivers loaded for any other present Ethernet devices). The first Ethernet device has successfully negotiated a 100 megabit full duplex connection with the device to which it is connected.

Although a great rarity, you may have occasion to dictate to the Ethernet interface the speed at which it should talk to the switch or hub. mii-tool supports a mode of operation under which you indicate supported modes for autonegotiation. Normally, two connected devices will negotiate the fastest possible commonly shared speed. You can select what speeds you want to support on an Ethernet interface by using mii-tool.

Example?B.22.?Specifying Ethernet port speeds with mii-tool --advertise

[root@tristan]# mii-tool mii-tool --advertise 10baseT-HD,10baseT-FD
restarting autonegotiation...
[root@tristan]# mii-tool
eth0: negotiated 10baseT-FD, link ok
         

After we specified that we wished only to support 10baseT-HD and 10baseT-FD as acceptable speeds, mii-tool caused the Ethernet driver to renegotiate port speed with the attached device. Here we selected 10baseT-FD.

Example?B.23.?Forcing Ethernet port speed with mii-tool --force

[root@tristan]# mii-tool --force 10baseT-FD
[root@tristan]# mii-tool
eth0: 10 Mbit, full duplex, link ok
[root@tristan]# mii-tool --restart
restarting autonegotiation...
[root@tristan]# mii-tool
eth0: negotiated 100baseTx-FD, link ok
         

After manipulating the speed at which the Ethernet driver would communicate with the connected device on tristan, we chose to restart the autonegotiation process without forcing a particular speed or advertising a particular speed.

So, if you must know at what speed your linux machine is connected to another device, mii-tool comes to your rescue.



--------------------------------------------------------------------------------

[41] There is a standard speed/Ethernet transmission style supported by mii-tool to which I have not referred. That is 100BaseT4. 100BaseT4 provides support for 100 megabit Ethernet networking over Category 3 rated cable. This is probably not a concern for most recently upgraded network infrastructure. The standard networking cable pulled in new construction and renovation is now Category 5 cable which supports 100Base-Tx-FD and possibly gigabit Ethernet. So, let's relegate 100BaseT4 to this footnote, and resume.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-16 19:56:55 | 显示全部楼层
MII-TOOL

This document was created by man2html using the manual pages.
Section: Maintenance Commands (8)
Updated: 2000/04/25 22:58:19
Index Return to NetAdminTools
--------------------------------------------------------------------------------

  

NAME
mii-tool - view, manipulate media-independent interface status
  

SYNOPSIS
mii-tool [-v, --verbose] [-V, --version] [-R, --reset] [-r, --restart] [-w, --watch] [-l, --log] [-A, --advertise=media,...] [-F, --force=media] [interface ...]
  

DESCRIPTION
This utility checks or sets the status of a network interface's Media Independent Interface (MII) unit. Most fast ethernet adapters use an MII to autonegotiate link speed and duplex setting.
Most intelligent network devices use an autonegotiation protocol to communicate what media technologies they support, and then select the fastest mutually supported media technology. The -A or --advertise options can be used to tell the MII to only advertise a subset of its capabilities. Some passive devices, such as single-speed hubs, are unable to autonegotiate. To handle such devices, the MII protocol also allows for establishing a link by simply detecting either a 10baseT or 100baseT link beat. The -F or --force options can be used to force the MII to operate in one mode, instead of autonegotiating. The -A and -F options are mutually exclusive.

The default short output reports the negotiated link speed and link status for each interface. If an interface or interfaces are not specified on the command line, then mii-tool will check any available interfaces from eth0 through eth7.   

OPTIONS
-v, --verbose
Display more detailed MII status information. If used twice, also display raw MII register contents.
-V, --version
Display program version information.
-R, --reset
Reset the MII to its default configuration.
-r, --restart
Restart autonegotiation.
-w, --watch
Watch interface(s) and report changes in link status. The MII interfaces are polled at one second intervals.
-l, --log
Used with -w, records link status changes in the system log instead of printing on standard output.
-F media, --force=media
Disable autonegotiation, and force the MII to either 100baseTx-FD, 100baseTx-HD, 10baseT-FD, or 10baseT-HD operation.
-A media,..., --advertise=media,...
Enable and restart autonegotiation, and advertise only the specified media technologies. Multiple technologies should be separated by commas. Valid media are 100baseT4, 100baseTx-FD, 100baseTx-HD, 10baseT-FD, and 10baseT-HD.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-1-16 20:19:03 | 显示全部楼层
mii-tool

Témakövetés | A téma továbbítása e-mail-ben | A téma nyomtatása
richi  2004. Sep. 28. - 11:36 Létrehozva: #1  


Szinte már törzsvendég


Csoport: Regisztrált tagok
Hozzászólások: 417
Regisztrált: --
Azonosító: 1,811



HI !

A problémám a következő egy gépen beállítom az mii-tool al hogy 10 Mbs es legyen a hálózat az eth0 án ez klasszul megy is. DE hol kell ezt véglegesíteni ? Mert háló restartkor ismét be kell lőnöm és ez gond.

Előre is köszi.


--------------------

http://www.gigaweb.hu
--<<A világ 8. csodája az INTERNET. A 9. a LINUX >>--
   

killall  2004. Sep. 28. - 11:42 Létrehozva: #2  


Moderátor


Csoport: Moderátorok
Hozzászólások: 3,186
Regisztrált: --
Innen: Valhalla
Azonosító: 3,284



mi az a mii-tool?


--------------------



   

richi  2004. Sep. 28. - 11:59 Létrehozva: #3  


Szinte már t&ouml;rzsvendég


Csoport: Regisztrált tagok
Hozzászólások: 417
Regisztrált: --
Azonosító: 1,811



QUOTE(killall @ 2004. Sep. 28. - 19:42 )
mi az a mii-tool?






ezzel állítottam be hogy a 100 mbs es lankártya ne menjen csak 10 en


--------------------

http://www.gigaweb.hu
--<<A világ 8. csodája az INTERNET. A 9. a LINUX >>--
   

Bosi   2004. Oct. 13. - 11:19 Létrehozva: #4  


&Uacute;jonc


Csoport: Regisztrált tagok
Hozzászólások: 22
Regisztrált: --
Innen: Budapest
Azonosító: 1,708



Hali,

Nem tom megoldottad-e azóta a gondodat, de a /etc/rc.d/rc.local file fejléce szerint ez arra szolgál, hogy ide írd be azokat a konfiggal kapcsolatos parancsaidat, amik a rendszer indítás scriptjei után fognak futni. &Eacute;n kipróbálnám, hogy ennek a legvégére beírnám azt a parancsot, amit kiadsz amikor az mii-toolt futtatod. (Feltáve, hogy az mii-tool konzolon futtatandó paraméterezve).

Remélem ez segít


--------------------
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表