Skip to content
Portfolio

Ipv6

Ipv6 uses a 128 bit address
The address is written as X:X:X:X:X:X:X:X
Each segment is 16 bits

  • Leading zeros in each field can be removed
  • Successive all zero fields can be shortened to ’::’, but only once in an address

Equivalent to public Ipv4 addresses. Routable on the internet. Prefix: 2000::/3

Equivalent to private Ipv4 addresses Prefix: fc00::/7

Mandatory on every IPv6-enabled interface. Used for communication only on the local subnet (link) and will not be forwarded by a router. Prefix: fe80::/10

Used to test the local TCP/IP stack Address: ::1/128

Used when a device does not yet have an IP address Address: ::/128 (or 0:0:0:0:0:0:0:0)

Always begin with ff00::/8. Key multicast addresses to memorize:

  • All-Nodes Multicast: ff02::1(Replaces Ipv4 broadcast; reaches all Ipv6 devices on the link)
  • All-Routers Multicast: ff02::2(Replaces 224.0.0.2; reaches all IPv6 routers on the link)
  • Solicited-Node Multicast: Starts with ff02::1:ff00:0/104followed by the last 24 bits of the interface’s unicast address. Used in Neighbor Discovery.
AddressPurposeIPv4 Equivalent
FF02::1All IPv6 Nodes255.255.255.255 (Broadcast)
FF02::2All IPv6 RoutersN/A
FF02::5OSPFv3 All Routers224.0.0.5
FF02::6OSPFv3 DR/BDR Routers224.0.0.6
FF02::9RIPng (RIP Next Generation)224.0.0.9
FF02::AEIGRP for IPv6224.0.0.10

Assigned to multiple devices. A packet sent to an anycast address is delivered to the topologically closest device listening to that Address

R1(config)# ipv6 unicast-routing
R1(config-if)# ipv6 add 2001: db8:0:1::1/64
R1# sh ipv6 interface brief

A Cisco router can generate full IPv6 address for itself when given the interface and /64 network to use.
The host portion of the address is derived from the interface’s MAC address.
A MAC address is /48 compared to the /64 host portion of the IPv6 address.
FE:FE is injected in the middle of the /48 MAC address to bring it up to 64 bits. Also the 7th bit is inverted.

R1 (config)#int f0/0
R1 (config-if)#ipv6 address 2001:db8:0:1::/64 eui-64
R1 (config)#int f2/0
R1 (config-if)#ipv6 address 2001: db8:0::/64 eui-64

They are not publicly reachable
They are assigned from the range FCOO::/7

They are automatically generated with EUI-64, but it can be overridden with manual configuration

A device can configure its own GUA without a DHCP server. The device learns the /64 network prefix from the router. It generates its own 64-bit interface ID

  • Stateless DHCPv6: The device uses SLAAC to get its IP address but contacts the DHCPv6 server just to get extra information, like DNS server address.
  • Stateful DHCPv6: Works exactly like DHCPv4.

Neighbor Discovery is the IPv6 version of ARP
Rather than using ARP requests and replies, Neighbor Discovery uses ICMP Neighbor Solicitations and Neighbor Advertisements.
Neighbor Solicitation messages are sent to the Solicited-Node multicast address which reaches all hosts on the subnet.

Message types:

  • Router Solicitation(RS) -> Sent by a host to find routers on the link
  • Router Advertisement (RA) -> Sent by a router to provide network prefix and configuration flags to hosts
  • Neighbor Solicitation(NS) -> Sent by a node to determine the MAC address of another node
  • Neighbor Advertisement(NA) -> The response to an NS, providing the requested MAC address
  • DAD (Duplicate Address Detection) -> A process where a device sends a NS for its own newly generated IPv6 address to ensure no one else on the network is using it.