MikroTik to MikroTik IPIP Tunnel Configuration

অভ্র শ্যাম
3 min readSep 2, 2023

--

IPIP (IP in IP) tunneling is a technique used to encapsulate one IP packet within another IP packet. In MikroTik RouterOS, you can create IPIP tunnels to establish virtual point-to-point connections between two routers or networks over an existing IP network, such as the Internet. This allows you to extend a network or route traffic securely between remote locations. Here’s how to set up an IPIP tunnel in MikroTik RouterOS:

MikroTik to MikroTik IPIP Tunnel Configuration Topology
Fig01: MikroTik to MikroTik IPIP Tunnel Configuration

To Create IPIP tunnel between 2 MikroTik router, we have to configure the following things:

Create IPIP Tunnel Interface.

2. Assign IP address to the tunnel Interface.

3. Add static Route so that only intended host can access the tunnel.

Let’s configure these 3 settings for both routers.

At Router 1 (HQ-Router)

1. Create IPIP tunnel interface:

Fig02: IPIP tunnel interface(to->Branch) creation on HQ-Router

2. Assign IP address to the tunnel interface:

Fig03: Assign IP address to the tunnel interface(to->Branch)

3. Add static Route so that only intended host can access the tunnel:

Fig04: Configure static routing

At Router 2 (Branch-Router)

1. Create IPIP tunnel interface:

Fig05: IPIP tunnel interface(to->HQ) creation on Branch-Router

2. Assign IP address to the tunnel interface:

Fig06: Assign IP address to the tunnel interface(to->HQ)

3. Add static Route so that only intended host can access the tunnel:

Fig07: Configure static routing

Our IPIP tunnel configuration is done! Let’s check whether HQ-PC can ping Branch-PC or not.

Fig08: Testing ping reach-ability

HQ-PC (VPC5) can ping Br-PC(VPC6) and vice versa…

Fig09: validating the IPIP tunnel through tracing the path

Here we can se the HQ-PC(192.168.10.2) can reache Branch-PC(192.168.20.2) vaia IPIP tunnel but ingores the WAN path (INTERNET path).

--

--

No responses yet