26

Odp: WL500gp + OpenWRT + ADSL przez USB

Witam po dłuższej przerwie..... Trochę mało czasowy jestem ostatnio, ale udało się zrobić kilka rzeczy:

Robiłem zgodnie z opisem na http://pl.docs.pld-linux.org/siec_dsl_neo_thompson.html
Zainstalowałem moduły: atm, atm_synctty.
Podmontowałem system plików: mount -t usbdevfs usbdevfs /proc/bus/usb

I teraz są 2 drogi w zależności od kernela. Obie przećwiczyłem i jest podobny efekt. Opiszę tą dla kernela 2.4.22+.

Zainstalowałem moduł: speedtch (od Sebastiana)
Załadowałem firmware do modemu. Modem przyjął soft i zsynchronizował się.

Info  modem_run version 1.3.1 started by root uid 0
Info  Found SpeedTouch USB modem
Info  Modem revision: 0200
Info  Best offset     36 with probability 100%
Info  Best offset    983 with probability 100%
Info  Firmware info (CRC:0xd80bf9f7, Size:991, Checked: Yes, Alcatel/Thomson Boot block (old))
Info  Best offset   1027 with probability 100%
Info  Best offset 762642 with probability 100%
Info  Firmware info (CRC:0x78039fed, Size:762650, Checked: Yes, 3.0.6 - MacOSX - Win32)
Info  BLOCK1 :    991 bytes   uploaded : OK
Info  BLOCK2 :    511 bytes downloaded : OK
Info  BLOCK3 : 762650 bytes   uploaded : OK
Info  BLOCK4 :    511 bytes downloaded : OKInfo  Found kernel mode driver
Info  Modem reference : 3566067A......
Info  [monitoring report] ADSL link went up
Info  ADSL synchronization has been obtained
Info  ADSL line is up (2496 kbit/s down | 320 kbit/s up)

Następnie uruchomiłem moduł: pppoatm
I odpaliłem ppp: pppd call meostrada-pppoa

# cat /etc/ppp/peers/neostrada-pppoa
debug
kdebug 1
noauth
usepeerdns
noipdefault
defaultroute
pty "/usr/sptch/bin/cezary/pppoa3 -e 1 -v 1 -m 1 -c -vpi 0 -vci 35"
sync
user moj_login@neostrada.pl
noaccomp
nopcomp
noccp
holdoff 4
persist
maxfail 25

Oczywiście chap-secrets i pap-secrets są na swoim miejscu w /etc/ppp

# Secrets for authentication using CHAP
# client        server         secret         IP addresses
moj_login@neostrada.pl * XyXy_haslo *

Tu jedno małe pytanie. Czy moj_login@neostrada.pl i XyXy_haslo mają być zamknięte w "" ? Ja mam bez "".

No i teraz czas na efekty. Log wygląda następująco:

