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 3 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.

Troubleshoot

Follow the frame to the fault

R1 sends a packet, and nothing comes back. Which device along the frame’s path stops it?

A packet crosses one device after another, in a new frame after each router. Each device’s interface outputs cover only its own side: a router shows its own interfaces, a switch its own ports. Follow the frame device by device, and check each one’s list.

SW1’s show interfaces status prints one line per port. When everything works, it reads:

Output · IOS XE 17.18.2
SW1#show interfaces status Port         Name               Status       Vlan       Duplex  Speed Type1Et0/0                           connected    1            full   auto 10/100/1000BaseTX2Et0/1                           connected    1            full   auto 10/100/1000BaseTX… 2 more lines (see Full output)
  1. Et0/0, toward R1: connected.
  2. Et0/1, toward H1: connected.
Full output · 6 lines
SW1#show interfaces status Port         Name               Status       Vlan       Duplex  Speed TypeEt0/0                           connected    1            full   auto 10/100/1000BaseTXEt0/1                           connected    1            full   auto 10/100/1000BaseTXEt0/2                           connected    1            full   auto 10/100/1000BaseTXEt0/3                           connected    1            full   auto 10/100/1000BaseTX

An entry in R1’s ARP table need not be learned, because someone can type one in. A typed entry is permanent, so it stays until it is removed.

What show interfaces status and show arp say
OutputValueMeansLook next
show interfaces statusconnectedport up at layer 1show mac address-table dynamic, the host’s MAC on that port
show interfaces statusdisabledport turned off with shutdownshow logging | include LINK|LINEPROTO
show arp Agea numberlearned entry; age in minutesthe Hardware Addr
show arp Age-a local address or an entry someone typed inthe Address column
Two settings that decide where a frame can go
CommandWhat it doesDefaultWhere you see the result
arp <ip-address> <mac-address> ARPA / no arp …adds a permanent entry / removes itnoneshow arp
shutdown / no shutdownturns a port off / onon (switch port)show interfaces status

Case 1 of 2.H1 cannot be reached

  1. Case 1 · Symptom

    R1 tests H1, and no test packet gets a reply.

    Output · IOS XE 17.18.2
    R1#ping 10.0.1.10Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.0.1.10, timeout is 2 seconds:.....1Success rate is 0 percent (0/5)
    1. 0/5: not one reply.
  2. Case 1 · Command

    R1 is one end of H1’s path, so look one device further, at SW1’s port toward H1. On SW1:

  3. Case 1 · Output

    Output · IOS XE 17.18.2
    SW1#show interfaces status Port         Name               Status       Vlan       Duplex  Speed Type1Et0/0                           connected    1            full   auto 10/100/1000BaseTX2Et0/1                           disabled     1            full   auto 10/100/1000BaseTX… 2 more lines (see Full output)
    1. Et0/0, toward R1: connected.
    2. Key line Et0/1, toward H1, reads disabled, so the port is turned off.
    Full output · 6 lines
    SW1#show interfaces status Port         Name               Status       Vlan       Duplex  Speed TypeEt0/0                           connected    1            full   auto 10/100/1000BaseTXEt0/1                           disabled     1            full   auto 10/100/1000BaseTXEt0/2                           connected    1            full   auto 10/100/1000BaseTXEt0/3                           connected    1            full   auto 10/100/1000BaseTX
  4. Case 1 · How far it reaches

    To see how far the fault reaches, check R1’s own interfaces and its list, and run a test to H2.

    Output · IOS XE 17.18.2
    R1#show ip interface briefInterface              IP-Address      OK? Method Status                Protocol1Ethernet0/0            10.0.1.1        YES TFTP   up                    up      Ethernet0/1            10.0.2.1        YES manual up                    up      … 2 more lines (see Full output)
    1. Ethernet0/0, toward SW1: up and up. R1’s own cable to SW1 works.
    Full output · 5 lines
    R1#show ip interface briefInterface              IP-Address      OK? Method Status                ProtocolEthernet0/0            10.0.1.1        YES TFTP   up                    up      Ethernet0/1            10.0.2.1        YES manual up                    up      Ethernet0/2            unassigned      YES unset  administratively down down    Ethernet0/3            unassigned      YES unset  administratively down down    
    Output · IOS XE 17.18.2
    R1#show arpProtocol InternetAddress 10.0.1.1Age (min) -Hardware Addr aabb.cc00.0900Type ARPAInterface Ethernet0/01Protocol InternetAddress 10.0.1.10Age (min) 9Hardware Addr 5254.0000.0110Type ARPAInterface Ethernet0/0Protocol InternetAddress 10.0.2.1Age (min) -Hardware Addr aabb.cc00.0910Type ARPAInterface Ethernet0/1Protocol InternetAddress 10.0.2.20Age (min) 1Hardware Addr 5254.0000.0220Type ARPAInterface Ethernet0/1
    1. H1’s entry is still listed, though the switch port toward H1 is off.
    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               9   5254.0000.0110  ARPA   Ethernet0/0Internet  10.0.2.1                -   aabb.cc00.0910  ARPA   Ethernet0/1Internet  10.0.2.20               1   5254.0000.0220  ARPA   Ethernet0/1
    Output · IOS XE 17.18.2
    R1#ping 10.0.2.20Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.0.2.20, timeout is 2 seconds:!!!!!1Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
    1. 5/5: H2’s side works.
  5. Case 1 · What it means

    H1SW1R1H2SW1 Et0/1:disabledR1 Et0/0:up up
    Figure 3.4 · SW1’s port toward H1 is off. R1’s own port still works, but H1 cannot be reached.

    The four devices of the network in their column: H1, SW1, R1 and H2 from top to bottom. The three cables are drawn alike. A cross sits right of the cable between H1 and SW1, at its SW1 end, with a note beside it that reads “SW1 Et0/1: disabled”. A note right of R1 reads “R1 Et0/0: up up”.

    • SW1’s port toward H1 is turned off: layer 1, on the switch.
    • H2’s side is not affected.
  6. Case 1 · Fix

    On SW1, turn Ethernet0/1 on again:

    Output · IOS XE 17.18.2
    SW1#configure terminalEnter configuration commands, one per line.  End with CNTL/Z.1SW1(config)#interface Ethernet0/12SW1(config-if)#no shutdown3SW1(config-if)#end
    1. interface Ethernet0/1: the prompt changes to SW1(config-if)#, the port’s own settings.
    2. no shutdown: turns the port on again.
    3. end: back to where show commands run.
  7. Case 1 · Proof

    On R1, the same test to H1:

    Output · IOS XE 17.18.2
    R1#ping 10.0.1.10Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.0.1.10, timeout is 2 seconds:!!!!!1Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
    1. 5/5: every test packet got a reply.

