{"id":1946,"date":"2010-06-23T07:32:11","date_gmt":"2010-06-23T13:32:11","guid":{"rendered":"http:\/\/gregsowell.com\/?p=1946"},"modified":"2010-06-23T07:32:11","modified_gmt":"2010-06-23T13:32:11","slug":"bridging-an-l2-segment-across-the-internet-using-mikrotik","status":"publish","type":"post","link":"https:\/\/gregsowell.com\/?p=1946","title":{"rendered":"Bridging an L2 Segment Across The Internet Using Mikrotik"},"content":{"rendered":"<p>So what happens when your coworker has a DVR at home that can stream video, but it can stream it only to the  local subnet?  Well, if like us, you need to watch the world cup, then you get creative.  Mikrotik to the rescue!  We are going to use Ethernet over IP tunnels to connect two Mikrotiks, then bridge our inside interfaces so that we have an extension to our L2 segment!<\/p>\n<p>Here&#8217;s our current configuration:<br \/>\n<figure id=\"attachment_1955\" aria-describedby=\"caption-attachment-1955\" style=\"width: 560px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2010\/06\/13.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2010\/06\/13.png\" alt=\"\" title=\"1\" width=\"560\" height=\"123\" class=\"size-full wp-image-1955\" srcset=\"https:\/\/gregsowell.com\/wp-content\/uploads\/2010\/06\/13.png 560w, https:\/\/gregsowell.com\/wp-content\/uploads\/2010\/06\/13-300x65.png 300w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><figcaption id=\"caption-attachment-1955\" class=\"wp-caption-text\">Weeeeeeeee<\/figcaption><\/figure><\/p>\n<p><strong>To configure the &#8220;work&#8221; side, do the following:<\/strong><br \/>\nFirst go to interface and hit the +.  Add an EoIP tunnel.  Set the &#8220;remote address&#8221; as the public IP of the home router:<br \/>\n<a href=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2010\/06\/work-eoip.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2010\/06\/work-eoip.png\" alt=\"\" title=\"work-eoip\" width=\"437\" height=\"265\" class=\"size-full wp-image-1948\" srcset=\"https:\/\/gregsowell.com\/wp-content\/uploads\/2010\/06\/work-eoip.png 437w, https:\/\/gregsowell.com\/wp-content\/uploads\/2010\/06\/work-eoip-300x181.png 300w\" sizes=\"auto, (max-width: 437px) 100vw, 437px\" \/><\/a><\/p>\n<p>Then go to bridge and hit the +.  Leave bridge1 at its default and hit ok:<br \/>\n<a href=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2010\/06\/work-bridge.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2010\/06\/work-bridge.png\" alt=\"\" title=\"work-bridge\" width=\"191\" height=\"155\" class=\"size-full wp-image-1949\" \/><\/a><\/p>\n<p>Now, add the EoIP tunnel interface and the Ether2 interface into bridge 1:<br \/>\n<a href=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2010\/06\/work-ports.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2010\/06\/work-ports.png\" alt=\"\" title=\"work-ports\" width=\"185\" height=\"196\" class=\"size-full wp-image-1950\" \/><\/a><\/p>\n<p>Repeat your actions for the home side identically save for the IP address the EoIP tunnel is pointing towards.<\/p>\n<p>Here&#8217;s a rough diagram of how it looks when done:<br \/>\n<figure id=\"attachment_1956\" aria-describedby=\"caption-attachment-1956\" style=\"width: 553px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2010\/06\/23.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2010\/06\/23.png\" alt=\"\" title=\"2\" width=\"553\" height=\"148\" class=\"size-full wp-image-1956\" srcset=\"https:\/\/gregsowell.com\/wp-content\/uploads\/2010\/06\/23.png 553w, https:\/\/gregsowell.com\/wp-content\/uploads\/2010\/06\/23-300x80.png 300w\" sizes=\"auto, (max-width: 553px) 100vw, 553px\" \/><\/a><figcaption id=\"caption-attachment-1956\" class=\"wp-caption-text\">Red is the new stuff.<\/figcaption><\/figure><\/p>\n<p>Here&#8217;s a look at how it logically is configured once it is all said and done.  Notice it is like we just have a switch in between the devices:<br \/>\n<figure id=\"attachment_1957\" aria-describedby=\"caption-attachment-1957\" style=\"width: 542px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2010\/06\/32.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/gregsowell.com\/wp-content\/uploads\/2010\/06\/32.png\" alt=\"\" title=\"3\" width=\"542\" height=\"92\" class=\"size-full wp-image-1957\" srcset=\"https:\/\/gregsowell.com\/wp-content\/uploads\/2010\/06\/32.png 542w, https:\/\/gregsowell.com\/wp-content\/uploads\/2010\/06\/32-300x50.png 300w\" sizes=\"auto, (max-width: 542px) 100vw, 542px\" \/><\/a><figcaption id=\"caption-attachment-1957\" class=\"wp-caption-text\">Super complicated diagram<\/figcaption><\/figure><\/p>\n<p>Happy bridging&#8230;welcome to 1991 hehehehe \ud83d\ude42<\/p>\n<p>GO USA!!!!!!!!!!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So what happens when your coworker has a DVR at home that can stream video, but it can stream it only to the local\u2026<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,8],"tags":[],"class_list":["post-1946","post","type-post","status-publish","format-standard","hentry","category-mikrotik","category-networking"],"_links":{"self":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/1946","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1946"}],"version-history":[{"count":9,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/1946\/revisions"}],"predecessor-version":[{"id":1964,"href":"https:\/\/gregsowell.com\/index.php?rest_route=\/wp\/v2\/posts\/1946\/revisions\/1964"}],"wp:attachment":[{"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1946"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1946"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gregsowell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}