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

Cloud services are becoming the dominant force in enterprise network traffic

Cloud services are accounting for an increasing p...

How to make the audit of data center assets more efficient?

Everyone has their responsibilities, but what to ...

Miss 5G's "Martial Arts Competition to Win a Husband"

Xiao Z: Ladies and gentlemen, welcome to our Miss...

Smart home, a bone that will eventually be chewed by NB-IoT?

As for the huge scale of the smart home market, w...

Dubbo 3.0? No! RSocket is the eternal god

[[411111]] background The hottest topic in the do...

IPv4 scarcity threatens Internet development

RIPENCC, the regional internet registry for Europ...

The beauty of 5G phone is like being in your ear

[[352290]] This article is reprinted from the WeC...