Hi,
I have setup an EOIP tunnel over SSTP from site1 VLAN to site2.
I am trying to split traffic over WAN from site2 on MT2 router to go straight out ISP gateway
instead of LAN gateway over EOIP tunnel.. how would I do this..?
If you use the single-bridge-for-all-vlans approach with vlan-filtering=yes on the bridge, you cannot attach the BCP L2 tunnel directly to that br-all-vlans, because this dynamic addition does not support vlan-filtering=yes (at least it didn't a year ago).Well, yes I was going access two vlans over the EOIP tunnel. ...
Maybe I do not need an EOIP over SSTP configuration..?
Well, let's first differentiate between "gateway", "route", and the misleading shortcut "default gateway" which actually means "default route's gateway".Furthermore, when the remote office PC1 is connected to HQ vlan; I want the vlan traffic for
PC1 connected to vlans to stay on the vlan gateway (which it does by default) then... when
PC1 sends traffic outside of the vlan to the public WAN... I want to use a different gateway (ISP)
so that PC1 is not consuming bandwidth from HQ for surfing or doing traffic not related to vlans...
Rather, PC1 uses its own ISP provider bandwidth for non-related vlan traffic.
So... PC1 on MT1 gets all its network information from DHCP server on MT2 at HQ through the vlan EOIP tunnel.So... as long as you only need the PC to talk to other devices in the same VLAN/subnet where it is connected via the tunnel, and to the rest of the world via the WAN of the Mikrotik to which it is connected, what I wrote earlier is enough - the default gateway for that PC will be the own IP address, in the subnet where the PC is connected, of the Mikrotik where the PC is connected, and that's it (so the Mikrotik at each end of the tunnel must have its own IP in each of the two subnets which live in each of the two VLANs).
OK, so let's split the task into steps.MT1 has NO dhcp servers configured; thus far I have not figured out how to get PC1 out through MT1 WAN...
By dynamic configuration I mean just DHCP, no need to be afraid of any additional complication.I am guessing that I have to mark packets and re-route or maybe that dynamic configuration you speak of?
As it works the way you've set it up, it may mean two things:Hi sindy - in may case i need to transfer vlan10, is this corect set up for that?
Ah, it makes sense that ether-type is only relevant in association with vlan-filtering=yes. So my proposed setup may be simplified - the auxiliary bridge to which the BCP tunnel is added as a port may actually ignores ether-type, so you can even keep use-service-tag=no on the interface vlan used to add the outer tag as handling the frames as they flow from br-vlan to the auxiliary bridge. But it looks nicer if the outer tag is an S one and the inner one is a C one that if both are C onesbut i'm not able to set up ethertype, because that one goes if i tick vlan-filtering=yes.
Once you get past this, the other steps (routes to non-connected internal subnets reachable via the tunnel) may need to be handled.
But the local DHCP server at MT1 is not mandatory of course. If you don't mind that while the inter-site L2 tunnel is down, the PC1 will be unable to connect anywhere (including the internet) once its address lease expires, you can just reserve a static DHCP lease for PC1 on the MT2 (the easiest way is to let it get an address from the pool and then use /ip dhcp-server lease make-static), and bind a dedicated /ip dhcp-server network to it, which indicates MT1's address in the L2-tunneled subnet as the default gateway. Don't forget about the netmask parameter - if you don't state it explicitly, it will be taken from the address item, so /32 which is not good.
I cannot see why this was necessary. Normally, PC1's address is from the subnet which is bridged across the link using the tunnel, so at MT2 side, the PC1 should be seen as just another machine on the LAN and no route should be required. Or maybe I've misunderstood what route you've actually added?Then I had to add route back to MT1 router gateway through the L3 connection on MT2.
The outgoing PC1 traffic itself doesn't go to MT2 and back - the DHCP network config tells PC1 to use MT1 as gateway straight away, that's the whole point.WAN traffic went some round about way 'I guess' back to MT1 via MT2 hard-coded DHCP network config.
Why?Oh, and I did have to use bridge filtering on eoip-bridge..
"nobody likes" - it's your decision after all, the point is that any tunnel adds some overhead, and EoIP over L3 L2TP is a "tunnel in tunnel". The L2 L2TP tunnel has the same amount of overhead as the L3 L2TP one, and you only have to pay those 4 bytes per frame, which is the 802.1ad tag, for the ability to bridge only those VLANs from the main bridge which you need. If you didn't need the L2TP and could use EoIP alone, it would be a different case.It seems that nobody likes the overhead of EOIP... so then '802.1ad service-vlan tagging to transport a trunk of 802.1Q customer-vlans' is the next best option?