ip routing: a Catalyst does not route until told to, and neither did this one #1869
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jaylouisw/packetforge!1869
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "rev/1117-1601"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
show ip routehas printed two shapes since the host table landed — the codes legend over a routing table, andDefault gateway is not setover the Host/Gateway cache — and which one a device got was decided by the catalogue'sl3-forwardcapability, which no operator can change. A 3560 therefore printed a routing table from the moment it was placed on the board, in the state Cisco says it does not ship in.Evidence
IP routing | Disabled.https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/26-x/configuration_guide/rtng/b_26x_rtng_9300_cg/configuring_ip_unicast_routing.htmlip routingcommand reference, Command Default: "IP routing is enabled." (a router) https://www.cisco.com/c/en/us/td/docs/ios/iproute_pi/command/reference/iri_book/iri_pi1.htmlno ip routingproduces exactly the second shape, on a router and on a switch: https://community.cisco.com/t5/switching/cisco-catalyst-4506-default-gateway-doesn-t-work/td-p/1752479 , https://networklessons.com/ip-services/cisco-router-as-host-or-serverWhat changed
Device.isL3()is nowhasCap('l3-forward') && ipRoutingEnabled(). Every consumer (routing table, IPv6 RAs, installed-route table, L3 data path) already askedisL3(), so one switch moves them together.ip routing/no ip routingin config mode, capability-gated (a 2960 is told it "cannot route between networks: it has no l3-forward capability"), with a receipt, and a trailing word refused rather than ignored.show running-configprints the line only when it differs fromDevice.routingDefault()— which is why a router's own file never showed it.test/ip-routing.test.js— 37 assertions: platform defaults, both table shapes, the data path (a ping dies on the box, attributed to it), its own addresses still answering, static routes config-only, the printed line, the round trip.docs/CLI.md,docs/ARCHITECTURE.md,CHANGELOG.md, andresearch/ip-routing-default.md(known / inferred / unresolved / what would settle it).What remains unresolved
216 non-Cisco
l3-switchentries keep the answer they gave before this command existed — the documented default of a C9200 is not evidence about a Huawei S5720 — as do the ten Ciscoswitch-category models with L3 forwarding (C1000/IE-3300), whose guides were not read.show running-config allis not modelled, so the enabled-by-default state is not visible in the way IOS shows it.Gates
node scripts/syntax-check.jsOK;npm test→ 319 suites, 11117 assertions, 0 failed.fa1d56b23d516ac6aa63notable is 33 branches, 16 in config mode - not 32 and 15 #1931