Jan  1 00:00:10 (none) kern.info kernel: usb.c: registered new driver usbdevfs
Jan  1 00:00:10 (none) kern.info kernel: usb.c: registered new driver hub
Jan  1 00:00:11 (none) kern.info kernel: usb.c: registered new driver acm
Jan  1 00:00:11 (none) kern.info kernel: acm.c: v0.21:USB Abstract Control Model driver for USB modems and ISDN adapters
Jan  1 00:00:11 (none) kern.info kernel: SCSI subsystem driver Revision: 1.00
Jan  1 00:00:11 (none) kern.info kernel: Initializing USB Mass Storage driver...
Jan  1 00:00:11 (none) kern.info kernel: usb.c: registered new driver usb-storage
Jan  1 00:00:11 (none) kern.info kernel: USB Mass Storage support registered.
Jan  1 00:00:11 (none) kern.info kernel: uhci.c: USB Universal Host Controller Interface driver v1.1
Jan  1 00:00:11 (none) kern.warn kernel: PCI: Enabling device 01:03.0 (0000 -> 0001)
Jan  1 00:00:11 (none) kern.info kernel: uhci.c: USB UHCI at I/O 0x100, IRQ 2
Jan  1 00:00:11 (none) kern.info kernel: usb.c: new USB bus registered, assigned bus number 1
Jan  1 00:00:11 (none) kern.info kernel: hub.c: USB hub found
Jan  1 00:00:11 (none) kern.info kernel: hub.c: 2 ports detected
Jan  1 00:00:11 (none) kern.warn kernel: PCI: Enabling device 01:03.1 (0000 -> 0001)
Jan  1 00:00:11 (none) kern.info kernel: uhci.c: USB UHCI at I/O 0x120, IRQ 2
Jan  1 00:00:11 (none) kern.info kernel: usb.c: new USB bus registered, assigned bus number 2
Jan  1 00:00:11 (none) kern.info kernel: hub.c: USB hub found
Jan  1 00:00:11 (none) kern.info kernel: hub.c: 2 ports detected
Jan  1 00:00:11 (none) kern.warn kernel: PCI: Enabling device 01:03.2 (0000 -> 0002)
Jan  1 00:00:11 (none) kern.info kernel: ehci_hcd 01:03.2: PCI device 1106:3104
Jan  1 00:00:11 (none) kern.info kernel: ehci_hcd 01:03.2: irq 2, pci mem c01a5000
Jan  1 00:00:11 (none) kern.info kernel: usb.c: new USB bus registered, assigned bus number 3
Jan  1 00:00:11 (none) kern.info kernel: EHCI: Enabling VIA 6212 workarounds
Jan  1 00:00:11 (none) kern.info kernel: ehci_hcd 01:03.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29/2.4
Jan  1 00:00:12 (none) kern.info kernel: hub.c: USB hub found
Jan  1 00:00:12 (none) kern.info kernel: hub.c: 4 ports detected
Jan  1 00:00:12 (none) kern.info kernel: device eth0 entered promiscuous mode
Jan  1 00:00:12 (none) kern.err kernel: hub.c: connect-debounce failed, port 1 disabled
Jan  1 00:00:13 (none) kern.info kernel: hub.c: new USB device 01:03.2-1, assigned address 2
Jan  1 00:00:13 (none) kern.info kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Jan  1 00:00:13 (none) kern.warn kernel:   Vendor: KINGMAX   Model: USB2.0 Flashdisk  Rev: 2.00
Jan  1 00:00:13 (none) kern.warn kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Jan  1 00:00:13 (none) kern.warn kernel: Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
Jan  1 00:00:13 (none) kern.warn kernel: SCSI device sda: 512000 512-byte hdwr sectors (262 MB)
Jan  1 00:00:13 (none) kern.warn kernel: sda: Write Protect is off
Jan  1 00:00:13 (none) kern.info kernel: Partition check:
Jan  1 00:00:13 (none) kern.info kernel:  p1
Jan  1 00:00:13 (none) kern.debug kernel: WARNING: USB Mass Storage data integrity not assured
Jan  1 00:00:13 (none) kern.debug kernel: USB Mass Storage device found at 2
Jan  1 00:00:15 (none) kern.info kernel: b44: eth0: Link is up at 100 Mbps, full duplex.
Jan  1 00:00:15 (none) kern.info kernel: b44: eth0: Flow control is off for TX and off for RX.
Jan  1 00:00:15 (none) kern.debug kernel: vlan0: add 01:00:5e:00:00:01 mcast address to master interface
Jan  1 00:00:15 (none) kern.info kernel: vlan0: dev_set_promiscuity(master, 1)
Jan  1 00:00:15 (none) kern.info kernel: vlan0: dev_set_allmulti(master, 1)
Jan  1 00:00:15 (none) kern.info kernel: device eth2 entered promiscuous mode
Jan  1 00:00:15 (none) kern.info kernel: eth2: attempt to add interface with same source address.
Jan  1 00:00:15 (none) kern.info kernel: br0: port 2(eth2) entering learning state
Jan  1 00:00:15 (none) kern.info kernel: br0: port 1(vlan0) entering learning state
Jan  1 00:00:15 (none) kern.info kernel: br0: port 2(eth2) entering forwarding state
Jan  1 00:00:15 (none) kern.info kernel: br0: topology change detected, propagating
Jan  1 00:00:15 (none) kern.info kernel: br0: port 1(vlan0) entering forwarding state
Jan  1 00:00:15 (none) kern.info kernel: br0: topology change detected, propagating
Jan  1 00:00:18 (none) kern.info dropbear[583]: Running in background
Jan  1 00:00:19 (none) kern.info kernel: IPP2P v0.8.1_rc1 loading
Jan  1 00:00:20 (none) user.info : ez-ipupdate is disabled
Jan  1 00:00:21 (none) kern.info dnsmasq[767]: started, version 2.35 cachesize 150
Jan  1 00:00:21 (none) kern.info dnsmasq[767]: compile time options: IPv6 GNU-getopt ISC-leasefile no-DBus no-I18N 
Jan  1 00:00:21 (none) kern.info dnsmasq[767]: DHCP, IP range 192.168.2.100 -- 192.168.2.249, lease time 12h
Jan  1 00:00:21 (none) kern.info dnsmasq[767]: using local addresses only for domain lan
Jan  1 00:00:21 (none) kern.info dnsmasq[767]: reading /tmp/resolv.conf.auto
Jan  1 00:00:21 (none) kern.info dnsmasq[767]: using nameserver 217.98.63.164#53
Jan  1 00:00:21 (none) kern.info dnsmasq[767]: using nameserver 194.204.152.34#53
Jan  1 00:00:21 (none) kern.info dnsmasq[767]: using local addresses only for domain lan
Jan  1 00:00:21 (none) kern.info dnsmasq[767]: read /etc/hosts - 1 addresses
Jan  1 01:00:21 (none) kern.info dnsmasq[767]: read /etc/ethers - 0 addresses
Jan  1 01:00:22 (none) user.info : crond is disabled[: 0: unknown operand
Jan  1 01:00:22 (none) kern.info kernel: CSLIP: code copyright 1989 Regents of the University of California
Jan  1 01:00:22 (none) kern.info kernel: PPP generic driver version 2.4.2
Jan  1 01:00:22 (none) kern.info kernel: MPPE/MPPC encryption/compression module registered
Jan  1 01:00:23 (none) user.info : To enable miniupnpd set option enable = '1' in /etc/config/upnpd.
Jan  1 01:00:55 (none) kern.info kernel: usb.c: registered new driver speedtch
Jan  1 01:01:22 (none) user.info : pool.ntp.org: Unknown host
Jan  1 01:01:32 (none) kern.info kernel: hub.c: new USB device 01:03.0-2, assigned address 2

# tu następuje wczytanie firmware

Jan  1 01:02:13 (none) kern.warn kernel: usb_control/bulk_msg: timeout
Jan  1 01:02:13 (none) kern.warn kernel: usbdevfs: USBDEVFS_BULK failed dev 2 ep 0x85 len 512 ret -145
Jan  1 01:03:53 (none) kern.notice pppd[866]: pppd 2.4.3 started by root, uid 0
Jan  1 01:03:53 (none) kern.debug pppd[866]: using channel 1
Jan  1 01:03:53 (none) kern.info pppd[866]: Using interface ppp0
Jan  1 01:03:53 (none) kern.notice pppd[866]: Connect: ppp0 <--> /dev/pts/1
Jan  1 01:03:53 (none) kern.debug pppd[866]: Script /usr/sptch/bin/cezary/pppoa3 -e 1 -v 1 -m 1 -c -vpi 0 -vci 35 finished (pid 867), status = 0xff
Jan  1 01:03:53 (none) kern.notice pppd[866]: Modem hangup
Jan  1 01:03:53 (none) kern.notice pppd[866]: Connection terminated.
Jan  1 01:03:57 (none) kern.debug pppd[866]: using channel 2
Jan  1 01:03:57 (none) kern.info pppd[866]: Using interface ppp0
Jan  1 01:03:57 (none) kern.notice pppd[866]: Connect: ppp0 <--> /dev/pts/2
Jan  1 01:03:57 (none) kern.debug pppd[866]: Script /usr/sptch/bin/cezary/pppoa3 -e 1 -v 1 -m 1 -c -vpi 0 -vci 35 finished (pid 887), status = 0xff
Jan  1 01:03:57 (none) kern.notice pppd[866]: Modem hangup
Jan  1 01:03:57 (none) kern.notice pppd[866]: Connection terminated.
.
. itd, itd
.
Jan  1 01:05:32 (none) kern.debug pppd[866]: using channel 25
Jan  1 01:05:32 (none) kern.info pppd[866]: Using interface ppp0
Jan  1 01:05:32 (none) kern.notice pppd[866]: Connect: ppp0 <--> /dev/pts/25
Jan  1 01:05:32 (none) kern.debug pppd[866]: Script /usr/sptch/bin/cezary/pppoa3 -e 1 -v 1 -m 1 -c -vpi 0 -vci 35 finished (pid 1357), status = 0xff
Jan  1 01:05:32 (none) kern.notice pppd[866]: Modem hangup
Jan  1 01:05:32 (none) kern.notice pppd[866]: Connection terminated.
Jan  1 01:05:32 (none) kern.info pppd[866]: Exit.

.... i nic więcej sad

Podsumowując:
1. Instalowanie i rozpoznawanie USB - OK
2. Wczytywanie firmware do modemu i synchronizacja - OK
3. Odpalenie ppp - KICHA

Co jest nie tak? Kombinowałem na wszystkie sposoby. Już brakuje mi pomysłów. Jak można dokładniej dowiedzieć się co się dzieje po odpaleniu pppd?

Pozdrawiam Jarek

27

Odp: WL500gp + OpenWRT + ADSL przez USB

daj -v 2 zamiast -v 1 do wywołania pppoa3  i zobacz co ciekawego wychodzi.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

28

Odp: WL500gp + OpenWRT + ADSL przez USB

A jak powinny być zapisane  moj_login@neostrada.pl i XyXy_haslo w chap-secrets, pap-secrets i meostrada-pppoa? W "" czy bez?

Spotkałem się z różnymi zapisami i nie jestem pewien czy mam dobrze. Ja NIE używam "".

29

Odp: WL500gp + OpenWRT + ADSL przez USB

jkdobro napisał/a:

A jak powinny być zapisane  moj_login@neostrada.pl i XyXy_haslo w chap-secrets, pap-secrets i meostrada-pppoa? W "" czy bez?

Spotkałem się z różnymi zapisami i nie jestem pewien czy mam dobrze. Ja NIE używam "".

Przy ppp nigdy nie stosowałem " wiec chyba dowolnie. Możesz dodać i sprawdzić czy zadziała smile

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

30

Odp: WL500gp + OpenWRT + ADSL przez USB

Po zmianie wywołania na: pppoa3 -e 1 -v 2 -m 1 -c -vpi 0 -vci 35
w logu nic się nie zmieniło. Jest tak samo jak przed zmianą. Może on zapisuje swój log do jakiegoś innego pliku?

31

Odp: WL500gp + OpenWRT + ADSL przez USB

odpal go z ręki: syslogd -O /tmp/msg.txt -C 64  ubijając wcześniej proces (killall syslogd) i zobacz ponownie....

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

32

Odp: WL500gp + OpenWRT + ADSL przez USB

Wydaje mi się, że w efekcie tego powinien sie stworzyć plik /tmp/msg.txt z zawartym logiem.
Niestety nic się nie tworzy. Może coś z parametrami nie tak?

33

Odp: WL500gp + OpenWRT + ADSL przez USB

jkdobro napisał/a:

Wydaje mi się, że w efekcie tego powinien sie stworzyć plik /tmp/msg.txt z zawartym logiem.
Niestety nic się nie tworzy. Może coś z parametrami nie tak?

Zrób samo killall syslogd; syslogd -O /tmp/msg.txt

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

34

Odp: WL500gp + OpenWRT + ADSL przez USB

Syslog do pliku zadziałał. Niestety przy próbie uruchomienia pppd nic więcej oprócz tego co było wcześniej się nie znajduje. Dokładnie te same wpisy. Zero dodatkowej informacji. sad

35

Odp: WL500gp + OpenWRT + ADSL przez USB

Wręcz niemożliwe, bo w tych logach nie masz nic od ppoa3, mimo że powinno dawać aż miło. Próbowałeś uruchomić pppoa3 samo i zobaczyć czy w ogóle działa?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

36 (edytowany przez jkdobro 2007-01-15 21:49:52)

Odp: WL500gp + OpenWRT + ADSL przez USB

Nie próbowałem.

# pppoa3 -h

Chyba działa, bo z -h wyświetlił dostępne opcje.
Faktycznie z -v 2 powinien dawać dużo informacji. Tak przynajmniej mówi help.

W manualu do pppd na http://www.digipedia.pl/man/pppd.8.html wyczytałem, że:

Komunikaty są przesyłane do demona sysloga przy użyciu zabudowy LOG_DAEMON. (Może to być przesłonięte przez rekompilowanie pppd z makrem LOG_PPP przedefiniowanym na pożądaną zabudowę.) Aby zobaczyć komunikaty o błędach i debuggowe, musisz wyedytować plik /etc/syslog.conf tak, aby przekierowywał komunikaty na określone urządzenie wyjściowe lub plik.

ale nie mam pliku /etc/syslog.conf

37

Odp: WL500gp + OpenWRT + ADSL przez USB

A co masz w pliku options? Bo IMHO powinien być pusty.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

38

Odp: WL500gp + OpenWRT + ADSL przez USB

/etc/ppp/options w tej chili u mnie nie istnieje. Był ale dużo wcześniej zmieniłem go na options.old

39

Odp: WL500gp + OpenWRT + ADSL przez USB

To nie wiem. Powinno działać. możesz odpalić pppd ręcznie podając te wszystkie opcje w linii za pppd. Ale nie wiem czy to w czymś Ci pomoże.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

40 (edytowany przez jkdobro 2007-01-15 22:06:30)

Odp: WL500gp + OpenWRT + ADSL przez USB

odpaliłem teraz

# pppd call neostrada-pppoa

bez modemu. Zachowuje się tak samo jak z modemem. Dziwne. Nie informuje o żadnych błędach. Może nie rozpoznaje modemu? pppoa3 ma przełącznik -m i w helpie pisze że to jest ID modemu. U mnie jest ustawione na 1. Może ID modemu jest inne. Jak można sprawdzić ID modemu?

41

Odp: WL500gp + OpenWRT + ADSL przez USB

co do sysloga - to wersja z busyboxa i nie wspiera ona syslog.conf - po prostu działa bez żadnej konfiguracji. Możesz też zwiekszyć kdebug na 2, też __powinien__ być bardziej rozmowny.

Id modemu chyba nie ma znaczenia. Zawsze mozesz zmienić i zobaczyć.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

42

Odp: WL500gp + OpenWRT + ADSL przez USB

Chyba znalazłem. W /var/log zapakował plik pppoa3-modem1.log tam są informacje. Ale dlaczego tam? Nie ważne. Znalazł sie winowajca. Poniżej zawartość pppoa3-modem1.log:

New log started for PPPoA3 version 1.3.1
---------------------------------------------

Info  >1024< pppoa3 version 1.3.1 started by root (uid 0)
Info  >1024< Vpi set to 0
Info  >1024< Vci set to 35
Info  >1024< Verbosity level set to 2
Info  >1024< Schedule policy set to 0
Info  >1024< Modem ID set to 1
Info  >1024< Using Sync HDLC mode
Info  >1024< Using PPPoA mode
Info  >1024< Control pipe disabled
Info  >1024< Previous instance cleaning enabled
Info  >1024< Log filename set to /var/log/pppoa3-modem1.log
[Sat Jan  1 02:38:45 2000] Info  >1024< Control thread ready
[Sat Jan  1 02:38:45 2000] Debug >1024< Pty descriptors : fdin=0, fdout=1
[Sat Jan  1 02:38:45 2000] Error >1024< Error loading N_HDLC

Nie załadowany był moduł n_hdlc.o

Zaraz skoryguję......

43

Odp: WL500gp + OpenWRT + ADSL przez USB

Bo tak jakiś geniusz od tego speedtoucha na stałe zaszył to w źródłach. Ech...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

44

Odp: WL500gp + OpenWRT + ADSL przez USB

Teraz jest następny błąd

New log started for PPPoA3 version 1.3.1
---------------------------------------------

Info  >1024< pppoa3 version 1.3.1 started by root (uid 0)
Info  >1024< Vpi set to 0
Info  >1024< Vci set to 35
Info  >1024< Verbosity level set to 2
Info  >1024< Schedule policy set to 0
Info  >1024< Modem ID set to 1
Info  >1024< Using Sync HDLC mode
Info  >1024< Using PPPoA mode
Info  >1024< Control pipe disabled
Info  >1024< Previous instance cleaning enabled
Info  >1024< Log filename set to /var/log/pppoa3-modem1.log
[Mon Jan 15 22:49:37 2007] Info  >1024< Control thread ready
[Mon Jan 15 22:49:37 2007] Debug >1024< Pty descriptors : fdin=0, fdout=1
[Mon Jan 15 22:49:37 2007] Debug >1024< N_HDLC line set up
[Mon Jan 15 22:49:37 2007] Info  >1024< Modem found!
[Mon Jan 15 22:49:37 2007] Error >1024< pusb_claim_interface 1 failed

Coś nie tak z USB, ale nie kumam o co chodzi i gdzie szukać........

45

Odp: WL500gp + OpenWRT + ADSL przez USB

Wywal z pamieci moduł speedtch i uruchom całość jeszcze raz.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

46

Odp: WL500gp + OpenWRT + ADSL przez USB

Nooooo........ teraz wywaliło tasiemce. Przeglądnołem Syslog i PPPoAlog. Chyba więcej znaczących informacji jest w tym pierwszym. Jest tego dużo.

Jan 15 23:36:37 (none) kern.warn kernel: HDLC line discipline: version $Revision: 3.7 $, maxframe=4096
Jan 15 23:36:37 (none) kern.info kernel: N_HDLC line discipline registered.
Jan 15 23:38:40 (none) kern.info kernel: hub.c: new USB device 01:03.0-2, assigned address 2
Jan 15 23:38:40 (none) kern.warn kernel: usb.c: USB device 2 (vend/prod 0x6b9/0x4061) is not claimed by any active driver.
Jan 15 23:38:47 (none) kern.warn kernel: usb_control/bulk_msg: timeout
Jan 15 23:38:47 (none) kern.warn kernel: usbdevfs: USBDEVFS_BULK failed dev 2 ep 0x85 len 512 ret -145
Jan 15 23:39:49 (none) kern.notice pppd[866]: pppd 2.4.3 started by root, uid 0
Jan 15 23:39:49 (none) kern.debug pppd[866]: using channel 1
Jan 15 23:39:49 (none) kern.info pppd[866]: Using interface ppp0
Jan 15 23:39:49 (none) kern.notice pppd[866]: Connect: ppp0 <--> /dev/pts/1
Jan 15 23:39:49 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 0a c0 21 09 ec ...
Jan 15 23:39:49 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:39:49 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 32 00 21 45 00 ...
Jan 15 23:39:49 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:39:49 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 32 00 21 45 00 ...
Jan 15 23:39:49 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:39:49 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 32 00 21 45 00 ...
Jan 15 23:39:49 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:39:49 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 32 00 21 45 00 ...
Jan 15 23:39:49 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:39:49 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 0a c0 21 09 ed ...
Jan 15 23:39:49 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:39:50 (none) kern.debug pppd[866]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x607f9cb3> <pcomp> <accomp>]
Jan 15 23:39:53 (none) kern.debug pppd[866]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x607f9cb3> <pcomp> <accomp>]
Jan 15 23:39:54 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 32 00 21 45 00 ...
Jan 15 23:39:54 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:39:56 (none) kern.debug pppd[866]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x607f9cb3> <pcomp> <accomp>]
Jan 15 23:39:59 (none) kern.debug pppd[866]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x607f9cb3> <pcomp> <accomp>]
Jan 15 23:40:00 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 35 00 21 45 00 ...
Jan 15 23:40:00 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:02 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 35 00 21 45 00 ...
Jan 15 23:40:02 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:02 (none) kern.debug pppd[866]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x607f9cb3> <pcomp> <accomp>]
Jan 15 23:40:03 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 35 00 21 45 00 ...
Jan 15 23:40:03 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:03 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 35 00 21 45 00 ...
Jan 15 23:40:03 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:04 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 35 00 21 45 00 ...
Jan 15 23:40:04 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:04 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 35 00 21 45 00 ...
Jan 15 23:40:04 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:05 (none) kern.debug pppd[866]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x607f9cb3> <pcomp> <accomp>]
Jan 15 23:40:05 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 35 00 21 45 00 ...
Jan 15 23:40:05 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:07 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 35 00 21 45 00 ...
Jan 15 23:40:07 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:07 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 35 00 21 45 00 ...
Jan 15 23:40:07 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:08 (none) kern.debug pppd[866]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x607f9cb3> <pcomp> <accomp>]
Jan 15 23:40:09 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 35 00 21 45 00 ...
Jan 15 23:40:09 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:09 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 35 00 21 45 00 ...
Jan 15 23:40:09 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:11 (none) kern.debug pppd[866]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x607f9cb3> <pcomp> <accomp>]
Jan 15 23:40:11 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 35 00 21 45 00 ...
Jan 15 23:40:11 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:11 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 35 00 21 45 00 ...
Jan 15 23:40:11 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:12 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 35 00 21 45 00 ...
Jan 15 23:40:12 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:13 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 42 00 21 45 00 ...
Jan 15 23:40:13 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:13 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 35 00 21 45 00 ...
Jan 15 23:40:13 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:14 (none) kern.debug pppd[866]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x607f9cb3> <pcomp> <accomp>]
Jan 15 23:40:14 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 35 00 21 45 00 ...
Jan 15 23:40:14 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:15 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 35 00 21 45 00 ...
Jan 15 23:40:15 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:16 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 42 00 21 45 00 ...
Jan 15 23:40:16 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:16 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 0a c0 21 09 ee ...
Jan 15 23:40:16 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:16 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 35 00 21 45 00 ...
Jan 15 23:40:16 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:17 (none) kern.debug pppd[866]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x607f9cb3> <pcomp> <accomp>]
Jan 15 23:40:17 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 35 00 21 45 00 ...
Jan 15 23:40:17 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:18 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 35 00 21 45 00 ...
Jan 15 23:40:18 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:20 (none) kern.debug pppd[866]: rcvd [proto=0xaaaa] 03 00 80 c2 00 07 00 00 00 e0 95 50 d1 72 00 90 1a a0 43 56 88 64 11 00 16 d5 00 35 00 21 45 00 ...
Jan 15 23:40:20 (none) kern.debug pppd[866]: Discarded non-LCP packet when LCP not open
Jan 15 23:40:20 (none) kern.warn pppd[866]: LCP: timeout sending Config-Requests 
Jan 15 23:40:20 (none) kern.notice pppd[866]: Connection terminated.
Jan 15 23:40:20 (none) kern.notice pppd[866]: Modem hangup
Jan 15 23:40:23 (none) kern.debug pppd[866]: using channel 2
Jan 15 23:40:23 (none) kern.info pppd[866]: Using interface ppp0
Jan 15 23:40:23 (none) kern.notice pppd[866]: Connect: ppp0 <--> /dev/pts/2
Jan 15 23:40:23 (none) kern.debug pppd[866]: Script /usr/sptch/bin/cezary/pppoa3 -v 2 -e 1 -c -m 1 -vpi 0 -vci 35 finished (pid 893), status = 0xff
Jan 15 23:40:23 (none) kern.notice pppd[866]: Modem hangup
Jan 15 23:40:23 (none) kern.notice pppd[866]: Connection terminated.
.
.
. itd

