ICS26014_Module09
ICS26014_Module09
Module Objectives
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 3
INSTITUTE
COLLEGE OF INFORMATION
OF INFORMATION AND AND COMPUTING
COMPUTING SCIENCES
SCIENCES
MAC and IP
Destination on Same Network
There are two primary addresses assigned to a device on an Ethernet LAN:
• Layer 2 physical address (the MAC address) – Used for NIC to NIC communications
on the same Ethernet network.
• Layer 3 logical address (the IP address) – Used to send the packet from the source
device to the destination device.
Layer 2 addresses are used to deliver frames from one NIC to another NIC on the same
network. If a destination IP address is on the same network, the destination MAC address
will be that of the destination device.
INSTITUTE
COLLEGE OF INFORMATION
OF INFORMATION AND AND COMPUTING
COMPUTING SCIENCES
SCIENCES
MAC and IP
Destination on Remote Network
When the destination IP address is on a remote network, the destination MAC address is
that of the default gateway.
• ARP is used by IPv4 to associate the IPv4 address of a device with the MAC address of
the device NIC.
• ICMPv6 is used by IPv6 to associate the IPv6 address of a device with the MAC
address of the device NIC.
9.2 ARP
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 6
INSTITUTE
COLLEGE OF INFORMATION
OF INFORMATION AND AND COMPUTING
COMPUTING SCIENCES
SCIENCES
ARP
ARP Overview
A device uses ARP to determine the
destination MAC address of a local
device when it knows its IPv4 address.
C:\Users\PC> arp -a
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 12
INSTITUTE
COLLEGE OF INFORMATION
OF INFORMATION AND AND COMPUTING
COMPUTING SCIENCES
SCIENCES
IPv6 Neighbor Discovery
IPv6 Neighbor Discovery Messages
IPv6 Neighbor Discovery (ND) protocol provides:
• Address resolution
• Router discovery
• Redirection services
• ICMPv6 Neighbor Solicitation (NS) and Neighbor Advertisement (NA)
messages are used for device-to-device messaging such as address
resolution.
• ICMTPv6 Router Solicitation (RS) and Router Advertisement (RA) messages
are used for messaging between devices and routers for router discovery.
• ICMPv6 redirect messages are used by routers for better next-hop selection.
INSTITUTE
COLLEGE OF INFORMATION
OF INFORMATION AND AND COMPUTING
COMPUTING SCIENCES
SCIENCES
IPv6 Neighbor Discovery
IPv6 Neighbor Discovery – Address Resolution
• IPv6 devices use ND to resolve
the MAC address of a known
IPv6 address.
• ICMPv6 Neighbor Solicitation
messages are sent using
special Ethernet and IPv6
multicast addresses.
9.4 Module Practice and Quiz
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 15
INSTITUTE
COLLEGE OF INFORMATION
OF INFORMATION AND AND COMPUTING
COMPUTING SCIENCES
SCIENCES
Module Practice and Quiz
What did I learn in this module?
• Layer 2 physical addresses (i.e., Ethernet MAC addresses) are used to deliver the data link frame with the encapsulated IP packet from one
NIC to another NIC on the same network.
• If the destination IP address is on the same network, the destination MAC address will be that of the destination device.
• When the destination IP address (IPv4 or IPv6) is on a remote network, the destination MAC address will be the address of the host default
gateway (i.e., the router interface).
• An IPv4 device uses ARP to determine the destination MAC address of a local device when it knows its IPv4 address.
• ARP provides two basic functions: resolving IPv4 addresses to MAC addresses and maintaining a table of IPv4 to MAC address mappings.
• After the ARP reply is received, the device will add the IPv4 address and the corresponding MAC address to its ARP table.
• For each device, an ARP cache timer removes ARP entries that have not been used for a specified period of time.
• IPv6 does not use ARP, it uses the ND protocol to resolve MAC addresses.
• An IPv6 device uses ICMPv6 Neighbor Discovery to determine the destination MAC address of a local device when it knows its IPv6 address.
INSTITUTE
COLLEGE OF INFORMATION
OF INFORMATION AND AND COMPUTING
COMPUTING SCIENCES
SCIENCES
Let’s play