End of case 1. Solved: H1 answers again.

Case 2 of 2.Nothing reaches H2 after a card change (your turn)

  1. Case 2 · Symptom

    H2’s network card was replaced yesterday. The new card’s MAC address is 5254.0000.0220; the old card’s was different. Since then, R1’s tests to H2 get no reply.

    Output · IOS XE 17.18.2
    R1#ping 10.0.2.20Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.0.2.20, timeout is 2 seconds:.....1Success rate is 0 percent (0/5)
    1. 0/5: not one reply.
  2. Case 2 · Command

    Run commands to narrow the cause, then choose it.

    Choose the next command

    Output · IOS XE 17.18.2
    R1#show arpProtocol InternetAddress 10.0.1.1Age (min) -Hardware Addr aabb.cc00.0900Type ARPAInterface Ethernet0/0Protocol InternetAddress 10.0.1.10Age (min) 10Hardware Addr 5254.0000.0110Type ARPAInterface Ethernet0/0Protocol InternetAddress 10.0.2.1Age (min) -Hardware Addr aabb.cc00.0910Type ARPAInterface Ethernet0/1Protocol InternetAddress 10.0.2.20Age (min) -Hardware Addr 5254.0000.0221Type ARPAInterface —

    R1’s list of MAC addresses has one record for each IP address in it.

    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              10   5254.0000.0110  ARPA   Ethernet0/0Internet  10.0.2.1                -   aabb.cc00.0910  ARPA   Ethernet0/1Internet  10.0.2.20               -   5254.0000.0221  ARPA  
    Output · IOS XE 17.18.2
    R1#show running-config | include arparp 10.0.2.20 5254.0000.0221 ARPA

    The lines of R1’s running configuration that hold the word arp.

    Output · IOS XE 17.18.2
    R1#show logging | include IP:IP: tableid=0, s=10.0.2.1 (local), d=10.0.2.20 (Ethernet0/1) nexthop=10.0.2.20, routed via FIBIP: s=10.0.2.1 (local), d=10.0.2.20 (Ethernet0/1), len 100, sendingIP: s=10.0.2.1 (local), d=10.0.2.20 (Ethernet0/1), len 100, sending full packet

    R1’s notes on the test packet it sent to H2 with debug ip packet on.

    Output · IOS XE 17.18.2
    R1#show ip interface briefInterface Ethernet0/0IP-Address 10.0.1.1OK? YESMethod TFTPStatus upProtocol upInterface Ethernet0/1IP-Address 10.0.2.1OK? YESMethod manualStatus upProtocol upInterface Ethernet0/2IP-Address unassignedOK? YESMethod unsetStatus administratively downProtocol downInterface Ethernet0/3IP-Address unassignedOK? YESMethod unsetStatus administratively downProtocol down

    R1’s two interfaces in use, Ethernet0/0 and Ethernet0/1, both read up and up.

    Full output · 5 lines
    R1#show ip interface briefInterface              IP-Address      OK? Method Status                ProtocolEthernet0/0            10.0.1.1        YES TFTP   up                    up      Ethernet0/1            10.0.2.1        YES manual up                    up      Ethernet0/2            unassigned      YES unset  administratively down down    Ethernet0/3            unassigned      YES unset  administratively down down    
    Output · IOS XE 17.18.2
    R1#show interfaces Ethernet0/1Ethernet0/1 is up, line protocol is up   Hardware is AmdP2, address is aabb.cc00.0910 (bia aabb.cc00.0910)  Internet address is 10.0.2.1/24  MTU 1500 bytes, BW 10000 Kbit/sec, DLY 1000 usec,      reliability 255/255, txload 1/255, rxload 1/255  Encapsulation ARPA, loopback not set  Keepalive not set  ARP type: ARPA, ARP Timeout 04:00:00  Last input 00:00:36, output 00:00:00, output hang never  Last clearing of "show interface" counters 00:02:25  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     40 packets input, 4480 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     0 input packets with dribble condition detected     55 packets output, 6190 bytes, 0 underruns     Output 0 broadcasts (0 IP multicasts)     0 output errors, 0 collisions, 0 interface resets     0 unknown protocol drops     0 babbles, 0 late collision, 0 deferred     0 lost carrier, 0 no carrier     0 output buffer failures, 0 output buffers swapped out

    Ethernet0/1 is up, and so is its line protocol: R1’s own side of the link to H2 works.

    Output · IOS XE 17.18.2
    R1#ping 10.0.1.10Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.0.1.10, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms

    H1 answers every test packet from R1 (5/5).

    Cause
  3. Answer to see what it means, the fix and the proof.

  4. Case 2 · How far it reaches

    To see whether clearing the list helps, run clear arp-cache on R1, then show the list and test again:

    Output · IOS XE 17.18.2
    R1#clear arp-cache(no output: the command printed nothing)
    Output · IOS XE 17.18.2
    R1#show arpProtocol InternetAddress 10.0.1.1Age (min) -Hardware Addr aabb.cc00.0900Type ARPAInterface Ethernet0/01Protocol InternetAddress 10.0.1.10Age (min) 0Hardware Addr 5254.0000.0110Type ARPAInterface Ethernet0/0Protocol InternetAddress 10.0.2.1Age (min) -Hardware Addr aabb.cc00.0910Type ARPAInterface Ethernet0/12Protocol InternetAddress 10.0.2.20Age (min) -Hardware Addr 5254.0000.0221Type ARPAInterface —
    1. H1’s entry was learned again: its Age went back to 0.
    2. 10.0.2.20 still reads 5254.0000.0221, Age -, and no Interface: a typed entry here names none. clear arp-cache does not affect permanent entries.
    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               0   5254.0000.0110  ARPA   Ethernet0/0Internet  10.0.2.1                -   aabb.cc00.0910  ARPA   Ethernet0/1Internet  10.0.2.20               -   5254.0000.0221  ARPA  
    Output · IOS XE 17.18.2
    R1#ping 10.0.2.20Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.0.2.20, timeout is 2 seconds:.....1Success rate is 0 percent (0/5)
    1. 0/5: still no reply.
  5. Case 2 · What it means

    H1SW1R1H2frame to5254.0000.0221not H2’s MAC:no answer
    Figure 3.5 · R1 sends its frames to the old card’s MAC address, so no answer comes back from H2.

    The four devices of the network in their column, all cables drawn as usual. Left of the cable from R1 to H2, a tag in the accent color reads “frame to 5254.0000.0221”, the old card. A cross sits beside that cable, right of it, just above H2. A note right of H2 reads “not H2’s MAC: no answer”.

    • R1’s list holds a typed entry for 10.0.2.20 with the old card’s MAC address.
    • Clearing the list keeps the typed entry: it has to be removed by hand.
  6. Case 2 · Fix

    Remove the entry: type the line that show running-config | include arp prints, with no in front. R1 then learns H2’s new MAC address itself. Type it after configure terminal; the prompt then reads R1(config)#. Type end before the show commands.

    Type a command, or tap one, then run it.

    Ticket: H2’s network card was replaced, and since then R1’s packets do not reach H2. Make R1’s frames reach the new card.

    Output · IOS XE 17.18.2
  7. Case 2 · Proof

    After the fix, R1 tests H2 again:

    Output · IOS XE 17.18.2
    R1#ping 10.0.2.20Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.0.2.20, timeout is 2 seconds:!!!!!1Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms
    1. 5/5: the frames reach H2’s new card, and it answers.

