scucces pcc marge cable modem and Adsl pppoe client

isp provider
windstream:6mb pppoe client:username password need interfacename=WAN1
Time Warner:1mb cable modem with auto dhcp no username or password interfacename=WAN2
test in routerbord RB915g
WAN1=interface 1
WAN2=interface 2
Local=interface 5

Note:in mikrotik software version you need to modified the number in the script (network interface)


the script:

/interface ethernet
set 0 name=WAN1 comment=pppoe-out1
set 1 name=WAN2 comment=internetcablemodem
set 4 name=Local comment=Internetout

/ip address
add address=192.168.10.1/24 interface=Local comment=Out

/ip dns
set allow-remote-requests=yes cache-max-ttl=1w cache-size=2048KiB max-udp-packet-size=512 servers=8.8.8.8,8.8.4.4

/interface pppoe-client
add ac-name=“” add-default-route=no allow=pap,chap,mschap1,mschap2 dial-on-demand=no disabled=no interface=WAN1 max-mru=1480 max-mtu=1480 mrru=disabled name=pppoe-out1 password=hahaha
profile=default service-name=“” use-peer-dns=no user=user-1

/ip dhcp-client
add interface=WAN2 disabled=no add-default-route=no use-peer-dns=no use-peer-ntp=no

/ip firewall mangle
add action=accept chain=prerouting disabled=no in-interface=pppoe-out1
add action=accept chain=prerouting disabled=no in-interface=WAN2
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local new-connection-mark=pppo-out1_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:7/0 src-address=192.168.10.0/24
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local new-connection-mark=pppo-out1_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:7/1 src-address=192.168.10.0/24
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local new-connection-mark=pppo-out1_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:7/2 src-address=192.168.10.0/24
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local new-connection-mark=pppo-out1_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:7/3 src-address=192.168.10.0/24
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local new-connection-mark=pppo-out1_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:7/4 src-address=192.168.10.0/24
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local new-connection-mark=pppo-out1_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:7/5 src-address=192.168.10.0/24
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local new-connection-mark=wan2_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:7/6 src-address=192.168.10.0/24
add action=mark-routing chain=prerouting connection-mark=pppo-out1_conn disabled=no new-routing-mark=to_pppo-out1 passthrough=yes src-address=192.168.10.0/24
add action=mark-routing chain=prerouting connection-mark=wan2_conn disabled=no new-routing-mark=to_wan2 passthrough=yes src-address=192.168.10.0/24

/ip firewall nat
add action=masquerade chain=srcnat disabled=no out-interface=pppoe-out1 src-address=192.168.10.0/24
add action=masquerade chain=srcnat disabled=no out-interface=WAN2 src-address=192.168.10.0/24

/ip route
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to_pppo-out1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=WAN2 routing-mark=to_wan2 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=WAN2 scope=30 target-scope=10

/system identity
set name=“Your name here”

thanks

I used your script to configure my rb750gl. Istead of 192.168.10.0 i used 192.168.16.0 and .254 as gateway. Set up dhcp server for local network but i am not be able to ping 8.8.8.8 or resolve host name. For now i am using only wan2 connected to a modem. i am not able to make this configuration work.