Mikrotik – Mikrotik Configuring IPIP (IPv4) tunnel

Published on Author gryzli

Here are the steps to create simple IPIP tunnel using Mikrotik CLI console.

In the following example I suppose the following setup:

Tunnel: IPIP

Public IP addresses:

Mikrotik public ip: 5.5.5.1

Work computer public ip: 20.20.20.1

IPIP Tunnel Internal ip addresses:

Mikrotik IPIP ip address: 1.1.1.1/24

Work computer IPIP ip address: 1.1.1.1/24

 

Also I suggest, that you have already configured the IPIP tunnel from the other side (the work computer)

 

1. Open Mikrotik console

You can do this by one of the following ways:

– Mikrotik WEB GUI — > New terminal

– Log through SSH into the Mikrotik router

 

2. Create the IPIP tunnel

# Create IPIP tunnel
[admin@MikroTik] /interface ipip

# Configure the public ip addresses 
[admin@MikroTik] interface ipip> add
local-address: 5.5.5.1
remote-address: 20.20.20.1 

# Enable the interface
[admin@MikroTik] interface ipip> enable

3. Add the internal IPIP tunnel ip address

[admin@MikroTik] interface ipip> /ip address add address=1.1.1.1/24 interface=ipip1

 

4. Finally check if the tunnel is working okay

Issue ping from the working computer, and monitor the traffic on the router:

computer> ping 1.1.1.1

# .........
# On the router
[admin@MikroTik] /interface> monitor-traffic ipip1