On Thu, Aug 03, 2000 at 10:48:32AM +0200, Philippe MICHEL wrote: > Hello, > > I am using Debian slink, and a standard modem/pppd connection to my > provider. > > Everything works well since years (I used the same config with Slakware) > > But how/where can I see with which speed the modem has been connected ?? > > thanks, > > -- > - Philippe MICHEL
I use the following /etc/chatscripts/provider file:
ABORT BUSY
ABORT "NO CARRIER"
ABORT VOICE
ABORT "NO DIALTONE"
ABORT "NO ANSWER"
"" ATZ
OK ATX4
OK ATW1
OK ATDT947650210
CONNECT \d\c
The commands to display connection speed are:
ATX4: wait for dialtone, send CONNECT xxxx when connected, else send send NO
DIALTONE or
BUSY as appropiate
ATW1: inform about modem-to-pc speed as CONNECT xxxx and connection speed as
CARRIER xxxx
Deppending on your modem you could need ATQ0 and ATV1 too.
Here you have a connection log as given by syslogd in /var/log/ppp.log :
Aug 4 12:09:45 tejeringo pppd[691]: pppd 2.3.11 started by root, uid 0
Aug 4 12:09:46 tejeringo chat[692]: abort on (BUSY)
Aug 4 12:09:46 tejeringo chat[692]: abort on (NO CARRIER)
Aug 4 12:09:46 tejeringo chat[692]: abort on (VOICE)
Aug 4 12:09:46 tejeringo chat[692]: abort on (NO DIALTONE)
Aug 4 12:09:46 tejeringo chat[692]: abort on (NO ANSWER)
Aug 4 12:09:46 tejeringo chat[692]: send (ATZ^M)
Aug 4 12:09:46 tejeringo chat[692]: expect (OK)
Aug 4 12:09:46 tejeringo chat[692]: ATZ^M^M
Aug 4 12:09:46 tejeringo chat[692]: OK
Aug 4 12:09:46 tejeringo chat[692]: -- got it
Aug 4 12:09:46 tejeringo chat[692]: send (ATX4^M)
Aug 4 12:09:46 tejeringo chat[692]: expect (OK)
Aug 4 12:09:46 tejeringo chat[692]: ^M
Aug 4 12:09:46 tejeringo chat[692]: ATX4^M^M
Aug 4 12:09:46 tejeringo chat[692]: OK
Aug 4 12:09:46 tejeringo chat[692]: -- got it
Aug 4 12:09:46 tejeringo chat[692]: send (ATW1^M)
Aug 4 12:09:46 tejeringo chat[692]: expect (OK)
Aug 4 12:09:46 tejeringo chat[692]: ^M
Aug 4 12:09:46 tejeringo chat[692]: ATW1^M^M
Aug 4 12:09:46 tejeringo chat[692]: OK
Aug 4 12:09:46 tejeringo chat[692]: -- got it
Aug 4 12:09:46 tejeringo chat[692]: send (ATDT947650210^M)
Aug 4 12:09:47 tejeringo chat[692]: expect (CONNECT)
Aug 4 12:09:47 tejeringo chat[692]: ^M
Aug 4 12:10:14 tejeringo chat[692]: ATDT947650210^M^M
Aug 4 12:10:14 tejeringo chat[692]: CARRIER 49333^M <<<<<<<-------- your
question
Aug 4 12:10:15 tejeringo chat[692]: ^M
Aug 4 12:10:15 tejeringo chat[692]: PROTOCOL: LAP-M^M
Aug 4 12:10:15 tejeringo chat[692]: ^M
Aug 4 12:10:15 tejeringo chat[692]: CONNECT
Aug 4 12:10:15 tejeringo chat[692]: -- got it
Aug 4 12:10:15 tejeringo chat[692]: send (\d)
Aug 4 12:10:16 tejeringo pppd[691]: Serial connection established.
Aug 4 12:10:16 tejeringo pppd[691]: Using interface ppp0
Aug 4 12:10:16 tejeringo pppd[691]: Connect: ppp0 <--> /dev/ttyS1
Aug 4 12:10:21 tejeringo pppd[691]: Cannot determine ethernet address for
proxy ARP
Aug 4 12:10:21 tejeringo pppd[691]: local IP address 212.7.57.115
Aug 4 12:10:21 tejeringo pppd[691]: remote IP address 62.14.9.104
By the way, what means 'Cannot determine ethernet address for proxy ARP'?
--
Jesús Ruiz de Infante
Key fingerprint = CA 44 E4 0B 47 DF F7 8F 6F F7 8E 4A 60 19 AA 1A AE 9D D0 31
To add my public key to your keyring:
pgpk -a hkp://horowitz.surfnet.nl/[EMAIL PROTECTED]
pgpJJAHqNkW8q.pgp
Description: PGP signature

