EdgeRouter gre tunnel with MikroTik


vlan64 = WAN –
eth0 = LAN –
tun1 = routing remote network –

set interfaces ethernet eth1 vif 64 address
set interfaces ethernet eth0 address
set firewall options mss-clamp interface-type tun
set firewall options mss-clamp mss 1360
set interfaces tunnel tun1 address
set interfaces tunnel tun1 description Fantazia
set interfaces tunnel tun1 encapsulation gre
set interfaces tunnel tun1 local-ip
set interfaces tunnel tun1 mtu 1476
set interfaces tunnel tun1 multicast disable
set interfaces tunnel tun1 remote-ip
set interfaces tunnel tun1 ttl 255
set protocols static route next-hop
set protocols static route next-hop
set system offload ipv4 gre enable

ubnt@ubnt# run show interfaces tunnel tun1
tun1@NONE: mtu 1476 qdisc noqueue state UNKNOWN
link/gre peer
inet brd scope global tun1
valid_lft forever preferred_lft forever
inet6 fe80::200:5efe:5d9b:8226/64 scope link
valid_lft forever preferred_lft forever
Description: Fantazia

RX: bytes packets errors dropped overrun mcast
721308 4769 0 0 0 0
TX: bytes packets errors dropped carrier collisions
106856 1396 0 0 0 0


ether = WAN –
bridge1 = LAN –
tun1 = routing remote network –

/ip address
add address= interface=ether1
add address= interface=bridge1
add address= interface=tun1
/interface gre
add !keepalive mtu=1476 name=tun1 remote-address=

/ip route
add distance=1 dst-address= gateway=
add distance=1 dst-address= gateway=

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.