LinuxSir.cn,穿越时空的Linuxsir!

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

[已解决] 安装了Arch 0.7,只可以ping通本机的IP,其它的都不行。

[复制链接]
发表于 2005-3-7 14:13:33 | 显示全部楼层 |阅读模式
配置文件:
[PHP]#
# /etc/hosts: static lookup table for host names
#

#<ip-address>        <hostname.domain.org>        <hostname>
127.0.0.1                localhost.localdomain        localhost

#End of file
[/PHP]
[PHP]#
# /etc/resolv.conf
#

#search <yourdomain.tld>
#nameserver <ip>
nameserver 202.98.96.68

# End of file
[/PHP]
[PHP]#
# /etc/rc.conf - Main Configuration for Arch Linux
#

#
# Localization
#
# HARDWARECLOCK: set to "UTC" or "localtime"
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: fount in /usr/share/kbd/consolefonts (only needed for non-us)
# USECOLOR: use ANSI color sequences in startup messages
#
HARDWARECLOCK="localtime"
TIMEZONE=Asia/Shanghai
KEYMAP=us
CONSOLEFONT=
USEcolor="yes"

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

#
# Networking
#
HOSTNAME="myhost"

#
# Module to load at boot-up (in this order)
#   (prefix a module with a ! to disable it)
#
MODULES=(8139too snd-cs46xx !usbserial !ide-scsi)

#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   (prefix an interface in INTERFACES with a ! to disable it)
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
lo="lo 127.0.0.1"
eth0="eth0 192.168.1.21 netmask 255.255.255.0 broadcast 192.168.1.255"
INTERFACES=(lo eth0)

#
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   (prefix a route in ROUTES with a ! to disable it)
#
gateway="default gw 192.168.1.1"
ROUTES=(gateway)

#
# Daemons to start at boot-up (in this order)
#   (prefix a daemon with a ! to disable it)
#
DAEMONS=(syslog-ng hotplug !pcmcia network !netfs crond)

# End of file[/PHP]
ifconfig
[PHP]eth0      Link encap:Ethernet  HWaddr 00:E0:3C:00:1E:94  
          inet addr:192.168.1.21  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:3cff:fe00:1e94/64 Scopeink
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 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:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:10 Base address:0x8000

lo        Link encapocal Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:79 errors:0 dropped:0 overruns:0 frame:0
          TX packets:79 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:7872 (7.6 Kb)  TX bytes:7872 (7.6 Kb)[/PHP]
route:
[PHP]Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
default         192.168.1.1     0.0.0.0         UG    0      0        0 eth0[/PHP]
ping 192.168.1.1
[PHP]PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
From 192.168.1.21 icmp_seq=2 Destination Host Unreachable
From 192.168.1.21 icmp_seq=3 Destination Host Unreachable
From 192.168.1.21 icmp_seq=4 Destination Host Unreachable

--- 192.168.1.1 ping statistics ---
4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2998ms, pipe 3[/PHP]
发表于 2005-3-7 14:40:30 | 显示全部楼层
没看出毛病来,不过偶水平低。等高人解答吧。

问一句,你主板上几个网卡?比如会不会还有块集成卡。
回复 支持 反对

使用道具 举报

发表于 2005-3-7 15:43:19 | 显示全部楼层
其它系统下通吗?
回复 支持 反对

使用道具 举报

发表于 2005-3-7 16:52:42 | 显示全部楼层
网卡坏了?
回复 支持 反对

使用道具 举报

发表于 2005-3-7 17:38:33 | 显示全部楼层
网关坏了?
回复 支持 反对

使用道具 举报

发表于 2005-3-7 17:39:15 | 显示全部楼层
通过什么方式上网的??是ADSL拨号的话,拨号没有成功,还没有获得IP地址,
重新设置拨号
注销下面的:
#gateway="default gw 192.168.1.1"
#ROUTES=(gateway)
回复 支持 反对

使用道具 举报

发表于 2005-3-7 18:18:02 | 显示全部楼层
…………很明显他是内网,通过网关上网。他那文件里网络的设置都不是默认的。
偶也觉得像网卡毛病,不过上次偶两块网卡不好用以后,总怀疑两块网卡的都有毛病。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-7 18:38:57 | 显示全部楼层
只有一个网卡, 在Debian下可以上网啊,通过Modem路由上网的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-7 19:46:28 | 显示全部楼层
唉! ACPI惹的祸!果然是网卡工作不正常。
0.7是用2.6.10的内核,自动打开了ACPI电源管理,而我的600X不完全支持ACPI,所以导致网卡不能正常工作。
在GRUB的内核启动参数里加上pci=noacpi就好了。
谢谢各位兄弟!
回复 支持 反对

使用道具 举报

发表于 2005-3-7 22:33:42 | 显示全部楼层
又学到一个经验!
回复 支持 反对

使用道具 举报

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

本版积分规则

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