[Output of netstat -i] Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll ed2 1500 <Link> 0.0.c0.8.be.28 19382 0 19640 0 0 ed2 1500 165.227.14 gabriella 19382 0 19640 0 0 lo0 32768 <Link> 421 0 421 0 0 lo0 32768 127 localhost 421 0 421 0 0 ppp0* 1500 <Link> 0 0 0 0 0
[Output of ifconfig -a] ppp0: flags=8010<POINTOPOINT,MULTICAST>
/dev/tty00 115200 defaultroute persist crtscts lock modem disconnect '/etc/ppp/restart-ppp' connect 'chat -f /etc/ppp/PPP-login'I use a com port at /dev/tty00 at 115200 bps. Since I have a Hayes ESP board with a 1024b FIFO, this is no problem, you may find that this is too fast and that you need to run at 57600.
ABORT BUSY ABORT 'NO CARRIER' REPORT CARRIER REPORT CONNECT '' ATDT*phone* ogin: *login* word: *password*Where, obviously, you need to replace *PHONE* with the phone number and *login*/*password* with your login and password. The REPORT lines log the connection messages into the file connect-errors; if your modem doesn't make messages, or if the messages start with something other than CARRIER or CONNECT you won't get anything captured.
#!/bin/sh # ip-up /sbin/route delete default /sbin/route add default 165.227.1.100
#!/bin/sh # ip-down /sbin/route delete default
#!/bin/sh # Try to restart pppd in case the modem has dropped. # /bin/sleep 60 pppd
[Output of netstat -i] Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll ppp0 1006 resort-net atrium 471914 0 471548 15 0
[Output of netstat -r] Internet: Destination Gateway Flags Refs Use Mtu Interface default scruz-ts1.scruz.ne UGS 3 471396 - ppp0
[Output of ifconfig -a] ppp0: flags=51<UP,POINTOPOINT,RUNNING> inet 165.227.14.1 --> 165.227.1.100 netmask 0xffffff00