xkonekt
Language: EN
  • English
  • Türkçe
  • Español, Coming soon
  • Português, Coming soon
  • Deutsch, Coming soon
  • Français, Coming soon

Network models · Fundamentals · Module 3

Devices and the layers they work at · page 2 of 3

Show topologyHide topology
H1hostSW1switchR1routerH2host10.0.1.0/2410.0.1.0/2410.0.2.0/24eth0Et0/1Et0/0Et0/0Et0/1eth0.10.1.1.20Et0/0 = Ethernet0/0.1 = the last number of the address
Topology · SW1 joins H1 and R1 in one network; R1 joins that network to H2’s.

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.

Output · IOS XE 17.18.2
R1#show arp
  1. R1’s own address on Ethernet0/0: Age -, Hardware Addr aabb.cc00.0900.
  2. H1, 10.0.1.10, on Ethernet0/0: 5254.0000.0110.
  3. R1’s own address on Ethernet0/1: Age -, Hardware Addr aabb.cc00.0910.
  4. 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
What the other fields of H2’s record mean
FieldHereMeans
ProtocolInternetkind of address: IPv4
Hardware Addr5254.0000.0220the MAC address
TypeARPAARPA is Ethernet
InterfaceEthernet0/1the 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:

Output · IOS XE 17.18.2
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
  1. address is aabb.cc00.0900.

This is the source of R1’s frames on H1’s network.

Output · IOS XE 17.18.2
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
  1. address is aabb.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:

Output · IOS XE 17.18.2
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
  1. 5254.0000.0110, H1’s own MAC address, on Et0/1.
  2. aabb.cc00.0900, R1’s Ethernet0/0, on Et0/0.
  3. 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:

Output · IOS XE 17.18.2
SW1#show interfaces Ethernet0/1 | include address1  Hardware is Ethernet, address is aabb.cc00.0a10 (bia aabb.cc00.0a10)
  1. address is aabb.cc00.0a10, SW1’s own.

Nor does SW1 need an IP address. Its ports toward R1 and H1 have none:

Output · IOS XE 17.18.2
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)
  1. Ethernet0/0, toward R1: unassigned, up and up.
  2. Ethernet0/1, toward H1: unassigned, up and up.
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    

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.

In SW1’s MAC address table, why is R1 Ethernet0/0’s MAC address listed but not H2’s?