分页: 1 / 2
arch dhcp求救
发表于 : 2012-03-25 0:07
由 lovebluesky
这么晚了,不知还有没有夜猫子在,我这里悲剧了,手痒,一直想换arch,今天晚上装了两次,悲剧的是,上不了网,pacman -Syu时候提示错误,检查发现是不能上网,我这里的情况是:
房东有个路由,设置自动获取ip,我按照wiki的设置了
interface="eth0"
address=
netmask=
gateway=
结果不行,赶忙又找了网上的答案
DHCP (自动获取) IP
在这种情况下,你需要安装 dhcpcd 包(绝大多数情况下都是默认安装好的)。这样编辑 /etc/rc.conf :
eth0="dhcp"
INTERFACES=(eth0)
ROUTES=(!gateway)
还是失败,恳请各位江湖救急,感激不尽
又试了wiki上的方法,root登陆后老会出现下面的提示
e1000e 0000:00:19.0:eth0:reset adapter,一直是这样
最前面还有一个中括号,里面的数字不停的变
手机上网,不大方便,请各位帮忙,先睡觉了
Re: arch dhcp求救
发表于 : 2012-03-25 0:09
由 月下叹逍遥
interface="eth0"
address=
netmask=
gateway=
我的
Re: arch dhcp求救
发表于 : 2012-03-25 0:09
由 YeLee
Re: arch dhcp求救
发表于 : 2012-03-25 0:14
由 lovebluesky
感激,能不能详细说,怎么叫做network加到服务列表或者手动连接,我真的不懂,虽然我注册时间不短了
Re: arch dhcp求救
发表于 : 2012-03-25 0:15
由 月下叹逍遥
亮出rc.conf最后一行
Re: arch dhcp求救
发表于 : 2012-03-25 0:16
由 YeLee
/etc/rc.conf的最后一行。
DAEMONS
Re: arch dhcp求救
发表于 : 2012-03-25 0:23
由 lovebluesky
YeLee 写了:/etc/rc.conf的最后一行。
DAEMONS
这么一说我明白了,我再试试,那里面应该有一个network对不对,我安装时参考另一个帖子,他的第一个是syslog-ng,而我前面还有一个东西,我给忘记了,抱歉,没法贴,我用了ubutnu的livecd在这发帖,之前没记录下来,不知能不能把你的贴出来,让我照着再装一次,感激不尽,谢谢楼上各位
Re: arch dhcp求救
发表于 : 2012-03-25 0:24
由 YeLee
Re: arch dhcp求救
发表于 : 2012-03-25 0:26
由 YeLee
Re: arch dhcp求救
发表于 : 2012-03-25 0:26
由 lovebluesky
莫非这么做有什么不妥?? 抱歉,我确实不懂,要不我再装一次吧,悲剧的,难道arch跟我有仇,几次尝试都以失败告终
Re: arch dhcp求救
发表于 : 2012-03-25 0:27
由 月下叹逍遥
额。前两天刚做掉。。。
代码: 全选
#
# /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", any other value will result
# in the hardware clock being left untouched (useful for virtualization)
# 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="zh_CN.UTF-8"
HARDWARECLOCK="localtime"
TIMEZONE="Asia/Shanghai"
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=(vboxdrv)
# 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="Arch"
# 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
#
#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
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 dbus netfs networmanger)
老的,仅供参考
Re: arch dhcp求救
发表于 : 2012-03-25 0:28
由 lovebluesky
Re: arch dhcp求救
发表于 : 2012-03-25 0:29
由 月下叹逍遥
lovebluesky 写了:
莫非这么做有什么不妥?? 抱歉,我确实不懂,要不我再装一次吧,悲剧的,难道arch跟我有仇,几次尝试都以失败告终
它用的是贱兔,木有。。。

Re: arch dhcp求救
发表于 : 2012-03-25 0:32
由 lovebluesky
月下叹逍遥 写了:lovebluesky 写了:
莫非这么做有什么不妥?? 抱歉,我确实不懂,要不我再装一次吧,悲剧的,难道arch跟我有仇,几次尝试都以失败告终
它用的是贱兔,木有。。。

明白,再试试,3Q
Re: arch dhcp求救
发表于 : 2012-03-25 0:34
由 YeLee
我想说明的是2L的绰号叫南瓜。

PS:南瓜注意用词,什么“它”啊?