Network - Ip v6

Map Of Internet 1973

About

This page talks about the IP address with the IPv6 format.

Example

Below is an example of an Ipv6 address:

2001:41d0:1:1b00:213:186:33:18

IPv4 vs IPv6

The main difference between IPv4 and IPv6 is the number of possible addresses. IPv6 was introduced in 1995 to ensure that the world would not run out anytime soon of IP number.

IP Version Bit Address Space Possible addresses
IPv4 32 4 billion
IPv6 128 <math>3.4 \times 10^{38}</math>

Command

Ping

Network - Ping

  • Linux
ping6 <IP|hostName>
  • Windows
ping -6 example.com

Curl

With curl

  • Ping
curl -gkvLI6 -H 'User-Agent: myProgram' -H 'Accept: */*' -H 'Connection: Close' -H 'Accept-Language: en' -m 30 --connect-timeout 10 https://example.com

Ip

What is a IP Address? A Unique network IDentifier

with the ip command:

ip a
ip -6 addr
ip -6 addr show eth0
ip -6 addr | grep inet6
inet6 ::1/128 scope host 
inet6 2001:123:456:55f::1/64 scope global 
inet6 fe80::62eb:69ff:fed2:d2a6/64 scope link 

Configuration

Without configuration, you would not see the scope global ipv6.

Linux

sysctl -a | grep ipv6.*disable
  • In the output, the value of:
    • 0 indicates that IPv6 is enabled
    • 1 shows that IPv6 is disabled.

The output below shows that IPv6 is enabled.

net.ipv6.conf.all.disable_ipv6 = 0
net.ipv6.conf.default.disable_ipv6 = 0
net.ipv6.conf.eth0.disable_ipv6 = 0
net.ipv6.conf.lo.disable_ipv6 = 0

  • Add the following lines to define the ip and its gateway to the eth0 interface. Replace the IPV6ADDR with you IPv6 value and IPV6_DEFAULTGW with your gateway value
IPV6INIT=yes
IPV6ADDR=2607:5300:201:3100::85b
IPV6_DEFAULTGW=2607:5300:201:3100::1

  • Add a route that goes through the gateway, Replace 2607:5300:201:3100::1 with your gateway
2607:5300:201:3100::1 dev eth0
default via 2607:5300:201:3100::1

  • Restart
service network restart





Discover More
Map Of Internet 1973
AAAA DNS record

A AAAA DNS record maps a domain name to a IPV6 address
Firewalld - How to filter your traffic based on an IP, port or Region?

This page shows you how to filter your traffic based on a IP with firewalld rich rules. where: --permanent means that the rule will be used even after reboot. --add-rich-rule specifies the rich...
Map Of Internet 1973
How to use tracert, the traceroute utility?

tracert is an utility to trace a route: tracert on Windows traceroute on Linux With an Ipv4 address With an Ipv6 address
Map Of Internet 1973
Network - Address (Addressing)

IPv4 is the most common network addressing architecture used, though the use of IPv6 has been growing since 2006. A host is addressed by a node id A process is addressed by a node id and a port ...
Map Of Internet 1973
Network - DNS Lookup (Request|query)

A DNS lookup is a request to a DNS server in order to get DNS record from a DNS name a A query will get you a ipv4 address a AAAA query will get you the ipv6 address a TXT query will get your a...
Map Of Internet 1973
Network - Ping

ping is an ICMP utility that helps you check routing, not access control. inetutils ping for ipv6 prometheus smokeping
Dns Architecture
What is DNS ? The Domain Name System

The Domain Name System (DNS) is a database of name. It's naming system (service). It holds naming information for some kind of object (not only but mainly host) DNS can be seen as the phone book of...
Packet Structure Dns Query
What is IP Packet?

ip packet is the name of a data unit for the network layer (level 3 of the OSI model) (ie IP). packet TCP/IP sends a TCP packet known as segment: which is carried in one or more IP packets by the...
Ipv4
What is IPv4?

ipv4 is the IP at the version 4 because it has 4 bytes.. Example: 172.217.20.110 The host identifier of an IPv4 address is represented: in the form nnn.nnn.nnn.nnn, where nnn is a number...
Public Vs Private Ip Address
What is a IP Address? A Unique network IDentifier

An IP address is: the address of the Internet protocol (IP) that identifies: a single interface with a unicast address or set of interfaces with a multicast address With Ipv4: where:...



Share this page:
Follow us:
Task Runner