View previous topic :: View next topic |
Author |
Message |
flammenflitzer Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/409843123410eaf2de9947.gif)
Joined: 25 Nov 2003 Posts: 3541 Location: Berlin
|
Posted: Tue Aug 01, 2006 11:46 am Post subject: Arcor DSL |
|
|
Hallo
Ich bin heute von einem USB Kabelmodem zu Arcor DSl umgestiegen. Jetzt ist die frühere Netzwerkkarte eth1 nun eth0, weil das USB Modem wegfällt.
Ich habe die Konfiguration in /etc/conf.d/net geleert, da steht also im Moment gar nichts drin (Wird nach meiner Kentnnis automatisch dhcpcd angewendet).Ich habe emerge ppp durchgeführt. Dann habe ich rc-update del eth0 default und rc-update del eth1 default durchgeführt. Ich habe alles, was ich ausprobiert habe dokumentiert. Liegt aber auf meinerreiserfs Partition, an die ich im Moment nicht herankomme. Ist vielleicht auch einfacher, wenn mir jemand sagt, wie man es macht, als die ganzen Maßnahmen, die ich durchgeführt habe, nach einem Fehler zu untersuchen.
(Ich habe einen Kernel 2.6 und habe ppp fest im Kernel.)
Vieleicht kann mir ja ein Arcor-Nutzer einen Tipp geben? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
think4urs11 Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/8534934054bad29b51e5fa.jpg)
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Tue Aug 01, 2006 1:00 pm Post subject: |
|
|
sollte eigentlich genauso gehen wie mit anderen DSL-Anbietern auch.
Auf meiner FW-Box sieht das dann z.B. so aus wie hier (eth0 ist LAN, eth1 ist zum DSL-Modem)
/etc/conf.d/net: | modules=( "iproute2" )
config_eth0=( "10.2.3.1 netmask 255.255.255.0 broadcast 10.2.3.255" )
config_eth1=( "null" )
config_ppp0=( "ppp" )
link_ppp0="eth1"
plugins_ppp0=( "pppoe" )
username_ppp0="*zensiert*"
password_ppp0="*zensiert*"
pppd_ppp0=(
"updetach"
"defaultroute"
"holdoff 5"
"lcp-echo-interval 5"
"lcp-echo-failure 5"
) |
_________________ Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
flammenflitzer Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/409843123410eaf2de9947.gif)
Joined: 25 Nov 2003 Posts: 3541 Location: Berlin
|
Posted: Tue Aug 01, 2006 6:04 pm Post subject: |
|
|
Ich habe einiges verändert. Mein erstes (Not) gentoosystem (gnome-2.12 kernel 2.6.15-gentoo-r5 sys-apps/baselayout1.11.14-r8 ) kann in's Internet verbinden. Mein zweites System nicht (gnome-2.14 kernel 2.6.16-r12 sys-apps/baselayout-1.11.15-r3). Ich denke, es liegt irgendwo am DNS Server. aMule kann verbinden, die Browser nicht. Gleichfalls läßt sich der Portagethree nicht synchronisieren. Code: | 1)
überflüssige Netzwerkkarten entfernt und
localhost linux # rc-update del net.eth1 default
* net.eth1 removed from the following runlevels: default
* rc-update complete.
localhost linux # rc-update del net.eth2 default
* net.eth2 removed from the following runlevels: default
* rc-update complete.
2)
firewall deaktiviert
3)
USE="pam" emerge -av ppp
4)
nano /etc/ppp/pap-secrets
"mein Benutzername" * "mein Passwort"
5)
nano /etc/conf.d/net
modules=( "iproute2" )
config_eth0=( "null" )
config_ppp0=( "ppp" )
link_ppp0="eth1"
plugins_ppp0=( "pppoe" )
username_ppp0="*zensiert*"
password_ppp0="*zensiert*"
pppd_ppp0=(
"updetach"
"defaultroute"
"holdoff 5"
"lcp-echo-interval 5"
"lcp-echo-failure 5"
)
6)
nano /etc/conf.d/net.ppp0
# /etc/conf.d/net.ppp0:
# $Header: /var/cvsroot/gentoo-x86/net-dialup/ppp/files/confd.ppp0,v 1.3 2005/02/06 09:22:13 mrness Exp $
# Config file for /etc/init.d/net.ppp0
KERNELMODE="yes" #neuer Eintrag
# PEER="MyPeer" #auskommentiert # Define peer (aka ISP)
DEBUG="yes" #geändert"no" # Turn on debugging
PERSIST="yes" #geändert"no" # Redial after being dropped
ONDEMAND="no" # Only bring the interface up on demand?
MODEMPORT="eth0" #geändert"/dev/ttyS1" # TTY device modem is connected to
# LINESPEED="115200" #auskommentiert # Speed pppd should try to connect at
# INITSTRING="" #auskommentiert # Extra init string for the modem
DEFROUTE="yes" # Must pppd set the default route?
# HARDFLOWCTL="yes" #auskommentiert # Use hardware flow control?
# ESCAPECHARS="yes" #auskommentiert # Use escape caracters ?
PPPOPTIONS="" # Extra options for pppd
USERNAME="***********" #geändert # The PAP/CHAP username
# PASSWORD="passwd" #auskommentiert # Your password/secret. Ugly I know, but i
# will work on something more secure later
# on. 700 permission on /etc/init.d/net.ppp0
# should be enouth for now.
# NUMBER="9180000" #auskommentiert # The telephone number of your ISP
# leave blank for leased-line operation.
REMIP="" # The ip of the remote box if it should be set
# NETMASK="" #auskommentiert # Netmask
IPADDR="" # Our IP if we have a static one
MRU="1492" #geändert"768" # Sets the MRU
MTU="1492" #geändert"768" # Sets the MTU
RETRYTIMEOUT="60" # Retry timeout for when ONDEMAND="yes" or
# PERSIST="yes"
IDLETIMEOUT="600" # Idle timeout for when ONDEMAND="yes"
PEERDNS="no" # Should pppd set the peer dns?
AUTOCFGFILES="no" #geändert"yes" # By default this scripts will generate
# /etc/ppp/chat-isp, /etc/ppp/chap-secrets,
# /etc/ppp/pap-secrets and /etc/ppp/peers/isp
# automatically. Set to "no" if you experience
# problems, or need specialized scripts. You
# will have to create these files by hand then.
AUTOCHATSCRIPT="no" #geändert"yes" # By default this script iwll generate
# /etc/ppp/chat-${PEER} automatically. Set to "no"
# if you experience problems, or need specialized
# scripts. You will have to create these files by
# hand then.
# Directory where the templates is stored
TEMPLATEDIR=/etc/ppp
7)
cp /etc/conf.d/net.ppp0 /etc/conf.d/net.ppp0-alt
8)
nano /etc/init.d/net.ppp0
#!/sbin/runscript
#added for discription ----begin ----
# this script was modified to bring up a dsl connection
# via ppd only in kernel mode
# in the future there should be made modifications for compatibility
# analog modem <--> dsl modem
# configuration have to be done in /etc/conf.d/net.ppp0
#added for discription ----end ------
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dialup/ppp/files/net.ppp0,v 1.9 2005/04/16 10:10:42 mrness Exp $
# Misc internal variables
CMD_LINE=""
FUNCT="$2"
TEMPLATEDIR="/etc/ppp"
checkconfig() {
if [ -e "/var/run/ppp-${IFACE}.pid" -o -e "/var/run/${IFACE}.pid" ] && \
[ "${FUNCT}" = "start" ]
then
eerror "${IFACE} is already up"
return 1
fi
}
start() {
checkconfig || return 1
setup_modules
setup_cmd_line
setup_cfg_files
#---------- manual added for uncomlicated startup ---begin-----
ifconfig ${MODEMPORT} up mtu 1500
#---------- manual added for uncomlicated startup ---end-------
#---------- manual added for debugging ---begin-----
# Added hide-password here, can't be too sure...
PPDCOMMAND="/usr/sbin/pppd ${CMD_LINE} ${MODEMPORT} ${LINESPEED} \
linkname ${IFACE} noauth ${PPPOPTIONS} hide-password"
if [ "${DEBUG}" = "yes" ]
then
ebegin "complete command for ppd: $PPDCOMMAND"
fi
#---------- manual added for debugging ---end------
ebegin "Bringing ${IFACE} up"
if [ -x "$(which pppd)" ]
then
if [ "${DEFROUTE}" = "yes" ]
then
[ -n "$(/sbin/route -n | egrep '^0.0.0.0')" ] && route del default
fi
#manual modified for debugging
#next line will start ppd
$PPDCOMMAND
fi
eend
}
stop() {
checkconfig || return 1
ebegin "Bringing ${IFACE} down"
if [ -x "$(which ifconfig)" ]
then
# Obtain interface name from pid file (IFACE is actually linkname)
if [ -e /var/run/ppp-${IFACE}.pid ]
then
IFNAME=$(egrep "ppp" /var/run/ppp-${IFACE}.pid)
fi
if [ -z "${IFNAME}" ]
then
IFNAME=${IFACE}
fi
if [ -z "$(/sbin/ifconfig | egrep "${IFNAME}")" ]
then
# Link is not up but pppd may be running
ewarn "Interface seems to be down already"
fi
if [ -e /var/run/ppp-${IFACE}.pid ]
then
PID=$(egrep -v "${IFNAME}" /var/run/ppp-${IFACE}.pid)
elif [ -e /var/run/${IFACE}.pid ]
then
PID=$(egrep -v "${IFNAME}" /var/run/${IFACE}.pid)
fi
if [ -n "${PID}" ]
then
kill ${PID}
sleep 1
# Try to kill pppd repeatedly (sometimes, (e.g. if connection
# is not established) pppd ignores SIGTERM for a while)
PID_TMP=`pstree -p ${PID}`
PID_TMP=`echo ${PID_TMP} | sed -e 's:^.*pppd(\|).*::g'`
COUNT=0
while [ -n "${PID_TMP}" ] && [ ${COUNT} -lt 10 ]
do
kill ${PID}
sleep 1
PID_TMP=`pstree -p ${PID}`
PID_TMP=`echo ${PID_TMP} | sed -e 's:^.*pppd(\|).*::g'`
let COUNT++
done
fi
if [ -n "${PID_TMP}" ]
then
eend 1 "Error stopping pppd"
#---------- manual added for clear shutdown ---begin-----
else
ifconfig ${MODEMPORT} down
#---------- manual added for clear shutdown ---end-------
fi
fi
eend
}
setup_cmd_line() {
CMD_LINE="lock"
#---------- manual added for kernel-mode ---begin-----
if [ "${KERNELMODE}" = "yes" ]
then
CMD_LINE="${CMD_LINE} plugin rp-pppoe.so"
fi
#---------- manual added for kernel-mode ---end-----
if [ "${DEBUG}" = "yes" ]
then
CMD_LINE="${CMD_LINE} debug"
fi
if [ "${PERSIST}" = "yes" ]
then
CMD_LINE="${CMD_LINE} persist holdoff ${RETRYTIMEOUT}"
fi
if [ "${DEFROUTE}" = "yes" ]
then
CMD_LINE="${CMD_LINE} defaultroute"
fi
if [ "${HARDFLOWCTL}" = "yes" ]
then
CMD_LINE="${CMD_LINE} modem crtscts"
fi
if [ "${ESCAPECHARS}" = "yes" ]
then
CMD_LINE="${CMD_LINE} asyncmap 00000000"
fi
if [ "${PEERDNS}" = "yes" ]
then
CMD_LINE="${CMD_LINE} usepeerdns"
fi
if [ -n "${IPADDR}${REMIP}" ]
then
CMD_LINE="${CMD_LINE} ${IPADDR}:${REMIP}"
fi
if [ -n "${NETMASK}" ]
then
CMD_LINE="${CMD_LINE} netmask ${NETMASK}"
fi
if [ -n "${MRU}" ]
then
CMD_LINE="${CMD_LINE} mru ${MRU}"
fi
if [ -n "${MTU}" ]
then
CMD_LINE="${CMD_LINE} mtu ${MTU}"
fi
if [ -n "${USERNAME}" ]
then
CMD_LINE="${CMD_LINE} user ${USERNAME}"
fi
if [ "${ONDEMAND}" = "yes" ]
then
CMD_LINE="${CMD_LINE} demand ktune idle ${IDLETIMEOUT}"
CMD_LINE="${CMD_LINE} holdoff ${RETRYTIMEOUT}"
fi
#---------- different changes also affected lines before ---begin-----
# there was a problem without this changes, PEER now not neccessary
if [ -n "${PEER}" ]
then
CMD_LINE="${CMD_LINE} ipparam ${PEER} remotename ${PEER} call ${PEER}"
fi
#---------- different changes also affected lines before ---end-----
}
setup_cfg_files() {
if [ "${AUTOCFGFILES}" = "yes" ]
then
if [ -n "${NUMBER}" ]
then
# Setup the peers file
echo "connect '/usr/sbin/chat -f /etc/ppp/chat-${PEER}'" \
>/etc/ppp/peers/${PEER}
fi
# Setup the secrets files
echo "\"${USERNAME}\" * \"${PASSWORD}\"" >/etc/ppp/chap-secrets
chmod 600 /etc/ppp/chap-secrets
echo "\"${USERNAME}\" ${PEER} \"${PASSWORD}\"" >/etc/ppp/pap-secrets
chmod 600 /etc/ppp/pap-secrets
# Setup the chat file
if [ "${AUTOCHATSCRIPT}" = "yes" ]
then
if [ -n "${INITSTRING}" ]
then
if [ -n "${NUMBER}" ]; then
sed -e "12i\\'OK\' \'${INITSTRING}\'" \
-e "s:\$NUMBER:${NUMBER}:" \
${TEMPLATEDIR}/chat-default \
>/etc/ppp/chat-${PEER}
else
sed -e "12i\\'OK\' \'${INITSTRING}\'" \
${TEMPLATEDIR}/chat-default \
>/etc/ppp/chat-${PEER}
fi
else
if [ -n "${NUMBER}" ]; then
sed -e "s:\$NUMBER:${NUMBER}:" \
${TEMPLATEDIR}/chat-default \
>/etc/ppp/chat-${PEER}
fi
fi
fi
fi
}
setup_modules() {
if [ ! -c /dev/ppp ]; then
modprobe /dev/ppp
fi
}
9)
localhost linux # rc-update add net.ppp0 default
* net.ppp0 added to runlevel default
* rc-update complete.
D.h. im default Runlevel werden net.eth0 und net.ppp0 gestartet.
|
Last edited by flammenflitzer on Tue Aug 01, 2006 7:14 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
flammenflitzer Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/409843123410eaf2de9947.gif)
Joined: 25 Nov 2003 Posts: 3541 Location: Berlin
|
Posted: Tue Aug 01, 2006 6:27 pm Post subject: |
|
|
Hatte beim zweiten System die resolv.conf geleert, beim ersten nicht.
Allerdings ist die Verbindung nicht so fix wie unter WindowsXP. Beim Kabelmodem war es genau anders herum. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dakjo Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/18635768514600eb83f10d8.jpg)
Joined: 31 Jan 2004 Posts: 1544
|
Posted: Tue Aug 01, 2006 7:56 pm Post subject: |
|
|
Also ich hab hier auch Arcor (gleich zweimal) und das geht superfix. (Nur unter Windows nicht.) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
makenoob Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 19 Aug 2004 Posts: 272 Location: /Germany/Düsseldorf
|
Posted: Wed Aug 02, 2006 12:14 pm Post subject: |
|
|
die mtu bei arcor muss 1488 sein, hatte auch lange zeit probleme mit disconnects, bis mir das jemand verraten hatte. kann mich leider nimmer an meine gentoo-config erinnern, hatte aber den roaring-penguin genommen, damit liefs immer ganz gut (nachdem ich die mtu runtergeschraubt hatte). hab mittlerweile openbsd als router, da mir der paketfilter besser gefällt, vpn nahezu "out-of-the-box" läuft und ich nen binary-update innerhalb von 3 minuten gemacht hab (wenns denn mal sein muss ). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
schachti Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/17240378884464519a52d60.jpg)
Joined: 28 Jul 2003 Posts: 3765 Location: Gifhorn, Germany
|
Posted: Thu Aug 03, 2006 5:49 pm Post subject: |
|
|
Also ich habe keinerlei Änderungen an der MTU vorgenommen und keine Probleme mit Arcor. _________________ Never argue with an idiot. He brings you down to his level, then beats you with experience.
How-To: Daten verschlüsselt auf DVD speichern. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
makenoob Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 19 Aug 2004 Posts: 272 Location: /Germany/Düsseldorf
|
Posted: Thu Aug 03, 2006 6:22 pm Post subject: |
|
|
welche mtu ist bei dir auf dem interface eingetragen?
ein kunde von uns hatte probleme nach dem umstieg auf arcor mit emails verschicken. der "tolle" consulter hat eine woche gebraucht, bis er das problem erkannt hatte (zwischendurch gingen keine emails >1mb raus und nein, wir sind nicht der consulter dafür ). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
schachti Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/17240378884464519a52d60.jpg)
Joined: 28 Jul 2003 Posts: 3765 Location: Gifhorn, Germany
|
Posted: Thu Aug 03, 2006 6:36 pm Post subject: |
|
|
Bei mir ist 1500 eingetragen. Aber ich merke gerade, daß ich den Thread nicht aufmerksam genug gelesen habe - bei mir hängt zwischen DSL-Modem und PC noch ein Router. Keine Ahnung, welche MTU der nutzt. _________________ Never argue with an idiot. He brings you down to his level, then beats you with experience.
How-To: Daten verschlüsselt auf DVD speichern. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|