LinuxSir.cn,穿越时空的Linuxsir!

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

配置ADSL上不去!--arch

[复制链接]
发表于 2005-2-20 00:01:17 | 显示全部楼层 |阅读模式
我用的2.6的核 网卡via-rhine eth0 下面是我的modprobe.conf 和rc.conf

/etc/modprobe.conf (for v2.6 kernels)


# OSS Compatibility
install snd-pcm modprobe -i snd-pcm ; modprobe snd-pcm-oss ; true
install snd-seq modprobe -i snd-seq ; modprobe snd-seq-oss ; true
alias eth0 via-rhine


######################################################################


/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/Chongqing
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=(!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="dhcp"
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.0.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
 楼主| 发表于 2005-2-20 00:02:47 | 显示全部楼层
#***********************************************************************
#
# pppoe.conf
#
# Configuration file for rp-pppoe.  Edit as appropriate and install in
# /etc/ppp/pppoe.conf
#
# NOTE: This file is used by the adsl-start, adsl-stop, adsl-connect and
#       adsl-status shell scripts.  It is *not* used in any way by the
#       "pppoe" executable.
#
# Copyright (C) 2000 Roaring Penguin Software Inc.
#
# This file may be distributed under the terms of the GNU General
# Public License.
#
# LIC: GPL
# $Id: pppoe.conf,v 1.10 2002/04/09 17:28:38 dfs Exp $
#***********************************************************************

# When you configure a variable, DO NOT leave spaces around the "=" sign.

# Ethernet card connected to ADSL modem
ETH='eth0'

# ADSL user name.  You may have to supply "@provider.com"  Sympatico
# users in Canada do need to include "@sympatico.ca"
# Sympatico uses PAP authentication.  Make sure /etc/ppp/pap-secrets
# contains the right username/password combination.
# For Magma, use xxyyzz@magma.ca
USER='**********'

# Bring link up on demand?  Default is to leave link up all the time.
# If you want the link to come up on demand, set DEMAND to a number indicating
# the idle time after which the link is brought down.
DEMAND=no
#DEMAND=300

# DNS type: SERVER=obtain from server; SPECIFY=use DNS1 and DNS2;
# NOCHANGE=do not adjust.
DNSTYPE=SPECIFY

# Obtain DNS server addresses from the peer (recent versions of pppd only)
# In old config files, this used to be called USEPEERDNS.  Changed to
# PEERDNS for better Red Hat compatibility
PEERDNS=no

DNS1=202.98.0.68
DNS2=202.98.5.68

# Make the PPPoE connection your default route.  Set to
# DEFAULTROUTE=no if you don't want this.
DEFAULTROUTE=yes

### ONLY TOUCH THE FOLLOWING SETTINGS IF YOU'RE AN EXPERT

# How long adsl-start waits for a new PPP interface to appear before
# concluding something went wrong.  If you use 0, then adsl-start
# exits immediately with a successful status and does not wait for the
# link to come up.  Time is in seconds.
#
# WARNING WARNING WARNING:
#
# If you are using rp-pppoe on a physically-inaccessible host, set
# CONNECT_TIMEOUT to 0.  This makes SURE that the machine keeps trying
# to connect forever after adsl-start is called.  Otherwise, it will
# give out after CONNECT_TIMEOUT seconds and will not attempt to
# connect again, making it impossible to reach.
CONNECT_TIMEOUT=30

# How often in seconds adsl-start polls to check if link is up
CONNECT_POLL=2

# Specific desired AC Name
ACNAME=

# Specific desired service name
SERVICENAME=

# Character to echo at each poll.  Use PING="" if you don't want
# anything echoed
PING="."

# File where the adsl-connect script writes its process-ID.
# Three files are actually used:
#   $PIDFILE       contains PID of adsl-connect script
#   $PIDFILE.pppoe contains PID of pppoe process
#   $PIDFILE.pppd  contains PID of pppd process
CF_BASE=`basename $CONFIG`
PIDFILE="/var/run/$CF_BASE-adsl.pid"

# Do you want to use synchronous PPP?  "yes" or "no".  "yes" is much
# easier on CPU usage, but may not work for you.  It is safer to use
# "no", but you may want to experiment with "yes".  "yes" is generally
# safe on Linux machines with the n_hdlc line discipline; unsafe on others.
SYNCHRONOUS=no

# Do you want to clamp the MSS?  Here's how to decide:
# - If you have only a SINGLE computer connected to the ADSL modem, choose
#   "no".
# - If you have a computer acting as a gateway for a LAN, choose "1412".
#   The setting of 1412 is safe for either setup, but uses slightly more
#   CPU power.
CLAMPMSS=1412
#CLAMPMSS=no

# LCP echo interval and failure count.
LCP_INTERVAL=20
LCP_FAILURE=3

# PPPOE_TIMEOUT should be about 4*LCP_INTERVAL
PPPOE_TIMEOUT=80

# Firewalling: One of NONE, STANDALONE or MASQUERADE
FIREWALL=STANDALONE

# Linux kernel-mode plugin for pppd.  If you want to try the kernel-mode
# plugin, use LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.so
LINUX_PLUGIN=

# Any extra arguments to pass to pppoe.  Normally, use a blank string
# like this:
PPPOE_EXTRA=""

# Rumour has it that "Citizen's Communications" with a 3Com
# HomeConnect ADSL Modem DualLink requires these extra options:
# PPPOE_EXTRA="-f 3c12:3c13 -S ISP"

# Any extra arguments to pass to pppd.  Normally, use a blank string
# like this:
PPPD_EXTRA=""


########## DON'T CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING
# If you wish to COMPLETELY overrride the pppd invocation:
# Example:
# OVERRIDE_PPPD_COMMAND="pppd call dsl"

# If you want adsl-connect to exit when connection drops:
# RETRY_ON_FAILURE=no
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-20 00:07:22 | 显示全部楼层
主要问题有两个 一个是启动的时候network faile 我也不知道是我的网卡不认,还是写错了??

配置PPP之后 adsl-start time out 现在我不能确定是网卡的原因,还是ADSL的原因!!谁能帮帮我??
回复 支持 反对

使用道具 举报

发表于 2005-2-20 03:49:42 | 显示全部楼层
network faile 是因为开了 dhcp, 把他注释掉,gateway也注释掉

#lsmod 可以看模块的加载情况,

楼主已经开hotplug,hotplug能自动检测硬件,并加载相应的模块的,所以 modprobe.conf的配置可以不要的
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-20 10:52:13 | 显示全部楼层
Post by zerolin
network faile 是因为开了 dhcp, 把他注释掉,gateway也注释掉

#lsmod 可以看模块的加载情况,

楼主已经开hotplug,hotplug能自动检测硬件,并加载相应的模块的,所以 modprobe.conf的配置可以不要的


我注释掉了dhcp 和gateway 但是除了network 通过之外,ADSL还是起不来!

是否与下面一句有关??
当我加载守护程序时(daemon) 有一个 can't load module pciehp
missing kernel or user mode driver pciehp
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-20 10:53:00 | 显示全部楼层
是否是ADSL猫没有被识别?
回复 支持 反对

使用道具 举报

发表于 2005-2-20 13:53:25 | 显示全部楼层
lsmod,有无via-rhine模块,没有可以加载到rc.conf 的MODULES=(!usbserial !ide-scsi)中,注释掉dhcp gateway,
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-2-20 21:04:28 | 显示全部楼层
Post by ygw_ycf
lsmod,有无via-rhine模块,没有可以加载到rc.conf 的MODULES=(!usbserial !ide-scsi)中,注释掉dhcp gateway,



lsmod 有via-rhine模块的加载 ,加入MODULES=(!usbserial !ide-scsi)中,注释掉dhcp gateway之后还是ADSL还是启动不了

time out依旧!
回复 支持 反对

使用道具 举报

发表于 2005-2-20 22:29:25 | 显示全部楼层
你的域名服务器添对了吗?vpi,vci 添了吗
执行ifconfig,贴出来
你的猫支持路由的话,直接开启路由,就不用这么麻烦了。
回复 支持 反对

使用道具 举报

发表于 2005-2-20 22:48:12 | 显示全部楼层
我也不行,后来自己重新编译了内核就可以了
最好把ipv6支持去掉
回复 支持 反对

使用道具 举报

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

本版积分规则

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