Module 12 - IPv^ Addressing

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/40

encourage image

There's no tags or description

Looks like no tags are added yet.

41 Terms

1
New cards

Benefits of IPv6 - Why IPv4 Is Being Replaced

  • IPv4 is "running out of addresses" (address exhaustion); the instructor mentions a projected exhaustion date around 2020 (Africa referenced) and says we've pretty much exhausted the IPv4 addresses

  • IPv4 has been stretched with workarounds: converting/translating addresses (NAT) and expanding addresses with port numbers

  • This shortage is the reason we need to move to IPv6


2
New cards

Benefits of IPv6 - Larger Address Space

  • IPv6 uses 128 bits for the addressing space instead of IPv4's 32 bits

  • Going from 32 to 128 bits increases the number of available addresses exponentially

  • IPv4 and IPv6 are coexisting right now and will transition over the next several years; the end goal is IPv6 on the entire network


3
New cards

Benefits of IPv6 - Easier and "Wasteful Again"

  • IPv6 looks more complicated (32 to 128 bits) but is actually easier, because we no longer have to conserve every address and be as efficient as possible; we get to be "wasteful again"
  • IPv6 was designed with subnetting in mind: a separate 16-bit Subnet ID field in the global unicast address is used to create subnets, and every subnet gets a /64 no matter how many hosts it needs
  • IPv6 has no broadcast address (replaced by multicast, e.g. all nodes multicast, and anycast) and uses prefix length (slash notation) instead of subnet masks
4
New cards

3 Ways IPv4 and IPv6 Can Coexist - Overview

  • There are three different ways IPv4 and IPv6 networks can coexist on the same network; these are called migration techniques (how we move from IPv4 to IPv6)
  • The three techniques: dual stack, tunneling, and translation (NAT64)
  • Tunneling and translation are for transitioning to native IPv6 and should only be used where needed; the goal is IPv6 for the entire network eventually
5
New cards

3 Ways IPv4 and IPv6 Can Coexist - Dual Stack

  • Devices run IPv4 and IPv6 at the same time (the instructor says "double stack")
  • Basically like running two separate networks side by side, with the device doing both
6
New cards

3 Ways IPv4 and IPv6 Can Coexist - Tunneling

  • Example scenario: the serial connection between two networks stays IPv4 because it only needs two addresses, so there's no reason to change it yet
  • The IPv6 packet is encapsulated inside an IPv4 packet to travel across the IPv4 network
  • At the other router the IPv4 packet is stripped off and the IPv6 packet inside is delivered; the IPv6 packet is sent over a "tunnel" to the other IPv6 network
7
New cards

3 Ways IPv4 and IPv6 Can Coexist - Translation (NAT64)

  • Called NAT64 ("NAT six-four"); the instructor says "NAT six four" rather than "sixty-four" because it translates from IPv6 to IPv4
  • Allows IPv6-enabled devices to communicate with IPv4-enabled devices
  • Uses a translation technique similar to NAT, translating one address into another address
8
New cards

IPv6 Address Format - Representation

  • IPv6 addresses are 128 bits and are written in hexadecimal
  • The colons are only a representation for our eyes; the computer only sees the bits/hex digits. Some formats show periods instead of colons, so know which format you're being shown
  • IPv6 is not case sensitive (upper or lower case hex are both fine), but watch for fill-in-the-blank questions that specify a case
9
New cards

IPv6 Address Format - Preferred Format

  • The preferred format is x:x:x:x:x:x:x:x, where each x is a hextet (four hexadecimal characters = 16 bits)
  • Each hextet is separated by a colon
  • There are 8 hextets, and 8 x 16 bits = 128 bits
10
New cards

IPv6 Address Format - Bits and Hex Math

  • Binary-to-hex conversion: 4 binary digits (bits) correspond to 1 hexadecimal character
  • 4 bits x 4 hex characters = 16 bits per hextet
  • 8 hextets x 16 bits = 128 bits total
11
New cards

