N
N
Nikolai Vasilchuk2010-12-24 10:50:43
D-Link
Nikolai Vasilchuk, 2010-12-24 10:50:43

D-Link DIR-320 and 2 providers

I know that on third-party firmware, you can use 2 sockets for WAN.
It is necessary to start up only a certain list of subnets through one provider (city network), and through the second - everything else.
Can you tell me how to set up such a scheme?

PS I saw this topic , but I have 2 cables, not 1.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
S
Sergey, 2010-12-24
@Anonym

You did not answer the question "how to set up such a scheme?"

Here:
http://wiki.openwrt.org/doc/uci/multiwan
config 'interface' 'wan'
        option 'weight' '10'
        option 'health_interval' '10'
        option 'icmp_hosts' 'dns'
        option 'timeout' '3'
        option 'health_fail_retries' '3'
        option 'health_recovery_retries' '5'
        option 'failover_to' 'wan2'
        option 'dns' 'auto'

config 'interface' 'wan2'
        option 'weight' '10'
        option 'health_interval' '10'
        option 'icmp_hosts' 'dns'
        option 'timeout' '3'
        option 'health_fail_retries' '3'
        option 'health_recovery_retries' '5'
        option 'failover_to' 'wan'
        option 'dns' 'auto'




that the q&a section was once created to search for specific solutions
It does not override elementary google search .

V
ValdikSS, 2010-12-25
@ValdikSS

I had it set up on dd-wrt, I didn’t do it on openwrt, but everything is decided either by miltiwan or simply by hand. First you need to make a separate weel to connect the second one. You can use the webface, you can use nvram or robocfg.
That's how I have I.e. We plug one provider into the WAN port, the other into port 4. In openwrt, the entire network is configured in the /etc/config/network file. It is possible to do what you want without the multiwan package. Just keep in mind that you have a kind of NAT on both sides, you will need to mark incoming (!) Packets from each provider, and send a response through this provider too, otherwise they will go through the default provider. More details here www.dd-wrt.com/wiki/index.php/Dual-WAN_for_simple_round-robin_load_equalization

only I threw out half of it, tk. I didn't need a round robin.

S
Sergey, 2010-12-24
@bondbig

Quote from that thread:

On OpenWRT with the MultiWAN package, this is done once or twice.
Who's stopping you from doing it?

B
BReal, 2010-12-24
@BReal

For such purposes, I was looking for (and barely found) d-link di-lb604 for such purposes about two years ago - perhaps the most budgetary version of a two-Wan router. Unfortunately it is not released now.
By the way, I'm selling :) Please contact if anything ...

D
drunken, 2010-12-25
@drunken

The 320th supports vlans, so iproute2 and a simple script on the shell.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question