Next Previous Contents

23. Diald [For Modem users only]

Diald is a mechanism that will do auto-dialing and auto-PPP negotiations for Linux.

It needs to be mentioned that in the past, the PPPd code could do Dial-on-Demand but it wasn't very flexible. This is no longer the case. PPPd now has the same strengths as Diald in the respect to understanding what traffic should bring the line up, keep the line up, or not be counted to then let the line hang up. Because of this, I recommend to ** NOT USE Diald ** anymore.. use PPPd directly. If you have points to why you disagree, please let me know.

Unfortunately, Dial-on-Demand for PPPd isn't documented in TrinityOS yet so you are on your own for now. If you need help, email me but beyond that, Diald should work fine as well.

NOTE: Diald now has a new maintainer and has been updated to v0.98. The the URLs are in Section 5

        +-------------------------------------------------------------------------+
        | Follow this link for more information until I can integrate it into the |
        | TrinityOS doc:                                                          |
        |                                                                         |
        |   http://www.ecst.csuchico.edu/~dranch/PPP/ppp-performance.html#linux |
        +-------------------------------------------------------------------------+

Here are a few quick tips:

Use dcntrl or diald-top to see what networ traffic is bringing up your PPP/SLIP link.

Rough order to get things running:


                - /etc/rc.d/rc.S
                        Enabled rc.serial load up

                - /etc/rc.d/rc.serial
                        /bin/setserial /dev/ttyS1 spd_vhi

                cp diald.conf /etc/diald

                diald.conf:
                --
                restrict 16:00:00 20:45:00 * * *
                down
                restrict * * * * *
                mode ppp
                connect /etc/ppp/diald/earthlink-connect
                device /dev/cua1
                speed 115200
                modem
                lock
                crtscts
                local 192.168.1.7
                remote 0.0.0.0
                dynamic
                defaultroute

                accounting-log /var/adm/ppp.log
                include /usr/local/lib/diald/standard.filter
                --

In /etc/rc.d/rc.local, add the following line:


                --
                cat "1" > /proc/sys/net/ipv4/ip_dynaddr


Next Previous Contents