LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 671|回复: 6

不能连网,请高手帮忙分析一些命令结果

[复制链接]
发表于 2007-3-26 15:18:41 | 显示全部楼层 |阅读模式
#dmesg |grep eth
forcedeth.c: Reverse Engineered nForce ethernet driver. Version 0.56.
forcedeth: using HIGHDMA
eth0: forcedeth.c: subsystem: 010de:cb84 bound to 0000:00:0a.0

# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:F0:4C:86E:CC
          inet addr:219.217.255.192  Bcast:219.217.255.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3543 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:348013 (339.8 KiB)  TX bytes:0 (0.0 b)
          Interrupt:217 Base address:0xe000

lo        Link encapocal Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:560 (560.0 b)  TX bytes:560 (560.0 b)

#lspci
00:00.0 Memory controller: nVidia Corporation CK804 Memory Controller (rev a4)
00:01.0 ISA bridge: nVidia Corporation CK804 ISA Bridge (rev b1)
00:01.1 SMBus: nVidia Corporation CK804 SMBus (rev a2)
00:02.0 USB Controller: nVidia Corporation CK804 USB Controller (rev a2)
00:02.1 USB Controller: nVidia Corporation CK804 USB Controller (rev a4)
00:04.0 Multimedia audio controller: nVidia Corporation CK804 AC'97 Audio Controller (rev a2)
00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f3)
00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:09.0 PCI bridge: nVidia Corporation CK804 PCI Bridge (rev a2)
00:0a.0 Bridge: nVidia Corporation CK804 Ethernet Controller (rev a3)
00:0b.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0c.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0d.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0e.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
05:00.0 VGA compatible controller: ATI Technologies Inc RV370 [Sapphire X550 Silent]
05:00.1 Display controller: ATI Technologies Inc RV370 secondary [Sapphire X550 Silent]

#vi /etc/network/interfaces

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet static
        address 219.217.255.192
        netmask 255.255.255.0
        network 219.217.255.0
        broadcast 219.217.255.255
        gateway 219.217.255.254
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 202.118.224.101
        dns-search .edu
发表于 2007-3-26 15:21:27 | 显示全部楼层
ADSL联网?

请用iface eth0 inet dhcp方式来联网。

系统会自动取得IP。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-26 15:22:35 | 显示全部楼层
校园网,静态ip
回复 支持 反对

使用道具 举报

发表于 2007-3-26 15:29:40 | 显示全部楼层
能 ping通 219.217.255.254 ?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-26 15:40:32 | 显示全部楼层

不能,只能ping通自己

不能,只能ping通自己。不过,学校是认证上网,没有认证之前,我在windows下也不能ping通网关。
回复 支持 反对

使用道具 举报

发表于 2007-3-26 16:09:34 | 显示全部楼层
[color="Red"]RX packets:3543 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:348013 (339.8 KiB) TX bytes:0 (0.0 b)

是不是网关路由设置不对?网卡只有进来的数据,没有出去的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-3-26 16:25:08 | 显示全部楼层
网关设置正确。我也纳闷,系统分析工具显示,总有每秒几K的流量(流进)。
回复 支持 反对

使用道具 举报

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

本版积分规则

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