arp: a box lists its own addresses in show arp, with a hyphen age #1989

Merged
jaylouisw merged 1 commit from rev/1118-1401 into main 2026-11-18 14:17:14 +00:00
Owner

Question. Does a Cisco IOS-family device list an address configured on one of its own interfaces in show ip arp, and what is in the Age (min) column for it?

Verdict: yes, with a hyphen. Cisco's field list for the command says "Age, in minutes, of the cache entry; a hyphen (-) means the address is local", and two transcripts show the row: a TAC ARP FAQ prints Internet 10.2.2.1 - 30e4.dbb7.7e02 ARPA GigabitEthernet0/0/2 on an ASR1001-X, and a Catalyst 2960-CX prints Internet 192.168.2.1 - d42c.4461.e340 ARPA Vlan1.

Changed. show arp now adds one local row per interface that holds an IPv4 address: the port's MAC in Hardware Addr, its name in Interface, - in Age (min), ARPA in Type. Rows still sort together by address. End hosts get no such row (a host's cache holds its neighbours, not itself) and a learned entry for the same address suppresses it. Sources: research/show-arp-local-address.md.

Tests. New test/show-arp-local-address.test.js (20 checks); test/show-arp.test.js updated where it counted rows or indexed the neighbour by position. Full suite: 343 suites, 11,908 assertions, 0 failed; scripts/syntax-check.js OK (416 files).

Unresolved. A local row on a shut or unplugged addressed port (no transcript); static/alias entries (no arp command here); secondary and VRRP virtual addresses (not modelled).

**Question.** Does a Cisco IOS-family device list an address configured on one of its own interfaces in `show ip arp`, and what is in the `Age (min)` column for it? **Verdict: yes, with a hyphen.** Cisco's field list for the command says "Age, in minutes, of the cache entry; a hyphen (-) means the address is local", and two transcripts show the row: a TAC ARP FAQ prints `Internet 10.2.2.1 - 30e4.dbb7.7e02 ARPA GigabitEthernet0/0/2` on an ASR1001-X, and a Catalyst 2960-CX prints `Internet 192.168.2.1 - d42c.4461.e340 ARPA Vlan1`. **Changed.** `show arp` now adds one local row per interface that holds an IPv4 address: the port's MAC in `Hardware Addr`, its name in `Interface`, `-` in `Age (min)`, `ARPA` in `Type`. Rows still sort together by address. End hosts get no such row (a host's cache holds its neighbours, not itself) and a learned entry for the same address suppresses it. Sources: research/show-arp-local-address.md. **Tests.** New `test/show-arp-local-address.test.js` (20 checks); `test/show-arp.test.js` updated where it counted rows or indexed the neighbour by position. Full suite: 343 suites, 11,908 assertions, 0 failed; `scripts/syntax-check.js` OK (416 files). **Unresolved.** A local row on a shut or unplugged addressed port (no transcript); static/alias entries (no `arp` command here); secondary and VRRP virtual addresses (not modelled).
arp: a box lists its own addresses in show arp, with a hyphen age
All checks were successful
CI / Classify the change (pull_request) Successful in 6s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 9s
CI / Server smoke test (pull_request) Successful in 5s
CI / Docker build (pull_request) Successful in 20s
CI / Test (Node 20) (pull_request) Successful in 51s
CI / Test (Node 18) (pull_request) Successful in 1m0s
CI / Test (Node 22) (pull_request) Successful in 57s
CI / Arm auto-merge (pull_request) Successful in 19s
c1a648970c
Cisco's field list for `show ip arp` defines the hyphen in the Age column in one
line - "Age, in minutes, of the cache entry; a hyphen (-) means the address is
local" - and two transcripts show the row itself: a TAC ARP FAQ prints
`Internet 10.2.2.1 - 30e4.dbb7.7e02 ARPA GigabitEthernet0/0/2` above the
neighbour it discusses, and a 2960-CX transcript prints
`Internet 192.168.2.1 - d42c.4461.e340 ARPA Vlan1` above the PC it serves.

The table held only what the device had heard, so the address configured on the
box was missing from the box's own cache. One local row is now printed per
interface holding an IPv4 address: the port's MAC, its name, and `-` for the
age. It is not a neighbour and is not aged. End hosts get no such row, since a
host's cache holds its neighbours rather than itself.

Sources, the subinterface case and what is still unresolved (a shut or
unplugged addressed port; static/alias entries; secondary and VRRP virtual
addresses) are in research/show-arp-local-address.md.

tests: 343 suites, 11908 assertions, 0 failed
jaylouisw force-pushed rev/1118-1401 from c1a648970c
All checks were successful
CI / Classify the change (pull_request) Successful in 6s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 9s
CI / Server smoke test (pull_request) Successful in 5s
CI / Docker build (pull_request) Successful in 20s
CI / Test (Node 20) (pull_request) Successful in 51s
CI / Test (Node 18) (pull_request) Successful in 1m0s
CI / Test (Node 22) (pull_request) Successful in 57s
CI / Arm auto-merge (pull_request) Successful in 19s
to 13e563cba6
All checks were successful
CI / Classify the change (pull_request) Successful in 8s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 9s
CI / Server smoke test (pull_request) Successful in 6s
CI / Docker build (pull_request) Successful in 19s
CI / Test (Node 20) (pull_request) Successful in 51s
CI / Test (Node 18) (pull_request) Successful in 58s
CI / Test (Node 22) (pull_request) Successful in 53s
CI / Arm auto-merge (pull_request) Successful in 11s
2026-11-18 14:15:11 +00:00
Compare
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
jaylouisw/packetforge!1989
No description provided.