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

Blog    

Recommend

In the interview, I was asked how the reliability of TCP is guaranteed?

We know that TCP is reliable. Our previous articl...

Cloud empowers new life and Wind River IoT genes are upgraded again

There is a wind power plant abroad that mainly us...

Can 20M Wi-Fi be used as 100M broadband? Let me share some knowledge

Sometimes I hear friends ask such questions: My r...

Eight facts about data center design and construction

This article points out eight facts in data cente...

Programmers' comments on Singles' Day: What is honey to others may be poison to me

In 2016, Tmall’s single-day sales record was 120....