LinuxSir.cn,穿越时空的Linuxsir!

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

Arch 不能上校园网

[复制链接]
发表于 2009-5-30 10:51:35 | 显示全部楼层 |阅读模式
以下是/etc/rc.conf中的全部内容,最后那几行是我的联网结果。我的 Arch 有网卡驱动。并可接收和发送包。

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="local"
USEDIRECTISA="no"
TIMEZONE="Asia/Chongqing"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USEcolor="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=()

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

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="ddr2667"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
#
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
##xiamian shi wo jia de
eth0="dhcp"
INTERFACES=(eth0)

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

# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

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


>/etc/rc.d/network start
::Starting Network
eth0 : hardware address 00:00:00:00:00:00 claims 10.1.24.37
eth0 : hardware address 00:00:00:00:00:00 claims 10.1.24.39
eth0 : hardware address 00:00:00:00:00:00 claims 10.1.24.50
time out

>ping www.XXX.edu.cn    // 这是我的校园网web服务器
ping : unknown host www.XXX.edu.cn

>ping 10.1.27.254    // 我的默认网关和DHCP服务器
connect : Network is unreachable
发表于 2009-5-30 11:53:11 | 显示全部楼层
应该没有成功分配地址。

你们学校可以直接上网的?不需要锐捷什么的?哇,真是社hui主yi的好学校
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-30 12:04:01 | 显示全部楼层
呵呵。
插上网线就可以直接上,不过上的是校园网。
上外网需要  Dr.com宽带客户端登陆。

校园网就很多好东东。
不过现在校园网都好像连接不上。

怎么看自己是否已经连接上了?
除了ifconfig......
回复 支持 反对

使用道具 举报

发表于 2009-5-30 13:20:57 | 显示全部楼层
eth0 : hardware address 00:00:00:00:00:00
你相信有这样的硬件地址吗?
怎么看自己是否已经连接上了
Ping 的结果不一定准确。能上网不就行了?
回复 支持 反对

使用道具 举报

发表于 2009-5-30 14:57:55 | 显示全部楼层
LZ试下pppoe,使用root用户。
首先是
pppoe-setup
依次根据提示输入相应信息:第一步是用户名(上网用的);第二、三步记不清了,我是直接Enter的;第四步我是输入server;第五步是输入密码(对应上边的用户名)两次;第六步是选择firewall的级别(0~2),输入相应的数字即可;第七步好像是问你在开机时自启动,当然是“y”。
到这儿连网设置就完成了。接下来
pppoe-start
如果有Connected!的提示表示成功了,否则检测下在上面的设置中有什么输错了没。

如果要用其它的方式上网(比如电信宽带之类的),首先
pppoe-stop
再使用上边的两个命令,输入相应的用户名、密码,当然还得是使用虚似拨号的方式上网。

注:我用的也是学校提供的教育网。
      在连网成功后将@adal加入到/etc/rc.conf的DEAMONS列表中,这样可以在每次开机时自动后台连网,不用每次都这么辛苦了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-30 16:36:24 | 显示全部楼层
Post by cwjiof;1992229
你相信有这样的硬件地址吗?


Ping 的结果不一定准确。能上网不就行了?


嗯,对, 我的 MAC  地址不可能是这个。

我 ifconfig 了一下。显示可以收到局域网里面的包,也可以发送包。


上楼guiwen1158,我也早就用联通的包月账号试过,但显示 time out 。

另外因为我们学校内的主机要连接外网,要通过城市热点公司的Dr.com宽带客户端认证。
我安装并用 dr.com-client 登陆时,用命令可以加载drcom模块。

但接着登陆时却提示drcomc 命令没发现。
回复 支持 反对

使用道具 举报

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

本版积分规则

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