Community discussions

MikroTik App
 
ArturZ
just joined
Topic Author
Posts: 4
Joined: Mon Apr 12, 2021 1:04 am

ovpn l2 +vlan

Thu Jun 17, 2021 4:17 am

Hello,

based on viewtopic.php?t=143620 I've set 2 routers that I'm trying to connect using ovpn in ethernet mode over Internet and use ovpn as trunk.
So far I've managed to establish ovpn connection and add ovpn endpoints to bridges. On main router I have LAN_VLAN interface on vlan10 and I'm running DHCP server there:

# LAN VLAN interface creation, IP assignment, and DHCP service
/interface vlan add interface=BR1 name=LAN_VLAN vlan-id=10
/ip address add interface=LAN_VLAN address=192.168.10.1/24
/ip pool add name=LAN_POOL ranges=192.168.10.2-192.168.10.254
/ip dhcp-server add address-pool=LAN_POOL interface=LAN_VLAN name=LAN_DHCP lease-time="3650d 00:00:00" disabled=no
/ip dhcp-server network add address=192.168.10.0/24 dns-server=192.168.0.1 gateway=192.168.10.1
On the remote site I have:
/interface vlan add interface=BR1 name=LAN_VLAN vlan-id=10
/ip address add interface=LAN_VLAN address=192.168.10.2/24

Now when I plug ethernet cable to one of the vlan10 ports on the remote site I'm able to get IP from DHCP, but I cannot ping anything - either 192.168.10.2 or 192.168.10.1
Both routers can ping themselves using vlan10 IPs - 192.168.10.2, 192.168.10.1
I can ping workstations connected to the main router from remote router.
I can't ping workstations connected to the remote router from main router. (but they got IP from DHCP)
From the workstation in vlan10 on main location I'm able to connect to remote router (192.168.10.2) using winbox. (obviously ping works as well)

To be sure that this is not some firewall issue I added temporary allow all on both routers. Nothing fancy in NAT, just masquerade.

I didn't touch MTU - not sure if I should.

I'm not quite sure what's going on. Could you help please?

Who is online

Users browsing this forum: almdandi, baragoon, GoogleOther [Bot], johnson73, loloski and 80 guests