VPN and Tunnel Concept With IP-in-IP Tunnel Configuration IP-in-IP Tunnel Configuration
VPN and Tunnel Concept With IP-in-IP Tunnel Configuration IP-in-IP Tunnel Configuration
VPN and Tunnel Concept With IP-in-IP Tunnel Configuration IP-in-IP Tunnel Configuration
www.netrotik.com
Presenter Information
Amin Hamidi Younessi
MikroTik Certified Trainer
: amin.younessi
: amin.younessi
: info@netrotik.com , aminyounessi@gmail.com
www.netrotik.com
Presentation topics:
• Fundamentals of VPN technology.
• Benefits of Tunnels.
• Types of Tunnels.
• IP-in-IP configuration between MikroTik and
Cisco Routers.
www.netrotik.com
What is VPN?
• Virtual Private Network.
• VPN transmits data by means of tunneling.
• Both tunnel endpoints need to support the
same protocol.
• Tunneling protocols are operate at either OSI
layer 2 or layer3.
www.netrotik.com
Benefits of Tunnels
• Decrease cost.
• Scalability.
• Confidentiality.
• Authentication.
• Data Integrity.
• Anti-reply.
www.netrotik.com
Two Main Types of Tunnels
• Site-to-site tunnels
www.netrotik.com
Remote access sample
Internet
Central Office:
public: 100.1.1.20/24
PPTP Tunnel Local: 192.168.1.1/24
172.16.1.1/32
172.16.1.2/32
www.netrotik.com
Site-to-site sample
Internet
GRE Tunnel
R1 R2
PC1 PC2
www.netrotik.com
Types of Tunnels:
layer3 tunnel layer 3 tunnel layer 2 tunnel layer 2 tunnel layer2 tunnel
www.netrotik.com
IP-in-IP Tunnel mechanism
• The IPIP tunnel is a simple protocol that
encapsulates IP packets in IP to make a tunnel
between two routers.
A B
IP: 192.168.1.2
IP: 192.168.2.2
GW:192.168.1.1
GW: 192.168.2.1
www.netrotik.com
Steps:
• Configuring the IP addresses
– MikroTik:
– Cisco:
www.netrotik.com
• Add default route:
– MikroTik:
– Cisco:
www.netrotik.com
• Source NAT for direct clients to the internet
– MikroTik :
– Cisco
www.netrotik.com
• IPIP Tunnel configuration:
www.netrotik.com
• Setting IP address on tunnel interface
www.netrotik.com
• Now it’s time to verifying connections
– ping pc A from pc B
www.netrotik.com
• Look at Tunnel Traffic
www.netrotik.com
Summary
www.netrotik.com
Thank you
www.netrotik.com