EoIP tunnel on Linux

Ethernet over IP (EoIP) Tunneling is a MikroTik RouterOS protocol (stateless and lightweight ethernet level to level tunnel protocol with 28 bytes static overhead) that creates an Ethernet tunnel between two routers on prime of an IP connection. The EoIP tunnel might run over IPIP tunnel, PPTP tunnel or another connection able to transporting IP.

To join Linux with Mikrotik over EoIP tunnel, you’ll want [zeoip0].

# wget --no-verify-certificates https://linux-eoip.googlecode.com/information/linux-eoip-zero.H.tgz # tar zxvf linux-eoip-zero.H.tgz # cd linux-eoip-zero.H # ./configure # make # make install

Copy eoip.cfg to /etc dir, change settings inside in line with your wants and save the file. If you employ dynamic=B choice, take consideration that there isn't any authorization,
and it isn't safe. It shouldn't be good concept to make use of this function with public ip or insecure(not utterly underneath your management, every host) community.

For not lets suppose you want just one tunnel to distant IP handle B.M.B.B

[zeoip0] id=M dst=M.M.B.B

On Mikrotik create EoIP tunnel with the identical ID (M) and set your server’s IP tackle as distant IP.  Run eoio with

# /usr/native/bin/eoip /etc/eoip.cfg

Add IP tackle to your eoip interface

# /sbin/ifconfig zeoip0 10.254.254.P netmask up

And optionally add routes (when you have any)

# route add -internet 10.P.zero.zero/sixteen gw 10.254.254.M

Add the previous few strains inside rc.native to allow tunnel after reboot. The eoip interface could be threaten identical to another interface.

# ifconfig zeoip0    Link encap:Ethernet  HWaddr 5B:25:C9:forty four:6A:seventy nine             inet addr:10.254.254.P  Bcast:10.254.254.O  Mask:           inet6 addr: fe80::5425:d9ff:fe80:6b79/sixty four Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:M           RX packets:167397 errors:zero dropped:zero overruns:zero body:zero           TX packets:138861 errors:zero dropped:zero overruns:zero service:zero           collisions:zero txqueuelen:500            RX bytes:14934574 (14.P MiB)  TX bytes:12520192 (eleven.Ngrep dhcp 5180 ?        Ss     zero:02 /usr/sbin/dhcpd eth1 zeoip0 27356 pts/M    J+     zero:00 grep dhcp

As you possibly can see, you possibly can run dhcp server on eoip interface. Just open /etc/sysconfig/dhcpd and add DHCPDARGS=”eth1 zeoip0″ inside. Save the file and restart dhcp server.

Recommended:  How To Install Calibre eBook Reader On Ubuntu 16.10

Leave a Reply