Tuesday, November 9, 2010

PPP in Linux

[1] http://www.faqs.org/docs/Linux-HOWTO/PPP-HOWTO.html#AEN582
[2] http://rsc.anu.edu.au/General/linux_ppp/ANU-PPP-HOWTO-3.html
[3] http://www.spinics.net/lists/linux-ppp/msg00799.html pppd options

Packages that are needed when compiling Linux Kernel
-------------------------------------
With support for ppp_async, pppoe.


Maintaining a permanent connection to the net with pppd.

You can see why ppp failed from this log:
[root@GsnCommsModule user]# cat /var/log/messages


You can shut down the pppd connection by:
killall -HUP pppd


AUTO PPP
---------------------------
/svn/CableTracker/CommsModuleLinuxKernel/trunk/rootfs/etc/rc.d/rc.local
can automatically run all the shells that root user want to run after restart.


PPP account and connection retry
---------------------------------
/svn/CableTracker/CommsModuleLinuxKernel/trunk/rootfs/etc/ppp/peers/gsm

$cat gsm
lcp-echo-failure 0
/dev/ttyUSB3
115200
debug
defaultroute
usepeerdns

#ipcp-no-address
#ipcp-no-addresses
ipcp-max-failure 4
ipcp-accept-local
ipcp-accept-remote

# AUTHENTICATION
# If noauth works, use that, otherwise you have to pass
# the user name and password. This is an example of a
# standard Cingular user/pw combo

noauth
#ppp account infomation
user GridSense0002@maxwan.com.au
password GTre387a

crtscts
#persist will cause connection retry after ppp off-line
persist
maxfail 100
lock
connect '/sbin/chat -v -t6 -f /etc/ppp/peers/gsm_chat'

PULL DOWN ETH CONNECTION
----------------------------
[root@GsnCommsModule user]# ifconfig eth0 down

No comments: