I have a Linux-Gateway with SuSE Linux 7.0 Professional connecting to one
ISP by ISDN. I use Dial-On-Demand so that this gateway dials when one of two
Windows-PCs wants something in the internet. I am using masquerading and the
gateway works fine with this one ISP.
But now I want the Linux-PC to connect to one ISP when it's beetween 9 AM
and 6 PM beetween monday and friday and to another ISP during the other time
to save money.
Furthermore I want the Linux-PC to hang up at the time when the cheapest
changes to ensure that always the cheapest ISP is used.
I use the following IP-adresses in my network
192.168.100.101 and 192.168.100.102 are the two Windows-PCs
192.168.100.100 is my Linux-PC.
192.168.90.100 is the IP-adress of the ippp0-device (Fritz-Card-Classic) and
192.168.90.101 is the one of the Point-To-Point-Partner which are replaced
by dynamic IP-adresses when connected.
I think it's also necessary to change the DNS, because I use the DNS of my
ISP.
I don't know if you need more information about my problem...
I'd like best an answer in German, but English is also OK.
Thanks in advance,
Sebastian Messing.
Sorry.
]Hi,
Write two scripts-- connect1 connect2 each of which will connect you to
the appropriate ISP. Then set up a cron entry (using crontab -e) so that
at 9 AM a link is made from connect to connect1 and at 5PM from connect
to connect2.
Then at9AM and at 5 also bring down the connection.