is it possible to run (input) dual wan on same router (out 1 LAN) ???
In my scenario, i have 1 static wan connection and 2nd wan is PPpoe.
Static WAN 1 = 10.1.1.1
PPpoe WAN 2 = 192.168.15.1
static wan is already working in my work place and want to add 2nd wan PPpoe connection in my WAN side,
both WAN will use or work on my single LAN.
LAN IP 192.168.1.1
now i want to set LAN ip for my both wans, like
192.168.1.10 for wan1 and 192.168.1.20 for wan2
ip will be same and if i want to switch the internet, i just change the gateway of my pc or client and internet keeps work smoothly ,
is it possible or not??
if it is possible then please help me!!!
Hey. Why you want 2 LAN IPs for your WANs? Just use your single LAN for both WAN with different route distance, and create address list, for example “WAN”, to add both interfaces there and use source NAT with masquerade action for your LAN. That’s it.
Anumrak you said well, exactly really i want to do what you are saying, but i have no idea how to do it?? i have tried many thing but 2nd wan is not working in my scenario ,
i do not want to set failover, i want to use both wans internet, i want to set 10 users in wan 1 and wanna set 20 users on wan 2 and they can communicate with each other, all users remain in same (single LAN) network, just change the gateway manually 10 to 20 or shift on wan 2,
Now i see, the simplest way to do that is divide 1 x /24 to 2 x /25
it will give you two separate subnet spaces:
IP-s: 192.168.1.2 - 192.168.1.126
MASK 255.255.255.128
GW LAN1 == 192.168.1.1/25
Is it really this simple? My impression is that dst-nat is done after routing decision is made (which actually selects the out-interface). Which means that src-address property in NAT rules example doesn’t help. Instead it would be necessary to establish two routing tables (with default route via each WAN, distinguished by using different routing marks) and mangle rules that will mark packets originating from each of LAN subnets with corresponding routing marks …
And note that mangling and fasttracking are exclusive, so one has to disable the fasttracking firewall filter rule to make mangling work. This in turn reduces routing performance of router and could happen that routing capacity actually drops below WAN line(s) capacity.
in contradictory i want to say that DST-NAT in PREROUTING chain and it is done before routing decision, not after as you said, check packet flow diagram…
DST-NAT is indeed in prerouting. However, the NAT rules are about SRC-NAT and that’s done in postrouting which comes after routing decision. See routing diagram.
first of all many many thanks to all of you for concerning ,
actually one reason behind this both wans into single LAN, both networks will communicate with each other, as i know about subnetting, FIRST SUBNET IS UNKNOWN FOR OTHER SUBNET, that’s why i want to deploy both WANs into my LAN,
let me clear this, 192.168.1.1 gateway is for executive persons, they are using ERP software which is connected with server, that’s why i want to set this gateway for my executive officers, and 192.168.1.2 for other users.
both will work in same LAN and they can share each other any thing very simply,
i did what you have said but i cant able to ping or run internet on other gateway, i am missing many things,
sorry but i didnt understand, because i am new in Mikrotik Router, that person have configure vlan in router, but i do not want to set vlan. and where is VRRP IP setting, i have founded vrrp setting in mikrotik but how to config an ip into it??? i am very confused , please help me to take out of it…
i have 2 different ISP, please tell me how to config my router,
Ethernet 1 = 111.167.10.1 WAN ( wan=1 is already running in my network, i want to add my 2nd ISP into LAN, )
Ethernet 2 = 192.168.15.1 WAN
Ethernet 5 = 192.168.1.1 (LAN for both Wans)
192.168.1.1 is for WAN 1 and 192.168.1.2 is for wan 2.