LinuxSir.cn,穿越时空的Linuxsir!

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

Arch不能上网啊

[复制链接]
发表于 2005-9-1 16:03:51 | 显示全部楼层 |阅读模式
安装基本的ARCH之后,发现竟然只能ping通内网,我的/etc/rc.conf内容如下:
#
# /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=Canada/Pacific
KEYMAP=us
CONSOLEFONT=
USEcolor="yes"

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

#
# Networking
#
HOSTNAME="zhongyong"

#
# Module to load at boot-up (in this order)
#   (prefix a module with a ! to disable it)
#
MODULES=(8139too !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 10.196.248.12 netmask 255.255.255.0 broadcast 10.196.248.1"
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 10.196.248.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
这是我的/etc/resolv.conf
#
# /etc/resolv.conf
#

#search yourdomain.tld
#nameserver <ip>
#search zhonggyong.main.tld
nameserver 10.196.8.16
#nameserver 212.77.78.132
# End of file
现在只是装了个基本的系统.急需上网完成系统的安装,还请兄弟们帮忙啊!!!!
先谢了!!
发表于 2005-9-1 17:27:38 | 显示全部楼层
  1. # Routes to start at boot-up (in this order)
  2. # Declare each route then list in ROUTES
  3. # (prefix a route in ROUTES with a ! to disable it)
  4. #
  5. gateway="default gw 10.196.248.1"
  6. ROUTES=(gateway)
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-2 08:58:53 | 显示全部楼层
还是不行啊!!
按照楼上大哥的改了,当/etc/rc.d/networke start 和ping外网时都出现:
connect:network is unreachable.
还请兄弟们帮忙啊!!!
回复 支持 反对

使用道具 举报

发表于 2005-9-2 09:41:29 | 显示全部楼层
你能ping通你的nameserver吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-2 10:11:18 | 显示全部楼层
在WINDOWS下能PING通.但在ARCH下不能,出现:connect:Network is unreachable.的提示!!
回复 支持 反对

使用道具 举报

发表于 2005-9-2 20:00:00 | 显示全部楼层
mii-tool
看有没认到网卡

顶你……
回复 支持 反对

使用道具 举报

发表于 2005-9-2 20:08:40 | 显示全部楼层
route -n
贴出来结果
回复 支持 反对

使用道具 举报

发表于 2005-9-2 22:01:25 | 显示全部楼层
在MAGIC LINUX上曾经出现过用8139too驱动无法使用网卡,换成8139like才行的。
回复 支持 反对

使用道具 举报

发表于 2005-9-3 08:17:58 | 显示全部楼层
我用的也是8139too,应该没有问题。应该还是这部分设置有问题:
#
# 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 10.196.248.12 netmask 255.255.255.0 broadcast 10.196.248.1"
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 10.196.248.1"
#ROUTES=(gateway)

不过不知道具体情况,不好帮忙。但是如果使用路由,就应该指定gateway地址。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-9-3 11:33:22 | 显示全部楼层
这样手动设置,能ping通DNS了!!
ifconfig eth0 10.196.248.12 netmask 255.255.255.0 up
route add default gw 10.196.248.1 eth0
但就是不能上网,我怀疑是DNS的设置文件问题,谁能给个etc/resolv.conf
我的DNS是10.196.8.16
先谢谢了!!
回复 支持 反对

使用道具 举报

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

本版积分规则

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