Reply
New Member
Posts: 2
Registered: ‎07-28-2017

Multiple WAN IPs and 2 cables

Hi,

 

I have browsed many tutorials how to solve problem with multiple WAN IPs on 2 independent cables from 1 ISP, but solution not found.

 

We have 2 cables from 1 ISP with multiple IP on 1 and 1 IP on the second cable. Both cables has the same subnet and gateway. On the picture below you can see the our network structure.

 

 

Untitled Diagram (2).png

 

Whats going on? We need to separe communication only between specific addresses.

So servers has to comunicate just only:

192.168.100.1-2 to and back 10.10.0.61; WAN 1

192.168.100.3 to and back 10.10.0.71; WAN 2

192.168.100.4 to and back 10.10.0.62; WAN 1

 

Now, just WAN 1 is connected and comunnication is OK for 192.168.100.1-2 and 192.168.100.4.

The traffic for 192.168.100.4 is routed via source and destination NAT.

The traffic for 192.168.100.1-2 is masqueraded to WAN 1.

 

If I connect WAN 2 I lost connectivity to 192.168.100.4 due to that routing table starts to route all traffic to WAN 2.

 

I do not want the load balancing or fail over function. I need just separe traffic to specific IPs. Specially for 192.168.100.3 to 10.10.0.71 because there is traffic consume server.

 

Do you know any solution how to solve this issue? Eg.firewall settings, routing setting. I do not have idea.

 

Thanks.

SuperUser
Posts: 20,401
Registered: ‎09-17-2013
Kudos: 5133
Solutions: 1458

Re: Multiple WAN IPs and 2 cables


@RxerTxer wrote:

Hi,

 

I have browsed many tutorials how to solve problem with multiple WAN IPs on 2 independent cables from 1 ISP, but solution not found.

 

We have 2 cables from 1 ISP with multiple IP on 1 and 1 IP on the second cable. Both cables has the same subnet and gateway. On the picture below you can see the our network structure.

 



This is invalid.  You cannot have two ports on your router belonging to the same network.

 

 

Veteran Member
Posts: 7,609
Registered: ‎03-24-2016
Kudos: 1979
Solutions: 871

Re: Multiple WAN IPs and 2 cables

Seems like the ISP put some effort, in configuring the switch to split a single connection into 2 customers.

If they did, ask the ISP to undo this

Or maybe the ISP didn't, and you can just use all IPs on single cable.

 

 

Without any changes, easiest way out might be to go for 2 ER-Xes

New Member
Posts: 2
Registered: ‎07-28-2017

Re: Multiple WAN IPs and 2 cables

[ Edited ]

Thanks for answers.

 

Customer network is 1 customer. All server and router belong to 1 customer.

 

Yes. There are 4 servers in server room. Both cables is separed connectivity in the same subnet. Two switch's ports with assigned IPs.

So I hoped it should be possible to route traffic as is described. Mainly for 1 server where is heavy traffic (should have own cable and just own traffic)

 

According to your answers doyou think it is impossible to solve it? (think about policy based routing maybe?)

Veteran Member
Posts: 5,782
Registered: ‎01-04-2017
Kudos: 830
Solutions: 294

Re: Multiple WAN IPs and 2 cables

When your working on a layer 2 plane you need to use a layer 2 solution. Does the switch support LAG? LAG is offloaded on the cavium based routers as of 2.0 firmware https://help.ubnt.com/hc/en-us/articles/204975844-EdgeRouter-Interface-Bonding

Or just buy another er-x, which is the cheaper solution.
Reply