Let's talk about IPv4 to IPv6 tunnel

Let's talk about IPv4 to IPv6 tunnel

[[273990]]

When is IPv6 tunneling used?

Connect to a pure IPv6 network, such as some campus network PT stations

When used on a server, you can add an AAAA record to your server directly, and users with pure IPv6 (such as domestic education networks) can directly access your server.

Intranet penetration: others can directly penetrate into the intranet using IPv6 addresses

Tutorial

1. Register Tunnel Broker

Registration is relatively simple, so the process is omitted


2. Create a tunnel

Click Create Regular Tunnel



Configuring the Client

Select Example Configurations


Select the system type. Here we use CentOS. If there is no system type, select Linux-net-tools.


Execute the above command on the server


The configuration generated at this time will become invalid after restarting the server. If you want the tunnel configuration to take effect after booting, you need the following configuration:

  1. # echo "sit1 ::/0" >/etc/sysconfig/ static -routes-ipv6
  2. # cat>/etc/sysconfig/network-scripts/ifcfg-sit1<<EOF
  3. DEVICE=sit1
  4. ONBOOT=yes
  5. IPV6INIT=yes
  6. IPV6TUNNELIPV4=66.220.18.42
  7. IPV6ADDR=2001:470:c:113a::2/64
  8. EOF
  9. # sed -i 's/^NETWORKING_IPV6.*/NETWORKING_IPV6=yes/' /etc/sysconfig/network

test:

Remember to ping the accessible domestic IPv6 addresses, such as Tsinghua University's:

<<:  The principle of Ethernet data transmission is like this, it is worth collecting

>>:  How to stress test network traffic?

Recommend

【Funny story】An attack launched by a network cable

Not long after I entered college, I encountered a...

The Changing Data Center: The Impact of Network Costs

As data center infrastructure adopts artificial i...

...

Comprehensively promote IPv6 and completely change network life

If you have been following the developments in ne...

Shandong issues six standards for e-government cloud platform construction

Recently, Shandong issued six standards in the fi...