ASNMTAP

 view release on metacpan or  search on metacpan

lib/ASNMTAP/Asnmtap/Plugins/Modem.pod  view on Meta::CPAN

=back

=item Message Logging

 Edit /etc/syslog.conf and add the lines
 local2.*                                /var/log/ppp
 daemon.*                                /var/log/ppp

 /etc/init.d/syslog restart

 you can debug pppd now with:
 tail -f /var/log/ppp

=item No Default Route

 /sbin/route -n
 Kernel IP routing table
 Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
 192.168.123.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0
 0.0.0.0         192.168.123.254 0.0.0.0         UG    0      0        0 eth0

 If there is such a default route (line starting with 0.0.0.0), and you want the ppp interface to be your default route, (the usual situation), run /sbin/route del default

=item Immediate PPP

 more /etc/ppp/peers/ASNMTAP
 hide-password
 noauth
 noipdefault
 remotename ASNMTAP
 ipparam ASNMTAP
 usepeerdns

 more /etc/ppp/pap-secrets
 userASNMTAP ASNMTAP pwdASNMTAP

 /usr/sbin/pppd /dev/ttyS1 115200 debug user userASNMTAP call ASNMTAP connect "/usr/sbin/chat -v ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED '' ATZ OK AT OK ATDT070223326 CONNECT ...

=item Are you connected

 You are now, I hope, connected via ppp. The /var/log/ppp file should have a line like
   Connect: ppp0 <--> /dev/ttyS1
 1 Now, run

=item Known problems

 modprobe: modprobe: Can't locate module ppp-compress

=item Connected

 At this point you should be connected. You should see lines like
 - Feb 19 14:54:50 wormhole pppd[905]: local IP address 80.158.214.249
 - Feb 19 14:54:50 wormhole pppd[905]: remote IP address 80.158.214.243
 in /var/log/ppp. (The above two lines are from my own system. The addresses, names, dates and times will vary for yours, but the form should be the same.)

=item Testing Connection

 First try to ping the address of the remote host. In /var/log/ppp there will be two lines that look like
 - Feb 19 12:52:21 ppptest pppd[27378]: local IP address 80.158.214.249
 - Feb 19 12:52:21 ppptest pppd[27378]: remote IP address 80.158.214.243
 (Note that these are for a particular connection on my system. The numbers will differ on yours) These two lines give your and the remote computer's IP numbers for the duration of the connection. (They may well change the next time you connect.)

 Again run
   /sbin/route -n
 and look for an entry in which the first entry is that remote IP address, and the last entry is ppp0. It must be there for the connection to work.

 Then do
   ping <remoteIPnumber>
 eg in the above case this would be
   ping 80.158.214.249
 You should get back a sequence of lines about one every second. This shows that your connection to that remote host is OK, and that you have a connection to it. Type ^C (control-C) to stop ping. (Sometimes the remoteIPnumber does not respond to ping...

 Now, look at those lines that you added to /etc/resolv.conf back at the beginning of this script. Do
   ping <nameserverIP>
 where the entry in /etc/resolv.conf was
   nameserver <nameserverIP>
 Again you should get a series of responses. If you do not, they may not support ping on those machines. However, if you get a response saying that the host or network is unreachable, there is definitely something wrong, either with your setup or wit...

 Now try
   ping 180.158.214.243
 (Using that actual number) which should work (unless of course there is something wrong with my machine. In which case try other IP numbers.) If none of these work, then there is some problem with your connection (eg default route problems).

 Now try pinging some name, eg.,
   ping www.citap.com
 (which is the location where this page is kept). The key thing is that ping reports back on its first line with the IP address of axion. If it did so, it means your nameserver is working. If the previous one worked, but this one does not, then you e...

 If not, collect all of the details you can (eg the output in /var/log/ppp-- making sure that you remove your passwords from that file) and ask for help in comp.os.linux.networking, alt.os.linux.dial-up, or alt.comp.linux.isp. As politeness, look in ...

=item Stopping PPP

 To stop the connection, use the command killall pppd

=back

=head1 EXPORT

=head2 TAGS

=over 4

=item *

ALL

 &get_modem_request

=back

=head1 AUTHOR

Alex Peeters [alex.peeters@citap.be]

=head1 SEE ALSO

ASNMTAP::Asnmtap, ASNMTAP::Asnmtap::Plugins

 check_template-modem.pl
 check_template-ras.pl

=head1 DEPENDENCIES



( run in 0.881 second using v1.01-cache-2.11-cpan-75ffa21a3d4 )