Network models · Fundamentals · Module 3
Devices and the layers they work at · page 2 of 3
Show topologyHide topology
Four devices in a column, joined by three cables. At the top the host H1: its eth0, address ending .10, is cabled to the switch SW1’s Et0/1. SW1’s Et0/0 is cabled to the router R1’s Et0/0, address ending .1. Both of SW1’s cables are one network, 10.0.1.0/24, written on each of them; SW1 itself has no address. R1’s Et0/1, address ending .1, is cabled to the host H2 at the bottom, its eth0 ending .20, in the network 10.0.2.0/24, written on that cable. A legend explains the short forms.
Verify
The address lists of R1 and SW1
Where does R1 get H2’s MAC address for the new frame, and what does SW1 list for H1?
From a list. In its ARP table, R1 keeps its own MAC addresses and those of the neighbors it has reached on its links. A protocol called ARP fills it, and show arp prints it. The computer you are using keeps a list like this too.
R1’s list when everything works, right after H1 pinged H2.
Tap a record, or “Not in the output”, then submit.
Find the MAC address R1 writes as the destination of its frames on H2’s link.
- R1’s own address on Ethernet0/0: Age
-, Hardware Addr aabb.cc00.0900. - H1, 10.0.1.10, on Ethernet0/0: 5254.0000.0110.
- R1’s own address on Ethernet0/1: Age
-, Hardware Addr aabb.cc00.0910. - H2, 10.0.2.20, on Ethernet0/1: 5254.0000.0220.
Full output · 5 lines
R1#show arpProtocol Address Age (min) Hardware Addr Type InterfaceInternet 10.0.1.1 - aabb.cc00.0900 ARPA Ethernet0/0Internet 10.0.1.10 7 5254.0000.0110 ARPA Ethernet0/0Internet 10.0.2.1 - aabb.cc00.0910 ARPA Ethernet0/1Internet 10.0.2.20 0 5254.0000.0220 ARPA Ethernet0/1
Scroll sideways to see the whole output
| Field | Here | Means |
|---|---|---|
| Protocol | Internet | kind of address: IPv4 |
| Hardware Addr | 5254.0000.0220 | the MAC address |
| Type | ARPA | ARPA is Ethernet |
| Interface | Ethernet0/1 | the link it is used on |
The source of each new frame is R1’s own MAC address on the interface it leaves by. Each interface has its own:
R1#show interfaces Ethernet0/0 | include address1 Hardware is AmdP2, address is aabb.cc00.0900 (bia aabb.cc00.0900) Internet address is 10.0.1.1/24
address isaabb.cc00.0900.
This is the source of R1’s frames on H1’s network.
R1#show interfaces Ethernet0/1 | include address1 Hardware is AmdP2, address is aabb.cc00.0910 (bia aabb.cc00.0910) Internet address is 10.0.2.1/24
address isaabb.cc00.0910.
A different address, the source of R1’s frames to H2.
A switch keeps a list too, its MAC address table: which port each MAC address is reached through, learned from the source MAC addresses of the frames that come in. SW1 prints it with show mac address-table dynamic.
On SW1, when everything works:
SW1#show mac address-table dynamic Mac Address Table------------------------------------------- Vlan Mac Address Type Ports---- ----------- -------- -----1 1 5254.0000.0110 DYNAMIC Et0/12 1 aabb.cc00.0900 DYNAMIC Et0/03Total Mac Addresses for this criterion: 2
- 5254.0000.0110, H1’s own MAC address, on Et0/1.
- aabb.cc00.0900, R1’s Ethernet0/0, on Et0/0.
- 2 in all: no entry for H2.
SW1 leaves its own MAC address out of the frames it passes on. Neither list shows an address of SW1’s, though its ports have MAC addresses of their own. Here is the one toward H1:
SW1#show interfaces Ethernet0/1 | include address1 Hardware is Ethernet, address is aabb.cc00.0a10 (bia aabb.cc00.0a10)
address isaabb.cc00.0a10, SW1’s own.
Nor does SW1 need an IP address. Its ports toward R1 and H1 have none:
SW1#show ip interface briefInterface IP-Address OK? Method Status Protocol1Ethernet0/0 unassigned YES unset up up 2Ethernet0/1 unassigned YES unset up up … 3 more lines (see Full output)
Scroll sideways to see the whole output
- Ethernet0/0, toward R1:
unassigned,upandup. - Ethernet0/1, toward H1:
unassigned,upandup.
Full output · 6 lines
SW1#show ip interface briefInterface IP-Address OK? Method Status ProtocolEthernet0/0 unassigned YES unset up up Ethernet0/1 unassigned YES unset up up Ethernet0/2 unassigned YES unset up up Ethernet0/3 unassigned YES unset up up Vlan1 unassigned YES unset administratively down down
Scroll sideways to see the whole output
Key idea
R1’s ARP table, listed by show arp, holds the MAC addresses it writes in each network; SW1’s MAC address table lists the senders of the frames it passed on.