Hello.
I want to create two ppp sessions using rp-pppoe. I already have one ISP using pppoe and wondering how in practice must be configured another ISP to work simultaneously with first one.
I want to made one elucidation - I dont have problems with routing. I already have two ISP's one with ppp and one via dhcp and I use them simultaneous with iproute and few bash scripts.
Now I want to add second ISP that uses pppoe.But how to configure rp-pppoe to create second connection ?
In /etc/ppp/ I have pap-secrets, chap-secrets, pppoe.conf for first connection and when i started pppoe it creates in /var/run these pids
Code:
ppp0.pid
pppd2.tdb
pppoe.conf-pppoe.pid
pppoe.conf-pppoe.pid.pppd
pppoe.conf-pppoe.pid.pppoe
pppoe.conf-pppoe.pid.start
So I think to made pppoe.conf1 with config for another ISP, but...now comes questions
In pppoe.conf I have row with USER= , so I put there my username, but password is in pap or chap file. How to tell in config "ppp1 your config is in pppoe.conf1 and password is in pap-secrets1" or I must add second row in pap-secrets with corresponding username like this :
Code:
# Secrets for authentication using CHAP
# client server secret IP addresses
"$user_ppp0" * "$passwd0"
"$user_ppp1" * "$passwd1"
.
And now comes "big" problem
.
Lets imagine - two configs are ready, ppp0(started with pppoe-start /etc/ppp/pppoe.conf0) is up and running, now starting second connection with pppoe-start /etc/ppp/pppoe.conf1 and what happens ?
ppp1 goes up and creates something like this in /var/run
Code:
ppp1.pid
pppd2.tdb
pppoe.conf1-pppoe.pid
pppoe.conf1-pppoe.pid.pppd
pppoe.conf1-pppoe.pid.pppoe
pppoe.conf1-pppoe.pid.start
or just says "pppoe is already up" or something similar ?And what can I do in this case?
I still dont have second pppoe ISP and cant try what will happens, so I want to be ready for possible problems if any appears when plug cable .
Thanks in advance.
Ooops I forgot ... :
Distro is Slackware 11.0 .
rp-pppoe version is 3.8 from Slackware install disk.
And one last question :
How to tell to pppoe always to create same names for every connection no matter which one is started first
something like this : ppp0=ISP0 ppp1=ISP1.
Thanks again.