Hi all, i have some troubles with pppoe-clients, any help will be appreciated.
The situation:
bridged adsl-modem ↔ eth5 on rb750g.
RB has 2 pppoe-clients configured: pppoe-inet and pppoe-private. The first one obtains public ip (limited bandwith), the second - private address for several country resources with higher speeds, with list of static routes. pppoe-inet configured with add-default-gateway option and pppoe-private without it.
The problem:
After firing connections route table looks as shown below:
14 ADr 91.149.189.0/25 10.255.254.234 120
15 ADC 93.84.80.74/32 178.120.17.253 pppoe-inet 0
pppoe-private
16 ADr 93.84.112.0/21 10.255.254.234 120
so i have two pathes with one destination, because isp provides only one ac, and without additional tuning networking dies (earlier i was using ac-name option to manage this connections separatly)
i tried to do something, at this moment i’m using openwrt under xen to hold pppoe-private and RIP routing. Maybe this could be done with RB only? Thanks for advice.
so what’s problem? that destination is only for single address: 93.84.80.74/32
just use gateway=pppoe-* instead of gateway IP address
well, it seems that you don’t understood
without second pppoe:
0 ADS dst-address=0.0.0.0/0 gateway=93.84.80.74 gateway-status=93.84.80.74 reachable pppoe-inet distance=1
scope=30 target-scope=10
3 ADC dst-address=93.84.80.74/32 pref-src=178.120.17.21 gateway=pppoe-inet
gateway-status=pppoe-inet reachable distance=0 scope=10
with second pppoe:
0 ADS dst-address=0.0.0.0/0 gateway=93.84.80.74 gateway-status=93.84.80.74 reachable pppoe-private distance=1
scope=30 target-scope=10
3 ADC dst-address=93.84.80.74/32 pref-src=178.120.17.21 gateway=pppoe-inet,pppoe-private
gateway-status=pppoe-inet reachable,pppoe-private reachable distance=0 scope=10
dst 93.84.80.74 is dynamic, how can i change it?
/ip address print
3 D 178.120.17.21/32 93.84.80.74 0.0.0.0 pppoe-inet
4 D 1.8.8.195/32 93.84.80.74 0.0.0.0 pppoe-private
edit your static routing rules, replace ‘gateway=93.84.80.74’ with ‘gateway=pppoe-inet’ or ‘gateway=pppoe-private’. don’t use ‘add default route’ at all
replacing
0 ADS dst-address=0.0.0.0/0 gateway=93.84.80.74 gateway-status=93.84.80.74 reachable pppoe-inet distance=1
scope=30 target-scope=10
with
0 A S dst-address=0.0.0.0/0 gateway=pppoe-inet gateway-status=pppoe-inet reachable distance=1 scope=30
target-scope=10
did the trick. thanks.