DA-681 Linux
Managing Communications
3-18
init "/usr/sbin/chat -v -f /etc/ppp/ppp-ttyM0.chat"
# Set up routing to go through this PPP link
defaultroute
# Default modem (you better replace this with /dev/ttySx!)
/dev/ttyM0
# Speed
115200
# Keep modem up even if connection fails
persist
crtscts
modem
192.168.16.1:192.168.16.2
debug
-detach
Configure the chat script
/etc/ppp/ppp-ttyM0.chat
SAY 'Auto Answer ON\n'
'' ATS0=1
Start the
pppd
dial-in service.
# pppd call dialin
ATTENTION
If you hope to have auto dial-in service, you can respawn the dial-in service in /etc/inittab.
MOXA:~# mount –o remount,rw /dev/hda1 /
MOXA:~# echo “p0:2345:respawn:pppd call dialin” >> /etc/inittab
MOXA:~# umount /
PPPoE
The following procedure is for setting up PPPoE:
1.
Connect the DA-681-LX’s LAN port to an ADSL modem with a cross-over cable, HUB, or switch.
2.
Log in to the DA-681-LX as the root user.
3.
Edit the file
/etc/ppp/chap-secrets
and add the following:
*
“password” *
# Secrets for authentication using CHAP
# client server secret IP addresses
# PPPOE example, if you want to use it, you need to unmark it and modify it
"[email protected]" * "password" *
is the username obtained from the ISP to log in to the ISP account.
password
is the
corresponding password for the account.