Co zepsułem w SDI?

Tomasz Ligocki tligocki w skawina.com.pl
Pią, 22 Paź 2004, 00:12:57 CEST


Drodzy Miłośnicy PLD,

Doradźcie mi, co zepsułem w SDI? Przez dwadzieścia parę dni miałem
połączenie, a teraz nie udaje mi się go nawiązać.

Oto szczegóły:
System PLD Ra + kernel 2.4.20-14,
[root w agat /root]# rpm -qa | grep ppp
ppplicznik-1.0.0-1
ppp-plugin-capi-030611-2
ppp-2.4.2-2

Ponadto:
[root w agat /root]# ls -al
/etc/ppp/                                            
razem 40
drwxr-xr-x    3 root     root         4096 10-21 17:34 .
drwxr-xr-x   61 root     root         4096 10-21 17:34 ..
-rw-------    1 root     root           78 2003-11-26  chap-secrets
-rw-r--r--    1 root     root        10041 2003-11-26  options
-rw-r--r--    1 root     root           75 10-21 06:32 options.ttyS0
-rw-r--r--    1 root     root          650 2003-11-26  options.ttyXX
-rw-------    1 root     root           40 10-21 06:32 pap-secrets
drwxr-xr-x    2 root     root         4096 2003-11-26  peers

Plik pap-secrets jest z pewnością poprawny, bo SDI działało wcześniej,
jak już pisałem.

[root w agat /root]# cat
/etc/ppp/options.ttyS0                                  
crtscts
defaultroute
lock
modem
115200
noauth
persist
noccp
user SkawinaB1

[root w agat /root]# ls -al /etc/sysconfig/interfaces/ 
razem 32
drwxr-xr-x    5 root     root         4096 10-20 22:43 .
drwxr-xr-x    9 root     root         4096 10-21 05:34 ..
drwxr-xr-x    2 root     root         4096 2002-11-09  data
drwxr-xr-x    7 root     root         4096 2003-08-12  down.d
-rw-r--r--    1 root     root          659 10-20 16:18 ifcfg-eth0
-rw-r--r--    1 root     root          659 10-20 16:19 ifcfg-eth1
-rw-r--r--    1 root     root           63 10-21 06:32 ifcfg-sdi
drwxr-xr-x    7 root     root         4096 2003-08-12  up.d

[root w agat /root]# cat /etc/sysconfig/interfaces/ifcfg-sdi  
DEVICE=ppp0
ONBOOT=yes
MODEMPORT=/dev/ttyS0
DIRECT_CONNECT=yes

Po wydaniu polecenia:
[root w agat /root]# ifup sdi

otrzymuję w /var/log/syslog:
paź 21 23:55:09 agat ifup-ppp: pppd started for ppp0 on /dev/ttyS0 at 
Oct 21 23:55:09 agat pppd[14929]: pppd 2.4.2b3 started by root, uid 0
Oct 21 23:55:09 agat divert: not allocating divert_blk for non-ethernet
device ppp0
Oct 21 23:55:09 agat pppd[14929]: Using interface ppp0
Oct 21 23:55:09 agat pppd[14929]: Connect: ppp0 <--> /dev/ttyS0

a później:
Oct 21 23:55:15 agat pppd[14929]: PAP authentication succeeded
Oct 21 23:55:15 agat pppd[14929]: default route ioctl(SIOCADDRT):
Invalid argument
Oct 21 23:55:15 agat pppd[14929]: Cannot determine ethernet address for
proxy ARP
Oct 21 23:55:15 agat pppd[14929]: local  IP address 217.99.122.128
Oct 21 23:55:15 agat pppd[14929]: remote IP address 217.99.122.128

ale połączenia nie ma. Po ponownym ifup sdi mam tam:
paź 21 23:59:29 agat ifup-ppp: pppd started for ppp0 on /dev/ttyS0 at 
Oct 21 23:59:29 agat pppd[14967]: pppd 2.4.2b3 started by root, uid 0
Oct 21 23:59:29 agat pppd[14967]: Device ttyS0 is locked by pid 14929
Oct 21 23:59:29 agat pppd[14967]: Device ttyS0 is locked by pid 14929
Oct 21 23:59:29 agat pppd[14967]: Device ttyS0 is locked by pid 14929
Oct 21 23:59:29 agat pppd[14967]: Device ttyS0 is locked by pid 14929
Oct 21 23:59:29 agat pppd[14967]: Device ttyS0 is locked by pid 14929
Oct 21 23:59:29 agat pppd[14967]: Device ttyS0 is locked by pid 14929
Oct 21 23:59:29 agat pppd[14967]: Device ttyS0 is locked by pid 14929
Oct 21 23:59:29 agat pppd[14967]: Device ttyS0 is locked by pid 14929
Oct 21 23:59:29 agat pppd[14967]: Device ttyS0 is locked by pid 14929
Oct 21 23:59:29 agat pppd[14967]: Device ttyS0 is locked by pid 14929
Oct 21 23:59:29 agat pppd[14967]: Exit.

A jak zabiję proces nr 14929 i ponownie wykonam ifup sdi, to:
Oct 22 00:02:05 agat pppd[17552]: Terminating on signal 15.
Oct 22 00:02:05 agat pppd[17552]: Connection terminated.
Oct 22 00:02:05 agat pppd[17552]: Connect time 0.4 minutes.
Oct 22 00:02:05 agat pppd[17552]: Sent 48 bytes, received 146 bytes.
Oct 22 00:02:05 agat divert: no divert_blk to free, ppp0 not ethernet
Oct 22 00:02:06 agat pppd[17552]: Connect time 0.4 minutes.
Oct 22 00:02:06 agat pppd[17552]: Sent 48 bytes, received 146 bytes.
Oct 22 00:02:06 agat pppd[17552]: Exit.

potem:
paź 22 00:02:55 agat ifup-ppp: pppd started for ppp0 on /dev/ttyS0 at 
Oct 22 00:02:55 agat pppd[17647]: pppd 2.4.2b3 started by root, uid 0
Oct 22 00:02:55 agat divert: not allocating divert_blk for non-ethernet
device ppp0
Oct 22 00:02:55 agat pppd[17647]: Using interface ppp0
Oct 22 00:02:55 agat pppd[17647]: Connect: ppp0 <--> /dev/ttyS0

a potem znów:
Oct 22 00:03:01 agat pppd[17647]: PAP authentication succeeded
Oct 22 00:03:01 agat pppd[17647]: default route ioctl(SIOCADDRT):
Invalid argument
Oct 22 00:03:01 agat pppd[17647]: Cannot determine ethernet address for
proxy ARP
Oct 22 00:03:01 agat pppd[17647]: local  IP address 217.99.122.128
Oct 22 00:03:01 agat pppd[17647]: remote IP address 217.99.122.128

Co mam poprawić, by odpalio SDI?

Pozdrawiam,
-- 
Tomek Ligocki




Więcej informacji o liście dyskusyjnej pld-users-pl