Ipv6 Addressing: Md. Manirul Islam
Ipv6 Addressing: Md. Manirul Islam
Introducing IPv6
With an increasing number of Internet users and non-PC devices (e.g. mobile devices) needing IP addresses, the IPv4 address space is becoming depleted. Fortunately, IPv6 dramatically increases the number of IP addresses available. Specifically, IPv6 offers approximately 5*1028 IP addresses for each person on the planet.
Introducing IPv6
IPv6 offers many other benefits, beyond the increased address space:
Simplified header:
IPv4 has a header with twelve fields. IPv6 only needs to use five of those twelve fields.
No broadcasts (avoids broadcast storms) No fragmentation (performs MTU discovery for each session) Can coexist with IPv4 during a transition:
Dual Stack (running IPv4 and IPv6 simultaneously) IPv6 over IPv4 (tunneling IPv6 through and IPv4 tunnel)
IPv6 Address
IPv6 has three types of addresses:
Unicast
A single IPv6 address is applied to a single interface The communication flow can be one-to-one
Multicast
A single IPv6 address (that is, a multicast group) represents multiple devices on a network) The communication flow is one-to-many
Anycast
A single IPv6 address is assigned to multiple devices The communication flows is one-to-nearest (from the perspective of a router's routing table)
IPv6 Addressing
Address format (where X = a hexadecimal digit in the range of 0-F) XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX:XXXX A hexadecimal digit is four bits in size There are eight fields, and each field contains four hexadecimal digits 4 bits per digit * 4 digits per field * 8 fields = 128 bits in a IPv6 address.
IPv6 Addressing
Rules for abbreviating IPv6 addresses: 1. Leading zeros in a field can be omitted. 2. Contiguous fields containing all zeros can be represented with a double colon. (Note: This can only be done once for a single IPv6 address.)
Example: ABCD:0123:4040:0000:0000:0000:000A:000B Using the abbreviation rules, the IPv6 address can be: ABCD:123:4040::A:B
NOTE: Also, the Extended Unique Identifier (EUI-64) format can be used to cause the router to automatically populate the low-order 64 bits of an IPv6 address based on an interface's MAC address.
IPv6 Syntax
Command Router(config)#ipv6 cef Router(config)#ipv6 unicast-routing Router(config-if)#ipv6 address ipv6address|prefix-length [eui-64] Description Configures Cisco Express Forwarding for IPv6 Globally instructs a router to forward IPv6 traffic Assigns an IPv6 address to an interface (Note: The eui-64 option allows a router to complete the low-order 64 bits of an address, based on an interfaces MAC address.) Shows IPv6 configured interfaces
OSPFv3 Characteristics
Maintains several similarities with OSPFv2
Uses a hierarchical structure divided into areas Requires direct connectivity from the backbone area to all other areas. Uses many of the same packet types as OSPFv2 (for example, Hello packets)
OSPFv3 Syntax
Command Router(config-if)#ipv6 ospf process-id area area-id Router(config)#ipv6 router ospf processid Router(config-rtr)#router-id ipv4-address Description Allows the IPv6 address configured on an interface to participate in an OSPFv3 routing process Globally enables an OSPFv3 routing process on a router Specifies an IPv4 address to be used by OSPFv3 as a routers router ID
Allows the IPv6 address configured on a tunnel interface to participate in an OSPFv3 routing process