End of case 2. Solved: R1’s frames reach H2 again.

What both cases share follows once you have answered case 2.

Both cases

Following a frame to the fault, in this order
DeviceCommandLook at
R1ping the hostreplies or none
R1show ip interface briefthe interface toward the host: up, up
R1show arpthe host’s Hardware Addr
switchshow interfaces statusthe port toward the host
switchshow mac address-table dynamicthe host’s MAC on that port

Key idea

Up and up on a router interface proves only its own link; the fault can sit at the next device on the frame’s path.

Check

Which device repeats the signal out of every other port without reading an address?
H2 replies to H1. On H1’s cable, what are the reply’s MAC and IP addresses?
A switch passes a frame on inside one network. Which of these does it do?

SW1, with its port toward H1 turned off:

Tap a record, or “Not in the output”, then submit.

Find the entry that is left while SW1’s port toward H1 is off.

Output · IOS XE 17.18.2
SW1#show mac address-table dynamic

H1’s entry is gone while its port is off.

  1. aabb.cc00.0900 on Et0/0: R1.
Full output · 7 lines
SW1#show mac address-table dynamic          Mac Address Table------------------------------------------- Vlan    Mac Address       Type        Ports----    -----------       --------    -----   1    aabb.cc00.0900    DYNAMIC     Et0/0Total Mac Addresses for this criterion: 1
R1’s interface toward SW1 is up and up, but H1 does not answer. Where do you look next?
After clear arp-cache, R1’s show arp still lists 10.0.2.20 with Age -. Why?

