Re: lug-bg: PPPoE client config
- Subject: Re: lug-bg: PPPoE client config
- From: George Danchev <danchev@xxxxxxxxx>
- Date: Tue, 12 Aug 2003 18:54:42 +0300
--cut--
> И от smart-replies.html има нужда.
taka ostavqme syrkazma na strana ;-)
> Ама като за начало дай нещо повече за което да се хванем и да
> подъвчем... Откъси от log файлове, конфигурационни файлове, какво си
> пробвал, кое става, кое не става, дай ifconfig eth0, версия на pppd-to,
> pppoe -A -I eth0, откъси от логовете с PAD{O,I,T} и т.н...
>
vqrno, zabravih syslog-a:
Aug 12 12:57:12 debian pppoe[1083]: PADS: Service-Name: ''
Aug 12 12:58:36 debian pppoe[1101]: PADS: Service-Name: ''
Aug 12 12:59:07 debian pppoe[1101]: Session terminated -- received PADT from
peer
Aug 12 13:19:55 debian pppoe[1589]: Timeout waiting for PADO packets
...
Aug 12 13:53:10 debian pppoe[1476]: Timeout waiting for PADO packets
Aug 12 14:08:05 debian pppoe[1786]: PADS: Service-Name: ''
Aug 12 14:08:36 debian pppoe[1786]: Session terminated -- received PADT from
peer
Aug 12 14:09:06 debian pppoe[1806]: Timeout waiting for PADO packets
Aug 12 14:09:27 debian pppoe[1861]: Timeout waiting for PADO packets
Aug 12 15:01:35 debian pppoe[2803]: Timeout waiting for PADO packets
....
Aug 12 17:46:38 debian pppoe[642]: PADS: Service-Name: ''
Aug 12 17:46:41 debian pppoe[642]: Sent PADT
Aug 12 17:47:06 debian pppoe[683]: PADS: Service-Name: ''
Aug 12 17:47:09 debian pppoe[683]: Sent PADT
Aug 12 17:47:46 debian pppoe[702]: Timeout waiting for PADO packets
Aug 12 17:48:14 debian pppoe[711]: Timeout waiting for PADO packets
(tova ne go razbrah kakvo e)
v kernel-a imam PPPoE. imam installed ppp, pppoe, pppoeconf
/usr/share/doc/pppoe/ me prasta kym http://www.shoshin.uwaterloo.ca/~mostrows/
da tyrsq Michal's patrched pppd, oba4e nqma nikoj, no ot
http://www.roaringpenguin.com/pppoe/ izteglih rp-pppoe-3.5.tar.gz (samo
plugina), i ponezhe iska src na pppd (gornoto), smetnah 4e e naj-dobre da
polzvam ppp ot cvs.samba.org kydeto ima pppd/plugins/rp-pppoe/. Probah i s
src na ppp-2.4.1uus-5 kato dobavih rp-pppoe v plugins/.
Nqkoj da predlozhi drugo patched ppp ? Qvno v pppd-to e problema.
/etc/ppp/pap-secrets e OK (nqma da go davam)
/etc/ppp/peers/dsl-provider go paste-nah v prednoto msg.
/etc/network/interfaces
auto lo
iface lo inet loopback
(nqmam nuzhda ot nisto, tuka, IP-to go polu4avam ot otsresta, pppoeconf
naprimer otkriva 4e prez eth0 ima PPPoE server otsresta, iptraf, tcpdump
pokazvat systo 4e fyr4at paketi prez tozi iface ;-)
/etc/ppp/pppoe.conf (tozi go zabravih;-)
# 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@xxxxxxxx
#USER=bxxxnxnx@xxxxxxxxxxxx
USER='danchev'
# 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=IP-na-rabotest-DNS-no-ne-e-tolko-vazhno-sega;-)
DNS2=
# 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=NONE
# 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=/etc/ppp/plugins/rp-pppoe.so
-------------------------------------------------
pppd call dsl-provider (pon dsl-provider) startira:
root 1102 0.6 0.4 1748 816 ? S 18:28 0:00 /usr/sbin/pppd
call dsl-provider
root 1103 1.3 0.2 1228 480 ? S 18:28 0:00 /usr/sbin/pppoe
-I eth0 -T 80 -m 1452
Nqma oplakvaniq, no ifconfig list-va samo lo, vryzka nqma i po IP vkl. i ot
moq segment.
Otsresta hardware-to izglezhda da e OK.
pppoe -A -I eth0
list-va Access-Concentrator-a (da toj e;-),
i mnogo imena na Service-Name's, mezhdu kojto i toq kym kojto se vryzvam (kyde
se slaga tova v config files ? ) i AC-Ethernet-Address (kojto ne me
interesuva;-)
pppoeconf nakraq dava
pp0: error fetching interface information: Device not found
ppp0: error fetching interface information: Device not found
Zna4i v pppd trqbva da e problema. Idei za pppd. 10x.
--
pub 4096R/0E4BD0AB 2003-03-18 <keyserver.bu.edu>
1AE7 7C66 0A26 5BFF DF22 5D55 1C57 0C89 0E4B D0AB
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|