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

A white-label vendor's perspective: The evolution of minimalist switch NOS

Traditional switch operating systems (NOS) are a ...

What kind of report card have we submitted one year after 5G licensing?

Time flies, and in the blink of an eye, it has be...

Wi-Fi 6 Development Status and Future Application Trends

Connections are given more profound value in the ...

How does Spanning Tree Protocol prevent network loops and ensure security?

Spanning Tree Protocol (STP) is one of the key me...

[5G Encyclopedia] How does 5G implement TDD?

The theme of this issue of 5G Encyclopedia is: Ho...

Here is everything you want to know about 5G progress and next steps

The progress of 5G has always been a key topic of...

Gcore (gcorelabs) Russian Vladivostok VPS simple test

It has been a while since I shared information ab...

Interview Question Series: 12 Deadly Questions on Network

1. What is your understanding of the TCP/IP four-...