Mowa o LCP że coś nie tak. Tylko co?
Rzuć okiem na to.

47

Odp: WL500gp + OpenWRT + ADSL przez USB

No i udało się....... smile smile smile DZIAŁA!!!!!!

Syslog wygląda następująco:

Jan  1 01:01:07 (none) kern.warn kernel: HDLC line discipline: version $Revision: 3.7 $, maxframe=4096
Jan  1 01:01:07 (none) kern.info kernel: N_HDLC line discipline registered.
Jan  1 01:03:00 (none) kern.warn kernel: usb_control/bulk_msg: timeout
Jan  1 01:03:00 (none) kern.warn kernel: usbdevfs: USBDEVFS_BULK failed dev 2 ep 0x85 len 512 ret -145
Jan  1 01:04:23 (none) kern.notice pppd[865]: pppd 2.4.3 started by root, uid 0
Jan  1 01:04:24 (none) kern.debug pppd[865]: using channel 1
Jan  1 01:04:24 (none) kern.info pppd[865]: Using interface ppp0
Jan  1 01:04:24 (none) kern.notice pppd[865]: Connect: ppp0 <--> /dev/pts/1
Jan  1 01:04:25 (none) kern.debug pppd[865]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd6625cb8> <pcomp> <accomp>]
Jan  1 01:04:26 (none) kern.debug pppd[865]: rcvd [LCP ConfReq id=0x2b <auth chap MD5> <magic 0x19d3b591>]
Jan  1 01:04:26 (none) kern.debug pppd[865]: sent [LCP ConfAck id=0x2b <auth chap MD5> <magic 0x19d3b591>]
Jan  1 01:04:28 (none) kern.debug pppd[865]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xd6625cb8> <pcomp> <accomp>]
Jan  1 01:04:28 (none) kern.debug pppd[865]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xd6625cb8> <pcomp> <accomp>]
Jan  1 01:04:28 (none) kern.debug pppd[865]: sent [LCP EchoReq id=0x0 magic=0xd6625cb8]
Jan  1 01:04:28 (none) kern.debug pppd[865]: rcvd [CHAP Challenge id=0x3 <ef5484b89d49fc3fc252a2e5ba24d5b6f1e25f4074c416b794>, name = "rze_ru1"]
Jan  1 01:04:28 (none) kern.debug pppd[865]: sent [CHAP Response id=0x3 <294cb5f8e572747b8b4ef6e393656f6b>, name = "XXXXXXX@neostrada.pl"]
Jan  1 01:04:28 (none) kern.debug pppd[865]: rcvd [LCP EchoRep id=0x0 magic=0x19d3b591]
Jan  1 01:04:28 (none) kern.debug pppd[865]: rcvd [CHAP Success id=0x3 ""]
Jan  1 01:04:28 (none) kern.info pppd[865]: CHAP authentication succeeded
Jan  1 01:04:28 (none) kern.notice pppd[865]: CHAP authentication succeeded
Jan  1 01:04:28 (none) kern.debug pppd[865]: sent [CCP ConfReq id=0x1 <mppe -H -M -S -L -D +C>]
Jan  1 01:04:28 (none) kern.debug pppd[865]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
Jan  1 01:04:28 (none) kern.debug pppd[865]: rcvd [LCP ProtRej id=0x2c 80 fd 01 01 00 0a 12 06 00 00 00 01]
Jan  1 01:04:28 (none) kern.debug pppd[865]: rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
Jan  1 01:04:28 (none) kern.debug pppd[865]: sent [IPCP ConfReq id=0x2 <addr 0.0.0.0>]
Jan  1 01:04:28 (none) kern.debug pppd[865]: rcvd [IPCP ConfNak id=0x2 <addr 83.11.196.207>]
Jan  1 01:04:28 (none) kern.debug pppd[865]: sent [IPCP ConfReq id=0x3 <addr 83.11.196.207>]
Jan  1 01:04:28 (none) kern.debug pppd[865]: rcvd [IPCP ConfAck id=0x3 <addr 83.11.196.207>]
Jan  1 01:04:28 (none) kern.debug pppd[865]: rcvd [IPCP ConfReq id=0x27 <addr 213.25.2.228>]
Jan  1 01:04:28 (none) kern.debug pppd[865]: sent [IPCP ConfAck id=0x27 <addr 213.25.2.228>]
Jan  1 01:04:28 (none) kern.err pppd[865]: not replacing default route to br0 [192.168.2.1]
Jan  1 01:04:28 (none) kern.notice pppd[865]: local  IP address 83.11.196.207
Jan  1 01:04:28 (none) kern.notice pppd[865]: remote IP address 213.25.2.228
Jan  1 01:04:28 (none) kern.debug pppd[865]: Script /etc/ppp/ip-up started (pid 880)
Jan  1 01:04:28 (none) kern.debug pppd[865]: Script /etc/ppp/ip-up finished (pid 880), status = 0x1

