Network models · Fundamentals · Module 3
Devices and the layers they work at · page 3 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.
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:
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)
Scroll sideways to see the whole output
- Et0/0, toward R1:
connected. - 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
Scroll sideways to see the whole output
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.
| Output | Value | Means | Look next |
|---|---|---|---|
show interfaces status | connected | port up at layer 1 | show mac address-table dynamic, the host’s MAC on that port |
show interfaces status | disabled | port turned off with shutdown | show logging | include LINK|LINEPROTO |
show arp Age | a number | learned entry; age in minutes | the Hardware Addr |
show arp Age | - | a local address or an entry someone typed in | the Address column |
| Command | What it does | Default | Where you see the result |
|---|---|---|---|
arp <ip-address> <mac-address> ARPA / no arp … | adds a permanent entry / removes it | none | show arp |
shutdown / no shutdown | turns a port off / on | on (switch port) | show interfaces status |
Case 1 of 2.H1 cannot be reached
Case 1 · Symptom
R1 tests H1, and no test packet gets a reply.
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)
0/5: not one reply.
Case 1 · Command
R1 is one end of H1’s path, so look one device further, at SW1’s port toward H1. On SW1:
Case 1 · Output
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)
Scroll sideways to see the whole output
- Et0/0, toward R1:
connected. - 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
Scroll sideways to see the whole output
- Et0/0, toward R1:
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.
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)
Scroll sideways to see the whole output
- Ethernet0/0, toward SW1:
upandup. 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
Scroll sideways to see the whole output
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- 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
Scroll sideways to see the whole output
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
5/5: H2’s side works.
- Ethernet0/0, toward SW1:
Case 1 · What it means
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.
Case 1 · Fix
On SW1, turn Ethernet0/1 on again:
SW1#configure terminalEnter configuration commands, one per line. End with CNTL/Z.1SW1(config)#interface Ethernet0/12SW1(config-if)#no shutdown3SW1(config-if)#end
interface Ethernet0/1: the prompt changes toSW1(config-if)#, the port’s own settings.no shutdown: turns the port on again.end: back to where show commands run.
Case 1 · Proof
On R1, the same test to H1:
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
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)
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.
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)
0/5: not one reply.
Case 2 · Command
Run commands to narrow the cause, then choose it.
Choose the next command
Best next command:
R1# show arpStart with R1’s list: the MAC address next to 10.0.2.20 is the destination of every frame R1 sends to H2.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
Scroll sideways to see the whole output
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.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 packeton.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 downR1’s two interfaces in use, Ethernet0/0 and Ethernet0/1, both read
upandup.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
Scroll sideways to see the whole output
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.
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).How to reason it out
R1’s side of Ethernet0/1 is
upandup, and its packet line ends insending full packet: the network layer found the way out and the frame left R1.No reply came back, so the frame did not reach anyone who answers. Its destination MAC address comes from
show arp.show arplists 10.0.2.20 with 5254.0000.0221, Age-and no Interface. Age-marks one of R1’s own addresses or a typed entry, and 10.0.2.20 is not R1’s, so this is a typed entry.show running-config | include arpshows its line.Answer to see what it means, the fix and the proof.
Case 2 · How far it reaches
To see whether clearing the list helps, run
clear arp-cacheon R1, then show the list and test again:R1#clear arp-cache(no output: the command printed nothing)
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 —- H1’s entry was learned again: its Age went back to 0.
- 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
Scroll sideways to see the whole output
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)
0/5: still no reply.
Case 2 · What it means
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.
Case 2 · Fix
Remove the entry: type the line that
show running-config | include arpprints, with no in front. R1 then learns H2’s new MAC address itself. Type it afterconfigure terminal; the prompt then readsR1(config)#. Typeendbefore 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.
Case 2 · Proof
After the fix, R1 tests H2 again:
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
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
| Device | Command | Look at |
|---|---|---|
| R1 | ping the host | replies or none |
| R1 | show ip interface brief | the interface toward the host: up, up |
| R1 | show arp | the host’s Hardware Addr |
| switch | show interfaces status | the port toward the host |
| switch | show mac address-table dynamic | the 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
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.
H1’s entry is gone while its port is off.
- 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
Scroll sideways to see the whole output
Summary
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 arpHardware Addr: the MAC address the router writes for each IP address; Age
-for its own addresses or a typed entry.show interfaces <interface> | include addressthe interface’s own MAC address: the source of the frames it sends.
show mac address-table dynamicon a switch: Mac Address and Ports, the senders seen on each port.
show interfaces statuson a switch: the state of each port, for example
connectedordisabled.clear arp-cachenot read-onlythe router forgets its learned entries and learns them again; typed entries stay.