Dod Sample script and configuration (for RedHat 5.2)
1) install the Diald.rpm (gunzip diald.rpm.gz ; rpm -ivh diald.rpm)
2) copy dod-script to /etc/rc.d/init.d, chmod 755
3) copy diald.conf /etc/.
4) add this line into /etc/rc.d/rc.local
echo "1" > /proc/sys/net/ipv4/ip_dynaddr
5) add these 2 line to /etc/hosts
127.1.0.1 diald1
127.1.0.2 diald2
6) type this, ln -s /etc/sysconfig/network-scripts/chat-ppp0 /etc/ppp/chatscript
chmod 755 /etc/ppp/chatscript
7) to start, type /etc/rc.d/init.d/dod-script start (if you reboot your server
you don't have to type this, its automatically starts during the boot)
Steps for Dial-On-Demand for RedHat 6.1
Steps for Dial-On-Demand for RedHat 7.1