7.2.7 Lab - View Network Device Mac Addresses
7.2.7 Lab - View Network Device Mac Addresses
Topology
Addressing Table
Device Interface IP Address Subnet Mask Default Gateway
Objectives
Part 1: Configure Devices and Verify Connectivity
Part 2: Display, Describe, and Analyze Ethernet MAC Addresses
Background / Scenario
Every device on an Ethernet LAN is identified by a Layer 2 MAC address. This address is assigned by the
manufacturer and stored in the firmware of the NIC. This lab will explore and analyze the components that
make up a MAC address, and how you can find this information on a switch and a PC.
You will cable the equipment as shown in the topology. You will configure the switch and PC to match the
addressing table. You will verify your configurations by testing for network connectivity.
After the devices have been configured and network connectivity has been verified, you will use various
commands to retrieve information from the devices to answer questions about your network equipment.
Note: The switches used are Cisco Catalyst 2960s with Cisco IOS Release 15.2(2) (lanbasek9 image). Other
switches and Cisco IOS versions can be used. Depending on the model and Cisco IOS version, the
commands available and the output produced might vary from what is shown in the labs.
Note: Make sure that the switches have been erased and have no startup configurations. If you are unsure,
ask your instructor.
Required Resources
• 1 Switch (Cisco 2960 with Cisco IOS Release 15.2(2) lanbasek9 image or comparable)
• 1 PC (Windows with a terminal emulation program, such as Tera Term)
• Console cable to configure the Cisco switch via the console ports
• Ethernet cables as shown in the topology
© 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 8 www.netacad.com
Lab - View Network Device MAC Addresses
© 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 8 www.netacad.com
Lab - View Network Device MAC Addresses
¿Fueron exitosos los pings? Explique.
Ahora no porque el switch no fue configurado.
Step 3: Configure basic settings for the switch.
In this step, you will configure the device name and the IP address, and disable DNS lookup on the switch. a.
Console into the switch and enter global configuration mode.
Open a configuration window.
Switch> enable
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
b. Assign a hostname to the switch based on the Addressing Table.
Switch(config)# hostname S1
c. Disable DNS lookup.
S1(config)# no ip domain-lookup
d. Configure and enable the SVI interface for VLAN 1.
S1(config)# interface vlan 1
S1(config-if)# ip address 192.168.1.2 255.255.255.0
S1(config-if)# no shutdown
S1(config-if)# end
*Mar 1 00:07:59.048: %SYS-5-CONFIG_I: Configured from console by console
© 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 8 www.netacad.com
Lab - View Network Device MAC Addresses
Question:
© 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 8 www.netacad.com
Lab - View Network Device MAC Addresses
IPv4 Address. . . . . . . . . . . : 192.168.1.147(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Friday, September 6, 2019 11:08:36 AM
Lease Expires . . . . . . . . . . : Saturday, September 7, 2019 11:08:36 AM
Default Gateway . . . . . . . . . : 192.168.1.1
<output omitted>
Questions:
What is the OUI portion of the MAC address for this device?
5C-26-0A your answers here.
What is the serial number portion of the MAC address for this device?
24-2A-60your answers here.
Using the example above, find the name of the vendor that manufactured this NIC.
© 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 8 www.netacad.com
Lab - View Network Device MAC Addresses
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/40 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts (0 IP multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
34 packets output, 11119 bytes, 0 underruns
0 output errors, 2 interface resets
0 unknown protocol drops
0 output buffer failures, 0 output buffers swapped out
Question:
¿Por qué la salida muestra la misma dirección MAC dos veces? La dirección MAC se puede cambiar
mediante un comando de software. La dirección real (bia) seguirá estando allí. Se muestra entre
paréntesis.
© 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 8 www.netacad.com
Lab - View Network Device MAC Addresses
b. Another way to display the MAC address on the switch is to use the show arp command. Use the show
arp command to display MAC address information. This command maps the Layer 2 address to its
corresponding Layer 3 address. A sample is shown below. Use output generated by your switch to
answer the questions.
S1# show arp
Protocol Address Age (min) Hardware Addr Type Interface
Internet 192.168.1.2 - 001b.0c6d.8f40 ARPA Vlan1
Internet 192.168.1.3 0 5c26.0a24.2a60 ARPA Vlan1 What
Emita el comando show mac address-table en S1. A continuación se muestra una muestra. Use la salida
generada por su interruptor para responder las preguntas.
S1# show mac address-table
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
All 0100.0ccc.cccc STATIC CPU
All 0100.0ccc.cccd STATIC CPU
All 0180.c200.0000 STATIC CPU
All 0180.c200.0001 STATIC CPU
All 0180.c200.0002 STATIC CPU
All 0180.c200.0003 STATIC CPU
All 0180.c200.0004 STATIC CPU
All 0180.c200.0005 STATIC CPU
All 0180.c200.0006 STATIC CPU
All 0180.c200.0007 STATIC CPU
All 0180.c200.0008 STATIC CPU
All 0180.c200.0009 STATIC CPU
All 0180.c200.000a STATIC CPU
All 0180.c200.000b STATIC CPU
All 0180.c200.000c STATIC CPU
All 0180.c200.000d STATIC CPU
All 0180.c200.000e STATIC CPU
All 0180.c200.000f STATIC CPU
All 0180.c200.0010 STATIC CPU
All ffff.ffff.ffff STATIC CPU
1 5c26.0a24.2a60 DYNAMIC Fa0/6 Total
Mac Addresses for this criterion: 21
Question:
Did the switch display the MAC address of PC-A? If you answered yes, what port was it on?
© 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 8 www.netacad.com
Lab - View Network Device MAC Addresses
Si, el puerto debe ser F0 / 6. Las respuestas variarán para la dirección MAC. En el ejemplo anterior, la
dirección MAC sería 5c26.0a24.2a60.
En una red grande, puede ser más fácil identificar la ubicación y la identidad de un dispositivo por su
dirección MAC en lugar de su dirección IP. El MAC OUI enumerará al fabricante, lo que puede ayudar a
reducir la búsqueda y las medidas de seguridad se pueden aplicar en la capa 2, por lo que se necesita
conocer las direcciones MAC permitidas.
© 2013 - 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 8 www.netacad.com