Summary

H1SW1R1H2frameH1 → R1packet10.0.1.10 →10.0.2.20frameH1 → R1packet10.0.1.10 →10.0.2.20frameR1 → H2packet10.0.1.10 →10.0.2.20reads the MACit goes toreads the IP:new frametakes it:its MAC, its IP
Figure 3.3, recap · On every cable the packet kept its IP addresses. The frame header was new after R1. The reply crosses the same devices back, again in a new frame after R1.

The four devices in their column, H1 at the top and H2 at the bottom, with a small arrow pointing down beside each cable. Level with each cable, a frame tag on the left and a packet tag on the right. The packet tag reads “10.0.1.10 → 10.0.2.20” on all three cables. The frame tag reads “H1 → R1” on the first two cables and “R1 → H2” on the last, drawn in the accent color: the one header that was new after R1.

  • A hub repeats the signal; a switch reads the destination MAC address and writes no new frame header; a router reads the destination IP address and builds a new frame; a host works up to the top layer.
  • At R1 the MAC addresses change and the TTL is lowered; the IP addresses stay end to end.
  • 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.
  • A router’s own interface shows only that its own cable works. A typed entry in R1’s list sends frames to the wrong card, and clearing the list does not remove it.

Commands

  • show arp

    Hardware Addr: the MAC address the router writes for each IP address; Age - for its own addresses or a typed entry.

  • show interfaces <interface> | include address

    the interface’s own MAC address: the source of the frames it sends.

  • show mac address-table dynamic

    on a switch: Mac Address and Ports, the senders seen on each port.

  • show interfaces status

    on a switch: the state of each port, for example connected or disabled.

  • clear arp-cachenot read-only

    the router forgets its learned entries and learns them again; typed entries stay.