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
STSDUST, a Chinese merchant, was established in A...
Bricklayer Black Friday permanent 10% discount ht...
RAKsmart, a Chinese hosting provider, focuses on ...
BitTorrent technology can realize the direct shar...
Dedicated Panda, an American hosting company, is ...
Uovz, a Chinese hosting company, has been introdu...
NameCheap, a very good domain name registrar, is ...
Buana is a foreign merchant that mainly provides ...
This code can block domestic IP. Of course, by ch...
HostSailor, a regular company in Romania, release...
Uovz, a Chinese hosting provider, was previously ...
LeCloud CDN, a subsidiary of LeCloud, has CDN lin...
1GServers, an American hosting provider, was esta...
Cloudflare has launched a new paid image storage ...
FxTransit, a Chinese merchant, mainly provides KV...