pppoe Verbindung mit C2-010-I Modem von Hansenet

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
trombo
Beiträge: 21
Registriert: 20.04.2007 10:33:50

pppoe Verbindung mit C2-010-I Modem von Hansenet

Beitrag von trombo » 20.04.2007 11:05:30

Hallo,
ich schaffe es nicht mit dem C2-010-I Modem, das von Hansenet mitgeliefert wird, eine pppoe Verbindung aufzubauen. (ppp 2.4.4)
Nach dem pppoe Discovery bricht die Verbindung ab und ich weiß nicht weiter.
Mit dieser Kommandozeile habe ich es versucht:
/usr/sbin/pppd nodetach pty "pppoe -I eth0 -D file_name" connect /bin/true usepeerdns ipcp-accept-remote ipcp-accept-local noipdefault defaultroute
user "stl9xxxxxx" password "cxxxxxxx" lcp-echo-failure 5 lcp-echo-interval 15 lock debug noaccomp nopcomp novj novjccomp nobsdcomp nodeflate noccp nocrtscts local noauth

Dann wenn die ppp Verbindung anfängt, bricht es mit der Fehlermeldung
"LCP: timeout sending Config-Requests." ab.
Dazu habe ich aber nach googlen und herumfragen nichts gefunden. Wie man den Debugoutput noch "geschwätziger" stellt, weiß ich nicht. Das Modem ist übrigens eigentlich ein gebridgter Router von Siemens. Und ja, die Verbindung funktioniert mit anderer Hardware (fritzbox-router).
Bin für jeden Hinweis dankbar
Thomas

Hier jetzt einige logs der Verbindunsversuche:
/snip
less /var/log/syslog
Apr 5 12:14:59 localhost pppd[12895]: pppd 2.4.4b1 started by root, uid 0
Apr 5 12:14:59 localhost pppd[12895]: Serial connection established.
Apr 5 12:14:59 localhost pppd[12895]: Using interface ppp0
Apr 5 12:14:59 localhost pppd[12895]: Connect: ppp0 <--> /dev/pts/9
Apr 5 12:14:59 localhost pppoe[12896]: PADS: Service-Name: ''
Apr 5 12:15:00 localhost pppoe[12896]: PPP session is 4842
Apr 5 12:15:30 localhost pppd[12895]: LCP: timeout sending Config-Requests
Apr 5 12:15:30 localhost pppd[12895]: sent [LCP ConfReq id=0x1 <asyncmap> magic 0xd782b3c1>]
Apr 5 12:15:30 localhost last message repeated 9 times
Apr 5 12:15:30 localhost pppd[12895]: Connection terminated.
Apr 5 12:15:30 localhost pppd[12895]: Modem hangup
Apr 5 12:15:30 localhost pppoe[12896]: read (asyncReadFromPPP): Session 4842: Input/output error
/snipend

/snip
pppoe -I eth0 -D file_name"
rp-pppoe-3.5
12:17:17.917 SENT PPPoE Discovery (8863) PADI sess-id 0 length 4
SourceAddr 00:02:8a:35:dd:82 DestAddr ff:ff:ff:ff:ff:ff
01 01 00 00 ....

