Use IPIP to open tunnels and accelerate network access

888u

Last update at :2024-06-07,Edit by888u

Used to speed up the network.

View IPIP module:

modinfoipip

Start tunnel establishment:

Note: Here the public IP of host A is 1.1.1.1 and the public IP of host B is 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

B host 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

At this time, you can ping the intranet IP 10.0.1.1 set by host A on host B to see if it is connected. If it is the same, it means that it is successfully connected.

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

A host (/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

B host (/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

Recommended site search: cheap cloud server 5 yuan a month, overseas virtual host space, host discount code, public network IP, telecommunications server rental, US vps server, check IP, US free virtual host, asp free space, free forever Cloud server address,

Use IPIP to open tunnels and accelerate network access

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码