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
6yun, a Chinese merchant, was established in Febr...
drServer, an American hosting company, was founde...
RapidSwitch, a British hosting provider, was foun...
NexusBytes, an American merchant, was founded in ...
DediStation has launched two UK vps with free 80G...
The first time I heard about 100webspace.com was ...
QuickPacket, founded in 2003, is registered in No...
Easy Acceleration CDN, a Chinese merchant, provid...
The first wave of Double 11 activities is here, t...
HOST4FUN, an Indian hosting provider, is owned by...
vpsdime, which has been introduced before, is a v...
server.lu, a subsidiary of root SA, was establish...
Details: BandwagonHost: $19.99/year/512MB memory/...
RAKsmart is a Chinese hosting company that focuse...
NexusBytes, an American merchant, was founded in ...