12:17:17.988 RCVD PPPoE Discovery (8863) PADO sess-id 0 length 35
SourceAddr 00:90:1a:41:65:52 DestAddr 00:02:8a:35:dd:82
01 02 00 07 48 4e 2d 58 44 53 4c 01 01 00 00 01 ....HN-XDSL.....
04 00 10 75 7b ba de 6d 33 27 35 b4 b5 55 c5 ac ...u{..m3'5..U..
a6 b9 c1 ...

12:17:17.988 SENT PPPoE Discovery (8863) PADR sess-id 0 length 24
SourceAddr 00:02:8a:35:dd:82 DestAddr 00:90:1a:41:65:52
01 01 00 00 01 04 00 10 75 7b ba de 6d 33 27 35 ........u{..m3'5
b4 b5 55 c5 ac a6 b9 c1 ..U.....

12:17:18.072 RCVD PPPoE Discovery (8863) PADS sess-id 4937 length 35
SourceAddr 00:90:1a:41:65:52 DestAddr 00:02:8a:35:dd:82
01 01 00 00 01 02 00 07 48 4e 2d 58 44 53 4c 01 ........HN-XDSL.
04 00 10 75 7b ba de 6d 33 27 35 b4 b5 55 c5 ac ...u{..m3'5..U..
a6 b9 c1 ...

12:17:48.947 SENT PPPoE Discovery (8863) PADT sess-id 4937 length 71
SourceAddr 00:02:8a:35:dd:82 DestAddr 00:90:1a:41:65:52
02 03 00 2f 52 50 2d 50 50 50 6f 45 3a 20 53 79 .../RP-PPPoE: Sy
73 74 65 6d 20 63 61 6c 6c 20 65 72 72 6f 72 3a stem call error:
20 49 6e 70 75 74 2f 6f 75 74 70 75 74 20 65 72 Input/output er
72 6f 72 01 04 00 10 75 7b ba de 6d 33 27 35 b4 ror....u{..m3'5.
b5 55 c5 ac a6 b9 c1 .U.....
/snipend
Nach oben

Benutzeravatar
chilli
Beiträge: 23
Registriert: 25.01.2007 12:10:00

Beitrag von chilli » 20.04.2007 11:18:05

Hi,

probier mal pppoeconf aus. Da gibst du dann einfach deine Zugansdaten ein. Anschliessend kannst du die Verbindung mit pon dsl-provider aufbauen.

Dazu solltest du auch jede Menge hier im Forum finden wenn du z.B nach pppoeconf suchst.

trombo
Beiträge: 21
Registriert: 20.04.2007 10:33:50

Lösung:

Beitrag von trombo » 24.04.2007 12:05:40

Hallo,
pppoeconf hat mir auf die Sprünge geholfen. Es hat folgendes in die Datei /etc/ppp/dsl-provider eingetragen, die pon ausliest.
/usr/sbin/pppd noipdefault usepeerdns defaultroute hide-password lcp-echo-interval 20 lcp-echo-failure 3 connect /bin/true noauth persist mtu 1492 noaccomp default-asyncmap plugin rp-pppoe.so eth0 user "stl165***"
Zusätzlich hat es noch Daten in die Datei chapsecrets eingetragen, die vorher nicht im richtigen Format waren. Was einige der Optionen machen, konnte ich anhand der man pppd nicht ganz erschließen:
zb:
- noaccomp Disable Address/Control compression in both directions compression?
- default-asyncmap Disable asyncmap negotiation, forcing all control characters to be escaped for both the transmit and the receive direction
Wesentlich war wohl: plugin rp-pppoe.so eth0.
Mit tcpdump -s 500 -C 1 -w /tmp/tcpdump "pppoed || pppoes" und
tethereal -l -t ad -r /tmp/tcpdump oder ganz einfach etherreal und
http://de.wikipedia.org/wiki/Link_Control_Protocol, http://de.wikipedia.org/wiki/Point-to-Point_Protocol
kann man die Kommunikation en detail schön nachvollziehen.
Bei mir war es so, dass mein Client irgendwo mittendrin auf einen PPP LCP Configuration Request, keinen Gegenrequest, und auch keinen Ack gekriegt hat. Warum weiß ich nicht. (;
Übrigens -da wir schon soweit sind- hatte mir Alice 3 Stunden lang den Account gesperrt, als ich das usepeerdns flag wegließ. Das bedeutet, dass wir nicht ihre dnsserver benutzen (sie nicht danach fragen und sie auch nicht in resolv.conf eintragen) "CHAP authentication failed: Request Denied" hieß es auf einmal. :idea: 8)
Danke an alle die mir geholfen haben
Thomas

1 2007-04-23 22:22:33.312986 AmbitMic_35:dd:82 -> Broadcast PPPoED Active D
iscovery Initiation (PADI)
2 2007-04-23 22:22:33.454279 Unispher_41:65:52 -> AmbitMic_35:dd:82 PPPoED Act
ive Discovery Offer (PADO)
3 2007-04-23 22:22:33.454355 AmbitMic_35:dd:82 -> Unispher_41:65:52 PPPoED Act
ive Discovery Request (PADR)
4 2007-04-23 22:22:33.546315 Unispher_41:65:52 -> AmbitMic_35:dd:82 PPPoED Act
ive Discovery Session-confirmation (PADS)
5 2007-04-23 22:22:33.547799 AmbitMic_35:dd:82 -> Unispher_41:65:52 PPP LCP Co
nfiguration Request
-----> hier brach er ab
6 2007-04-23 22:22:33.730273 Unispher_41:65:52 -> AmbitMic_35:dd:82 PPP LCP Co
nfiguration Request
7 2007-04-23 22:22:33.730419 AmbitMic_35:dd:82 -> Unispher_41:65:52 PPP LCP Co
nfiguration Ack
8 2007-04-23 22:22:33.732303 Unispher_41:65:52 -> AmbitMic_35:dd:82 PPP LCP Co
nfiguration Ack
9 2007-04-23 22:22:33.732374 AmbitMic_35:dd:82 -> Unispher_41:65:52 PPP LCP Ec
ho Request
10 2007-04-23 22:22:33.750309 Unispher_41:65:52 -> AmbitMic_35:dd:82 PPP CHAP C
hallenge
11 2007-04-23 22:22:33.750514 AmbitMic_35:dd:82 -> Unispher_41:65:52 PPP CHAP R
esponse
12 2007-04-23 22:22:33.752304 Unispher_41:65:52 -> AmbitMic_35:dd:82 PPP LCP Ec
ho Reply
13 2007-04-23 22:22:33.922228 Unispher_41:65:52 -> AmbitMic_35:dd:82 PPP CHAP S
uccess (MESSAGE='')
14 2007-04-23 22:22:33.922491 AmbitMic_35:dd:82 -> Unispher_41:65:52 PPP IPCP C
onfiguration Request
15 2007-04-23 22:22:33.940305 Unispher_41:65:52 -> AmbitMic_35:dd:82 PPP IPCP C
onfiguration Nak
16 2007-04-23 22:22:33.940366 AmbitMic_35:dd:82 -> Unispher_41:65:52 PPP IPCP C
onfiguration Request
17 2007-04-23 22:22:33.958266 Unispher_41:65:52 -> AmbitMic_35:dd:82 PPP IPCP C
onfiguration Ack
18 2007-04-23 22:22:34.050271 Unispher_41:65:52 -> AmbitMic_35:dd:82 PPP IPCP C
onfiguration Request
19 2007-04-23 22:22:34.050376 AmbitMic_35:dd:82 -> Unispher_41:65:52 PPP IPCP C
onfiguration Ack

Antworten