Use IPIP to open tunnels and speed up network access

Use IPIP to open tunnels and speed up network access

Used to speed up the network.

View the IPIP module:

 modinfo ipip

Start establishing the tunnel:

Note: Here, the public IP of host A is set to 1.1.1.1, and the public IP of host B is set to 2.2.2.2

A host operation:

 ip tunnel add ipip - tunnel mode ipip remote 2.2.2.2 local 1.1.1.1
ifconfig ipip - tunnel 10.0.1.1 netmask 255.255.255.0

Host B operation:

 ip tunnel add ipip - tunnel mode ipip remote 1.1.1.1 local 2.2.2.2
ifconfig ipip - tunnel 10.0.1.2 netmask 255.255.255.0

Then you can ping the intranet IP 10.0.1.1 set by host A on host B to see if it works. If it does, it means the connection is successful.

In addition, a method of directly using the network card configuration file (CentOS system) is introduced:

Host A (/etc/sysconfig/network-scripts/ifcfg-ipip-tunnel)

 DEVICE = ipip-tunnel
ONBOOT = yes
TYPE =IPIP
TTL =255
PEER_OUTER_IPADDR =2.2.2.2
PEER_INNER_IPADDR =10.0.1.2
MY_OUTER_IPADDR =1.1.1.1
MY_INNER_IPADDR =10.0.1.1

Host B (/etc/sysconfig/network-scripts/ifcfg-ipip-tunnel)

 DEVICE = ipip-tunnel
ONBOOT = yes
TYPE =IPIP
TTL =255
PEER_OUTER_IPADDR =1.1.1.1
PEER_INNER_IPADDR =10.0.1.1
MY_OUTER_IPADDR =2.2.2.2
MY_INNER_IPADDR =10.0.1.2

Then start the network card

Reprinted from: https://eqblog.com/ipip-tunnel.html

<<:  GigsGigsCloud: $34.3/month/8GB memory/250GB space/2TB traffic/Singapore/direct connection

>>:  Host4Porn: $9.9/month/3GB RAM/40GB SSD space/6TB bandwidth/1Gbps/KVM/New Jersey

Recommend

[Black Friday] drServer: Dallas KVM VPS, 8GB RAM, 100GB SSD space, $100 per year

drServer, an American hosting company, was founde...

DediStation: $45/year/6GB RAM/50GB SSD space/2TB traffic/OpenVZ/DDOS/UK

DediStation has launched two UK vps with free 80G...

Introduction to 100webspace.com, a US hosting provider

The first time I heard about 100webspace.com was ...

VPSDime: $7/month/6GB RAM/30GB SSD space/2TB bandwidth/10Gbit/OpenVZ/Los Angeles

vpsdime, which has been introduced before, is a v...

BandwagonHost 512MB RAM Los Angeles CN2 KVM VPS Review

Details: BandwagonHost: $19.99/year/512MB memory/...