A ifconfig melduje:

br0       Link encap:Ethernet  HWaddr 00:17:31:DC:06:2B  
          inet addr:192.168.2.3  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:544 errors:0 dropped:0 overruns:0 frame:0
          TX packets:436 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:37533 (36.6 KiB)  TX bytes:85065 (83.0 KiB)

eth0      Link encap:Ethernet  HWaddr 00:17:31:DC:06:2B  
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:544 errors:0 dropped:0 overruns:0 frame:0
          TX packets:440 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:49451 (48.2 KiB)  TX bytes:93780 (91.5 KiB)
          Interrupt:4 

eth2      Link encap:Ethernet  HWaddr 00:17:31:DC:06:2B  
          UP BROADCAST RUNNING ALLMULTI MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:2 Base address:0x2000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:83.11.196.207  P-t-P:213.25.2.228  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:264 (264.0 B)  TX bytes:56 (56.0 B)

vlan0     Link encap:Ethernet  HWaddr 00:17:31:DC:06:2B  
          UP BROADCAST RUNNING ALLMULTI MULTICAST  MTU:1500  Metric:1
          RX packets:544 errors:0 dropped:0 overruns:0 frame:0
          TX packets:436 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:39709 (38.7 KiB)  TX bytes:86809 (84.7 KiB)

