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

Why 5G won’t replace Wi-Fi 6 at the edge anytime soon

[[419672]] The shift to hybrid work and widely di...

SpikeTel: $2.45/month-1 core AMD EPYC 7402P/1GB/20G SSD/1TB/Hong Kong VPS

SpikeTel is a new merchant, mainly providing Hong...

Hostodo: Las Vegas/Miami NVMe hard drive VPS from $19.99 per year

Hostodo is a foreign VPS hosting company founded ...

Getting to the bottom of HTTP and WebSocket protocols

I was chatting with my boss that day and we menti...

How much do you know about the unlimited traffic trap?

Nowadays, many elderly people use smartphones. Sm...

Cisco ACI original core technology expert reveals the birth of ACI

The official development of ACI began in January ...

Smart Encyclopedia | What is a 400G optical module?

As more and more people use the internet, the amo...