Archive for 2006年9月14日


  导致交换机接口出现err-disable的几个常见原因:

  引用

  1. EtherChannel misconfiguration

  2. Duplex mismatch

  style="TEXT-INDENT: 2em">3. BPDU port guard

  4. UDLD

  5. Link-flap error

  6. Loopback error

  7. Port security violation

  第一个当F EC两端配置不匹配的时候就会出现err-disable。假设Switch A把FEC模式配置为on,这时Switch A是不会发送PAgP包和相连的Switch B去协商FEC的,它假设Switch B已经配置好FEC了。但实事上Swtich B并没有配置FEC,当Switch B的这个状态超过1分钟后,Switch A的STP就认为有环路出现,因此也就出现了err-disable。解决办法就是把FEC的模式配置为channel-group 1 mode desirable non-silent这个意思是只有当双方的FEC协商成功后才建立channel,否则接口还处于正常状态。

  第二个原因就是双工不匹配。一端配置为half-duplex后,他会检测对端是否在传输数据,只有对端停止传输数据,他才会发送类似于ack的包来让链路up,但对端却配置成了full-duplex,他才不管链路是否是空闲的,他只会不停的发送让链路up的请求,这样下去,链路状态就变成err-disable了。

  第三个原因BPDU,也就是和portfast和BPDU guard有关。如果一个接口配置了portfast,那也就是说这个接口应该和一个pc连接,pc是不会发送spanning-tree的BPDU帧的,因此这个口也接收BPDU来生成spanning-tree,管理员也是出于好心在同一接口上配置了BPDU guard来防止未知的BPDU帧以增强安全性,但他恰恰不小心把一个交换机接到这个同时配置了portfast和BPDU guard接口上,于是这个接口接到了BPDU帧,因为配置了BPDU guard,这个接口自然要进入到err-disable状态。解决办法:no spanning-tree portfast bpduguard default,或者直接把portfast关了。

  第四个原因是UDLD。UDLD是cisco的私有2层协议,用于检测链路的单向问题。有的时候物理层是up的,但链路层就是down,这时候就需要UDLD去检测链路是否是真的up的。当AB两端都配置好UDLD后,A给B发送一个包含自己port id的UDLD帧,B收到后会返回一个UDLD帧,并在其中包含了收到的A的port id,当A接收到这个帧并发现自己的port id也在其中后,认为这链路是好的。反之就变成err-disable状态了。假设A配置了UDLD,而B没有配置UDLD:A给B发送一个包含自己port id的帧,B收到后并不知道这个帧是什么,也就不会返回一个包含A的port id的UDLD帧,那么这时候A就认为这条链路是一个单向链路,自然也就变成err-disable状态了。

  第五个原因就是链路的抖动,当链路在10秒内反复up、down五次,那么就进入err-disable状态。

  第六个原因就是keepalive loopback。在12.1EA之前,默认情况下交换机会在所有接口都发送keepalive信息,由于一些不通交换机协商spanning-tree可能会有问题,一个接口又收到了自己发出的keepalive,那么这个接口就会变成err-disable了。解决办法就是把keepalive关了。或者把ios升到12.2SE。

  最后一个原因,相对简单,就是由于配置了port-security violation shutdown

    如果Windows XP的系统文件被病毒或其它原因破坏了,我们可以从Windows XP的安装盘中恢复那些被破坏的文件。

    具体方法:

    在Windows XP的安装盘中搜索被破坏的文件,需要注意的是,文件名的最后一个字符用底线“_”代替,例如:如果要搜索“Notepad.exe”则需要用“Notepad.ex_”来进行搜索。  

    搜索需要的文件

    搜索到了之后,打开命令行模式(在“运行”中输入“cmd”),然后输入:“EXPAND 源文件的完整路径 目标文件的完整路径”。例如: EXPAND D:SETUPNOTEPAD.EX_ C:WindowsNOTEPAD.EXE。有一点需要注意的是,如果路径中有空格的话,那么需要把路径用双引号(英文引号)包括起来。

    找到当然是最好的,但有时我们在Windows XP盘中搜索的时候找不到我们需要的文件。产生这种情况的一个原因是要找的文件是在“CAB”文件中。由于Windows XP把“CAB”当作一个文件夹,所以对于Windows XP系统来说,只需要把“CAB”文件右拖然后复制到相应目录即可。

    如果使用的是其他Windows平台,搜索到包含目标文件名的“CAB”文件。然后打开命令行模式,输入:“EXTRACT /L 目标位置 CAB文件的完整路径”,例如: EXTRACT /L C:Windows D:I386Driver.cab Notepad.exe。同前面一样,如同路径中有空格的话,则需要用双引号把路径包括起来。

In order to connect to Battle.net, through your Local Area Network, while allowing others to connect to games you create, make sure you have the following ports setup as described below.

Diablo and Warcraft II Battle.net Edition:

  • Allow port 6112-6119 TCP and UDP out and in
Diablo II:

  • Allow port 6112 TCP out and allow established sessions in
  • Allow port 4000 TCP out (realm games)
  • Allow port 4000 TCP out and in (hosting open games only)
StarCraft:

  • Allow port 6112 TCP and UDP out and in
Warcraft III:

  • Allow port 6112 TCP out and allow established sessions in
  • Allow port 6112 TCP in (hosting custom games)
  • Allow port 6113-6119 TCP out and in (hosting custom games if you抳e changed the default port in the Options/Gameplay screen)
World of Warcraft:

  • Allow port 3724 TCP out
  • Allow port 3724 TCP in
Notes:
  • "Established sessions in" applies to firewalls only. NAT will allow the "established sessions in" automatically.
  • NAT users will need to map any "in"s (hosting games only) to the IP of the computer hosting the game.
  • Warcraft III is the only Blizzard Title that currently supports multiple players hosting games behind NAT.
  • Some firewall programs have preset ports available in their configurations that are often necessary to be open. One in particular is a connection to your DNS server. This usually takes place on UDP port 53.

How do I configure Windows XP firewall?

  1. Click on the Start button.
  2. Right click on My Network Places.
  3. Select Properties from the list.
  4. Right click on the icon for your Internet connection.
  5. Select Properties from the list.
  6. Click on the Advanced tab.
  7. Click on the Settings button.
  8. Click on the Add Button.
  9. Type in Blizzard or the game title as the Description of service.
  10. Type in your computer’s name or IP address in the field provided.
  11. Type in 6112 as the External Port number.
  12. Type in 6112 as the Internal Port number.
  13. Make sure TCP is selected
  14. Repeat the procedure above for ports 4000 and 6113 through 6119