Bardzo Ci dziękuję za pomoc. Jestem zobowiącany...... smile smile


Zostaje tylko jeszcze podłączenie ppp0 do br0......... i tu będę cię prosił o pomoc. Chciałbym to wszystko skonfigurować i wsadzić do sktyptów.

Na razie BARDZO DZIĘKUJĘ i pozdrawiam Jarek

48

Odp: WL500gp + OpenWRT + ADSL przez USB

Super. Pamiętaj, że potem musisz ładnie zebrać całość i opisać krok po kroku - i zostanie dla wujka googla tutaj na eko1 lub możesz to włożyć na wiki openwrt pl.

Pokaż jeszcze wynik route.

Co do automatyki - po prostu zrób plik w i umieść w nim wszystkie polecenia, od włożenia modułów, uruchomienia ppp a skończywszy na ew ustawieniu bramy domyślnej. Z później zapisz ten skrypt jak S90neostrada w /etc/init.d
nadaj mu prawa uruchomienia i będzie działało automatem po starcie systemu.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

49 (edytowany przez jkdobro 2007-01-16 11:44:45)

Odp: WL500gp + OpenWRT + ADSL przez USB

Jasne smile bez HOWTO by się nie obeszło!
Jeszcze kilka drobiazgów. Ponieważ chciałem żeby wszystko było w konwencji X-Wrt (może zrobie panel www do PPPoA), potrzebuję kilka wskazówek.

1. W jakim katalogu umieścić pliki dla speedtoucha? Czy /usr/spdtch330 jest dobrym pomysłem?

2. Jak spiąć ppp0 z br0? Czy trzeba coś utawiać w zmiennych (nvram)?

3. Jak przeprowadzić test (co i w jakiej kolejności) poprawnego połączenia z internetem i współpracy (router) z innymi komputerami?

Jarek

50

Odp: WL500gp + OpenWRT + ADSL przez USB

1. Gdzie chcesz. (chociaż sam bym to włożył do /usr/local lub /opt)
2. "Spiąć" chyba nie musisz. Kwestia ustawienia trasy domyślnej (route), ew zmiany regułek do iptables żeby cały ruch był przez ppp0 a nie vlan1
3. Zależy co chcesz osiągnąć. z rutera musisz móc spingować np. www.google.com. Tak samo z komputerów. dnsmasq  musi dostać automatem dns od neo. Jak pisałem wcześniej ew przeróbka skryptów iptables żeby całość działała.


Ew zamiast przerabiać cokolwiek w systemie możesz zmienić

nvram set wan_device=ppp0
nvram set wan_ifnames=ppp0
nvram commit

i całość powinna działać sama (chyba, właśnie przyszło mi to do głowy).

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.