2 ADSL line

Hi all,

I have a problem. :wink:
I have 2 ADSL line, but I can use only one at time. If I connect I get local IP address, not public IP address.
Ie:

0 R name=“pppoe-out1” max-mtu=1480 max-mru=1480 interface=ether2 - ADSL1
user=“USER1” password=“PASSWORD1” profile=default service-name=“”
ac-name=“” add-default-route=yes dial-on-demand=yes use-peer-dns=no
allow=pap,chap,mschap1,mschap2

1 R name=“pppoe-out2” max-mtu=1480 max-mru=1480 interface=ether3 - ADSL2
user=“USER2” password=“PASSWORD2” profile=default service-name=“”
ac-name=“” add-default-route=no dial-on-demand=yes use-peer-dns=yes
allow=pap,chap,mschap1,mschap2


With this config I get public IP address, and gateway on line pppoe-out1, and local IP address on pppoe-out2.

ADDRESS NETWORK BROADCAST INTERFACE

0 192.168.12.253/24 192.168.12.0 192.168.12.255 ether1 - LOCAL
1 192.168.252.254/24 192.168.252.0 192.168.252.255 ether1 - LOCAL
2 D 10.X.X.X/32 10.X.X.X 0.0.0.0 pppoe-out2
3 D 87.X.X.X/32 213.X.X.X 0.0.0.0 pppoe-out1


If I set the “add-default-route=yes” on pppoe-out2, I get local IP address on both line. :frowning:

Any idea?

Thanks for all,

Kaly

ps. sorry my poor english. :frowning:

try setting dial-on-demand=no

Sam

Thanks Sam.
Working. :slight_smile:

kaly

To explain a bit … dial on demand hangs up the connection and assigns a fake IP to keep it ‘active’ in the routing. . . when you send traffic to that fake ip it should bring the interface up. Never worked right in my opinion…