IPv6 Address Format - Prefix Length

  • Written in slash notation and indicates the number of network (prefix) bits; same idea as a subnet mask, but IPv6 does not use subnet masks
  • The prefix length indicates the network portion of the address and can range from 0 to 128
  • Recommended prefix length is /64, which is half: 4 hextets for the prefix and 4 hextets for the interface (the reason is covered under the 3 parts of an IPv6 address)
12
New cards

IPv6 Address Format - Rule 1: Omit Leading Zeros

  • Leading zeros (a zero at the beginning of a hextet) can be eliminated and the value stays the same; decimal analogy: 016 = 16
  • Only leading zeros can be dropped, never trailing zeros: 160 is not 16, because the trailing zero has value from its position
  • The result is the address "with no leading zeros"; a hextet that is entirely zeros is still shown as a single 0
13
New cards

IPv6 Address Format - Rule 2: Double Colon (::)

  • A double colon (::) can replace a single string of contiguous all-zero hextets
  • It can only be used ONE time per address, and should be used where it eliminates the most zeros possible (example: replace the three all-zero hextets rather than a lone single zero hextet, giving 1111::200)
  • A lone all-zero hextet is left as a 0 (it can't take a second ::)
14
New cards

IPv6 Address Format - Why :: Only Once

  • The address must be able to be put back the way it was
  • Two :: in an address would make it impossible to know how many zero hextets each one replaced
  • With a single ::, count the hextets shown and subtract from 8 (there are always 8 total); the difference is how many all-zero hextets the :: stands for
15
New cards

Hextet

  • "Hextet" is the unofficial term for a 16-bit segment, i.e. four hexadecimal values
  • Each hex character = 4 bits, so 4 hex characters = 16 bits per hextet
  • An IPv6 address has 8 hextets (8 x 16 = 128 bits), separated by colons
16
New cards

Anycast Address - Definition

  • Anycast is one of the three IPv6 address categories (unicast, multicast, anycast)
  • An anycast address is any IPv6 unicast address that can be assigned to multiple devices
  • A packet sent to an anycast address is routed to the nearest device that has that address (the first one it gets to)
17
New cards

Anycast Address - Related Address Types and Broadcast

  • Unicast: uniquely identifies an interface on an IPv6-enabled device (just like IPv4)
  • Multicast: sends a single IPv6 packet to multiple destinations that have subscribed to the multicast group (or to a default/well-known group)
  • IPv6 has no broadcast address (the instructor brings this up when introducing anycast); the all-nodes multicast does basically the same thing
18
New cards

Global Unicast Address (GUA) - Basics

  • One of the two types of unicast address (the other is link-local); the GUA is publicly routable, like a public/global IPv4 address, and can go out on the Internet
  • Globally unique: every GUA on the Internet has to be different, no duplicates; routable on the IPv6 Internet
  • Currently only GUAs starting with the first three bits 001 are in use, i.e. 2000::/3 (a /3 means the first three bits); available GUAs begin with a decimal/hex 2 or 3
19
New cards

Global Unicast Address - Static Configuration on Router

  • Most IPv6 configuration and verification commands are the same as IPv4 with "ipv6" in place of "ip"
  • Example: enter the interface (GigabitEthernet 0/0), use the ipv6 address command with the address and /prefix-length (slash, not a subnet mask), then no shutdown to activate the interface
  • The router interface's GUA or LLA can be used as the host's default gateway
20
New cards

Global Unicast Address - Static Configuration on Host

  • Manually set the IPv6 address in the TCP/IP IPv6 settings: IPv6 address, prefix length (typed as a number without the slash, in separate boxes), and default gateway
  • Host and default gateway are in the same network (same /64) but each has its own different interface ID
  • Best practice is to use the router's link-local address as the default gateway; the lecture slide example used a global unicast address instead
21
New cards

Global Unicast Address - Multiple Addresses and Removing Mistakes

  • An interface can have more than one GUA
  • Unlike IPv4, re-entering the ipv6 address command does not replace the old address; both are kept
  • To fix a wrongly configured address, first remove it with "no ipv6 address …" then enter the correct one; otherwise Packet Tracer counts it wrong because the bad address is still there
22
New cards

Link-Local Address (LLA) - Basics

  • Required for every IPv6-enabled device/interface; allows communication with other IPv6 devices on the same link (same subnet) only
  • Not routable on the Internet and confined to a single link; packets with an LLA source or destination cannot be routed and stop at the router. Similar to a private IPv4 address (instructor's analogy)
  • LLAs are in the FE80::/10 range; if not configured manually, the device automatically creates one
23
New cards

Link-Local Address - Manual Configuration

  • Can be configured manually so it is easier to remember (auto-generated ones can be "as long as your arm")
  • Use the ipv6 address command with the address and the keyword link-local at the end (it's hyphenated)
  • An interface can have two addresses configured: a GUA and the LLA (the lecture example shows both on one interface)
24
New cards

Link-Local Address - Dynamic Creation

  • All IPv6 interfaces must have an LLA; unlike GUAs, LLAs can be configured dynamically
  • Built from the FE80::/10 prefix plus an interface ID made with EUI-64 or a randomly generated 64-bit number (same as with GUAs)
  • An OS such as Windows typically uses the same method for its SLAAC-created GUA and its dynamic LLA, so they share characteristics (if random, the same random number is used)
25
New cards

Link-Local Address - Cisco Routers and Verification

  • Cisco routers automatically create an IPv6 LLA whenever a GUA is assigned to the interface; by default Cisco uses EUI-64 (while Windows uses random), which is why we have to learn it
  • Example: when the interface comes up, the router generates an LLA by taking the MAC address, splitting it in half, inserting FFFE, and flipping the seventh bit
  • Verify with show ipv6 interface brief (transcript says "show IP interface brief"); practice the syntax checker exercises before the lab
26
New cards

3 Parts of an IPv6 Address - Overview and Order

  • A GUA has three parts: Global Routing Prefix, Subnet ID, Interface ID, always in this order (a likely test question); the lengths can vary
  • Global Routing Prefix + Subnet ID = network portion; Interface ID = host portion in IPv4 terms
  • Most cases use a /64 prefix, which leaves 64 bits for the interface ID (strongly recommended)
27
New cards

3 Parts of an IPv6 Address - Global Routing Prefix

  • The prefix/network portion of the address assigned by the provider (e.g. an ISP); varies depending on which ISP you use
  • In the lecture example it is 48 bits: 2001:DB8:ACAD::/48
  • It is the same for all subnets in the organization
28
New cards

3 Parts of an IPv6 Address - Subnet ID

  • The area between the global routing prefix and the interface ID; used by the organization to identify subnets within its own network
  • It is 16 bits (48-bit prefix + 16-bit subnet ID + 64-bit interface ID), giving a /64 for each network
  • Only the subnet ID is incremented in hex (0, 1, 2 … 9, A … F, then 10, 11, …), creating 65,536 subnets; the lecture says each has 65,536 addresses (note: a /64 actually holds 2^64 interface IDs)
29
New cards

3 Parts of an IPv6 Address - Interface ID

  • Equivalent to the host portion of an IPv4 address and must be unique
  • With a /64 prefix, 64 bits are left for the interface ID
  • Can be set statically, generated by EUI-64 or randomly (SLAAC), or supplied by DHCPv6; host and default gateway each have their own interface ID
30
New cards

3 Parts of an IPv6 Address - Subnetting Example

  • Prefix 2001:DB8:ACAD::/48 is given by the ISP; each network gets its own subnet ID: ACAD:1, ACAD:2, ACAD:3 (serial link), ACAD:4, ACAD:5, each /64 even if few hosts are needed
  • Router interfaces: G0/0/0 on the :1 subnet, G0/0/1 on the :2 subnet, and the serial interface on the :3 subnet, each using the first interface ID (::1)
  • Same process as IPv4 (one interface per network) but easier, because we can be wasteful again
31
New cards

SLAAC - Overview

  • Everything we can do manually we can also do dynamically; devices get a GUA dynamically through ICMPv6 messages
  • SLAAC lets a device configure its own GUA without a DHCPv6 server (the instructor jokes about "slack", being slack and letting everything happen automatically)
  • The device gets the prefix and prefix length from the router advertisement (RA) from the local router, then makes its own interface ID
32
New cards

SLAAC - RS and RA Messages (ICMPv6)

  • Router Solicitation (RS): sent by hosts asking "who are the IPv6 routers out there?"
  • Router Advertisement (RA): sent by routers to tell hosts how to get their GUA, plus network prefix, prefix length, default gateway address, DNS address, and domain name
  • The RA can suggest three methods: SLAAC, SLAAC with stateless DHCPv6, or stateful DHCPv6
33
New cards

SLAAC - Interface ID Generation

  • The prefix comes from the RA; the device uses EUI-64 or a random 64-bit generation method to create the interface ID
  • The interface ID must be unique
  • The client generates it itself; it is not given by a DHCPv6 server
34
New cards

SLAAC and Stateless DHCP - How It Works

  • The RA tells devices to use SLAAC to create their own IPv6 GUA
  • The router's link-local address (the RA source address) is used as the default gateway
  • A stateless DHCPv6 server supplies the DNS server and domain name only, not GUA info; some info is auto-generated and some comes from the DHCP server
35
New cards

Stateful DHCP

  • The RA tells the device not to listen to the router and to get all information from the DHCPv6 server (stateful only); similar to DHCP for IPv4
  • The device receives the GUA, prefix length, DNS server address (and DHCP server address) from DHCPv6
  • The RA still suggests using the router's link-local address (the RA source address) as the default gateway; the stateful DHCPv6 server gives the GUA, DNS server, domain name, and other needed info, so much more info comes from the DHCP server
36
New cards

EUI-64 - Purpose

  • Used when the RA says SLAAC or SLAAC with stateless DHCP: the client must generate its own interface ID (the DHCPv6 server doesn't give it)
  • Interface ID is made with the EUI-64 process (Extended Unique Identifier, the "modified EUI-64" process) or a randomly generated 64-bit number
  • 64 bits are left after the prefix and subnet ID; the MAC address is only 48 bits, so bits are left over to fill
37
New cards

EUI-64 - Process

  • Split the 48-bit MAC address in half (not added to the front or end); example: FC9947 | 75CEE0
  • Insert FFFE in the middle: FC9947 FFFE 75CEE0
  • Flip the seventh bit from 0 to 1, changing FC to FE, giving FE99:47FF:FE75:CEE0; this makes a unique interface ID since MACs are unique
38
New cards

EUI-64 - Random Alternative and DAD

  • Depending on the OS, a device may use a randomly generated interface ID instead of EUI-64; beginning with Windows Vista, Windows uses random, while Cisco routers use EUI-64
  • Because a random ID could by chance already be in use, Duplicate Address Detection (DAD) is used
  • DAD: the device sends something like an ARP request for its own address; if nothing comes back, nobody else is using it
39
New cards

All Nodes Multicast (FF02::1)

  • FF02::1 is the all-nodes multicast group; includes all IPv6-enabled devices
  • A packet sent to this group is received and processed by all IPv6 interfaces on the link/network
  • IPv6 has no broadcast address; all-nodes multicast basically does the same thing
40
New cards

Multicast Context (Well-Known Multicast)

  • Multicast addresses have the prefix FF00::/8; there are two types: well-known and solicited-node
  • Multicast addresses can only be destination addresses, never source addresses (a source must be a single device)
  • Well-known multicast addresses are assigned and reserved for specific purposes; two common groups are all nodes (FF02::1) and all routers (FF02::2)
41
New cards

All Routers Multicast (FF02::2)

  • FF02::2 is the all-routers multicast group; all IPv6 routers join it, and it reaches all IPv6 routers on the network
  • A router becomes a member when it is enabled as an IPv6 router with the ipv6 unicast-routing global configuration command
  • You'll see this in action in your labs