Page 1 of 1

help fail over not working and rb951 DHCP not working

Posted: Wed Dec 07, 2016 8:15 am
by lexlukkia
Good day.
im having trouble with my rb951G-2hnd
i have 2 ISP and it says reachable (IP->routes)
LAN (ether3) also says reachable (IP->routes)

Problem 1: Failover not working
when i unplug WAN2, there is no internet connection at all. (does it mean it has no fail over?)
if WAN1 is unplug, i still have internet connection

Problem 2: DHCP
host are getting IP's (192.168.0.10) from WAN2 (192.168.0.2) "(ISP's modem/router - DHCP enabled - 192.168.0.1)" and not from RB951(192.168.50.200/24)
if i disable DHCP of WAN2 "(ISP's modem/router - DHCP enabled - 192.168.0.1)"... RB951 will give 192.168.50.254 to host as IP but host has no internet connection.

below is the config of my RB951G-2hnd

IP Addresses
# ADDRESS NETWORK INTERFACE
0 192.168.50.200/24 192.168.50.0 Local
1 192.168.1.2/24 192.168.1.0 wan1
2 192.168.0.2/24 192.168.0.0 wan2


Interface
# NAME TYPE ACTUAL-MTU L2MTU
0 RS ether3 ether 1500 1598
1 S ether4 ether 1500 1598
2 S ether5 ether 1500 1598
3 R wan1 ether 1500 1598
4 wan2 ether 1500 1598
5 X wlan1 wlan 1500 1600
6 R Local bridge 1500 1598

Route
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 192.168.1.1 1
1 S 0.0.0.0/0 192.168.0.1 1
2 A S 0.0.0.0/0 192.168.1.1 1
192.168.0.1
192.168.0.1
3 S 0.0.0.0/0 192.168.1.1 1
192.168.0.1
4 DC 192.168.0.0/24 192.168.0.2 wan2 255
5 ADC 192.168.1.0/24 192.168.1.2 wan1 0
6 ADC 192.168.50.0/24 192.168.50.200 Local 0

DHCP Server
DHCP
# NAME INTERFACE RELAY ADDRESS-POOL LEASE-TIME ADD-ARP
0 dhcp1 Local dhcp_pool1 3d

Network
# ADDRESS GATEWAY DNS-SERVER WINS-SERVER DOMAIN
0 192.168.50.0/24 192.168.50.200

IP firewall NAT
0 chain=srcnat action=masquerade out-interface=wan1 log=no log-prefix=""

1 chain=srcnat action=masquerade out-interface=wan2 log=no log-prefix=""

IP Firewall Mangle
0 chain=input action=mark-connection new-connection-mark=wan1_conn
passthrough=yes in-interface=wan1 log=no log-prefix=""

1 chain=input action=mark-connection new-connection-mark=wan2_conn
passthrough=yes in-interface=wan2 log=no log-prefix=""

2 chain=output action=mark-routing new-routing-mark=to_wan1 passthrough=yes
connection-mark=wan1_conn log=no log-prefix=""

3 chain=output action=mark-routing new-routing-mark=to_wan2 passthrough=yes
connection-mark=wan2_conn log=no log-prefix=""

4 ;;; my ICMP
chain=prerouting action=mark-connection new-connection-mark=icmp-con
passthrough=yes protocol=icmp log=no log-prefix=""

5 ;;; my ICPM
chain=prerouting action=mark-packet new-packet-mark=icmp-pkt
passthrough=no protocol=icmp connection-mark=icmp-con log=no
log-prefix=""

6 chain=postrouting action=mark-packet new-packet-mark=gaming passthrough=no
packet-mark=gaming log=no log-prefix=""

7 chain=postrouting action=mark-connection new-connection-mark=gaming
passthrough=yes protocol=udp out-interface=Local dst-port=1119 log=no
log-prefix=""

8 chain=postrouting action=mark-connection new-connection-mark=gaming
passthrough=yes protocol=udp out-interface=Local dst-port=1120,3724
log=no log-prefix=""

9 chain=postrouting action=mark-connection new-connection-mark=gaming
passthrough=yes protocol=udp out-interface=Local dst-port=6112,6113
log=no log-prefix=""

10 chain=postrouting action=mark-connection new-connection-mark=gaming
passthrough=yes protocol=udp out-interface=Local dst-port=27000,27060
log=no log-prefix=""

11 chain=postrouting action=mark-connection new-connection-mark=gaming
passthrough=yes protocol=udp out-interface=Local dst-port=5000-5500
log=no log-prefix=""

12 chain=postrouting action=mark-packet new-packet-mark=misc-fast
passthrough=no protocol=tcp log=no log-prefix=""

13 chain=postrouting action=mark-packet new-packet-mark=misc-fast
passthrough=no protocol=udp out-interface=Local dst-port=53 log=no
log-prefix=""

14 chain=postrouting action=mark-packet new-packet-mark=streaming
passthrough=no connection-mark=streaming log=no log-prefix=""

15 chain=postrouting action=mark-connection new-connection-mark=streaming
passthrough=yes connection-state=new protocol=tcp
out-interface=Local dst-port=1935 log=no log-prefix=""

16 chain=postrouting action=mark-packet new-packet-mark=http
passthrough=no connection-mark=http log=no log-prefix=""