How to configure basic IPv6 addresses? Learn in one minute

How to configure basic IPv6 addresses? Learn in one minute

1. Understanding IPv6

IPv6 increases the address length of IPv4 from 32 bits to 128 bits. IPv6 address types: unicast (one-to-one), anycast (one to nearest), multicast (one to many), and there is no concept of broadcast. IPv6 address format: IPv6 address is represented as a series of 16-bit fields, divided into 8 fields, each field is converted into hexadecimal numbers, and the fields are separated by colons. Double colons can be used to represent these consecutive fields with values ​​​​of 0. This can be done at the beginning, middle, and end of the address, but it can only be used once in each address. IPv6 prefix: used to distinguish networks, such as 2001:1::1/16.

[[283803]]

2. IPv6 address classification

An IPv6 address is a 128-bit identifier for a single or group of interfaces. In IPv4, IP addresses are divided into five categories: A, B, C, D, and E. IPv6 breaks through the IPv4 category division and is mainly divided into three types of addresses: unicast address, multicast address, and anycast address. The introduction of each type of address is as follows:

  • Unicast address: A unicast address acts as a single interface identifier. IPv6 packets sent to a unicast address are delivered to the interface identified by that address. Corresponds to the common public and private addresses of IPv4;
  • Multicast address: A multicast address is a set of identifiers. The behavior/interface of a multicast address may belong to different sets of nodes. IPv6 packets sent to a multicast address are delivered to multiple interfaces;
  • Anycast address: An identifier for a group of interfaces (usually belonging to different nodes). Packets sent to an Anycast address are sent to one of the interfaces identified by the address (the one with the closest distance measured by the routing protocol).

3. IPv6 address configuration

Configuration on R101:

  1. Router#conf t  
  2. Router(config)#hostname R101  
  3. R101(config)#int s0  
  4. R101(config-if)#ipv6 add 2001:0:0:0:0:0:ABCD:0001/64 /Assign an IPV6 address to the interface  
  5. R101(config-if)#no shut

Configuration on R102:

  1. Router#conf t  
  2. Router(config)#hostname R102  
  3. R102(config)#int s0  
  4. R102(config-if)#ipv6 add 2001::ABCD:2/64  
  5. R102(config-if)#clock rate 64000  
  6. R102(config-if)#no shut

Testing and viewing of IPv6:

Check:

  1. R101#show ipv6 interface brief

<<:  Do you really understand API Gateway? This article explains the differences and integration between microservice gateway and enterprise application gateway

>>:  Five communication methods between processes required for interviews

Recommend

Two questions to easily understand Riverbed's 2018 and 2019

[51CTO.com original article] Recently, Riverbed h...

Operators are ready for the cloud computing market in 2019!

After nearly a decade of deployment in the cloud ...

Starlink Internet service users exceed 10,000

SpaceX's satellite internet service has been ...

What impact will 5G have on us?

1. First of all, it is clear that fiber optic tra...

How to configure PoE switch settings with NVR?

All modern video networks use IP cameras. IP came...

Charter to spend $442 million to boost broadband coverage

Charter Communications Inc, which provides intern...

Let’s talk about how 5G applications can empower thousands of industries

​Based on the transmission characteristics of lar...

Network literacy post: Fix the missing gateway address in 10 seconds

A few days ago, I received a request for help fro...

Benefits of 5G for IoT

While IoT devices aren’t the ones that will benef...

The Legend of Network Protocol (III): The Glorious Family Goes East and West

TCP/IP is the most widely used network protocol f...