Quantcast
Channel: EdgeRouter topics
Viewing all articles
Browse latest Browse all 20028

Routing to dual WAN connections with 2 VLANs on LAN with an EdgeRouter Lite

$
0
0

I'm wondering what best practice is for confguring an EdgeRouter Lite to have 2 VLANs on the LAN interface, each routed to a separate WAN interface. Up until now, I've separated the voice and the lan traffic on different subnets (seperating it at layer 3). The lan has had it's IP addresses assigned by DHCP on, say, the 192.168.0.0/24 network and the phones were assigned static addresses on the 10.0.0.0/24 subnet. I was then using policy-based routing on the source IP address to route the relevant traffic out each WAN connection. This all worked quite well, however a number of people advised me that it's not the right way to do it and that I should be using VLANs.

 

I've recently had the time to reconfigure 5 differnet switches from 3 different vendors to add VLANs to the network and now have the default VLAN for the lan and I've added VLAN 100 for voice.

 

So:

eth0 is pppoe0

eth1 is pppoe1

eth2 is LAN with the default VLAN ID

eth2.100 is VLAN ID 100 for voice

 

The default LAN traffic should be routed out the pppoe0 interface and the Voice VLAN traffic should be routed out pppoe1. The ERL is providing DHCP for both VLANs.

 

Looking at some documentation on the UBNT Support site, it seems that even with VLANs enabled, the way to configure the routing is still via the source IP address - so what am I missing? How is this different to what I previously had set up (given that isolating the voice and data on separate networks for security isn't really an important consideration at this site)

https://help.ubnt.com/hc/en-us/articles/204952274-EdgeMAX-Policy-based-routing-source-address-based-

 

Is there a better/more efficient way to route based on source VLAN instead of routing based on source IP address?


Viewing all articles
Browse latest Browse all 20028

Trending Articles