Skip to content

IPv4 and IPv6

IPv4 and IPv6 are the base forwarding models used by the rest of the engine. They provide deterministic route lookup, connected and static routes, recursive next-hop resolution, TTL / hop-limit handling, and VRF-aware forwarding.

AreaLevelNotes
IPv4 forwardingSupportedLongest-prefix match, connected routes, static routes, administrative distance, TTL decrement.
IPv6 forwardingSupportedIPv6 RIB, static routes, hop-limit decrement, connected prefixes.
VRF-aware lookupSupportedPer-VRF route tables and interface binding for routed scenarios.
Recursive next hopSupportedStatic and protocol routes can resolve through another route. Behind two equal routes, the next hop resolves over the live one.
Fragmentation / PMTUDSupportedRouters fragment IPv4; the destination reassembles. ICMP fragmentation-needed and ICMPv6 packet-too-big carry the MTU.
Transport stackBehaviour modelTCP and UDP handlers support higher-level protocol tests, not a full socket stack.
StandardCoverageNotes
RFC 791Behaviour modelIPv4 addressing, TTL, forwarding, protocol demux, and route lookup semantics.
RFC 8200Behaviour modelIPv6 forwarding, hop limit, next-header handling, and address semantics.
RFC 1812PartialRouter behaviour relevant to forwarding, ICMP errors, and TTL expiry.
RFC 2784SupportedGRE-over-IPv4 tunnel forwarding is covered on the IPsec / GRE page.
FeatureStatusNotes
Connected routesSupportedInstalled from interface addresses.
Static routesSupportedPrefix, next-hop, egress-interface, distance, and VRF forms. IOS-XR router static / vrf X. ASA routes keep their metric (distance) and track; route IF 0.0.0.0 0.0.0.0 GW tunneled is used only by VPN-decrypted traffic. PAN-OS nexthop next-vr leaks into another virtual router. permanent is read (IPv4). The IOS show ip arp view writes MACs dotted
Default routeSupportedIPv4 0.0.0.0/0 and IPv6 ::/0.
Longest-prefix matchSupportedStable lookup order with distance and metric tie-breaks.
Recursive lookupSupportedNext-hop reachability is resolved through the RIB.
Null / discard routeSupportedip route <prefix> Null0 installs a route that drops matching traffic.
TTL / hop-limit expirySupportedProduces deterministic ICMP-style failure for diagnostics.
DSCP preservationSupportedQoS may mark DSCP; forwarding carries the packet metadata.
VRF leakingSupportedRoutes can leak between VRFs, as well as through route targets in BGP/MPLS scenarios.
uRPFSupportedReverse-path checks for IPv4 and IPv6.
Policy-based routingSupportedRoute-maps applied to an interface set the next hop, default next hop or egress interface.
ECMPSupportedTransit flows spread over equal-cost paths.
ipv6 unnumbered <lender>SupportedIPv6 runs on the port and sources from the lender’s address.
ip mtu NSupportedSets the port’s IP MTU; written back.
ipv6 mtu NSupportedSets the port’s IPv6 MTU: a larger IPv6 packet, forwarded or sent by the box itself, is dropped with an ICMPv6 Packet Too Big carrying N; show ipv6 interface and the OSPFv3 DBD use it. ping ipv6 … size N sends N bytes.
Packet captureSupportedIPv4 and IPv6 headers are on the wire in a capture (Packet Lens), decoded by Wireshark. No IP options.
CommandIOS-styleJunos-styleVyOS-styleNotes
ip route 192.0.2.0 255.255.255.0 10.0.0.1Supportedn/aSupportedCanonical IPv4 static route.
ipv6 route 2001:db8::/64 2001:db8:1::1Supportedn/aSupportedCanonical IPv6 static route, with an optional distance.
ipv6 route 2001:db8::/64 Gi0/0 FE80::2 / ip route P M Gi0/0 10.0.0.2Supportedn/an/aFully specified: the next hop on that port, resolved there without a recursive lookup; the only form a link-local next hop can take. Written back as read.
ip address A M secondarySupportedSupportedSupportedA router answers ARP for its secondaries and installs them as connected routes; OSPF, OSPFv3, IS-IS, EIGRP and RIP advertise them (see each protocol page). No adjacency forms on a secondary.
ip route vrf BLUE ...SupportedSupportedPartialPer-VRF static routes. Junos: routing-instances BLUE routing-options static route. VyOS VRF statics are not read.
show ip routeSupportedVendor-shaped viewVendor-shaped viewIPv4 RIB.
show ipv6 routeSupportedVendor-shaped viewVendor-shaped viewIPv6 RIB.

Forwarding is replay-oriented. A route lookup is a pure function of packet metadata, interface state, and the current RIB snapshot. Equal candidates use stable ordering so two runs of the same topology do not drift.

The IP layer does not try to emulate every ASIC, CEF, kernel, or vendor FIB quirk. It gives routing protocols a deterministic substrate and gives labs a clear answer about reachability.

Canonical example
configure terminal
interface GigabitEthernet0/0
ip address 10.0.12.1 255.255.255.252
ipv6 address 2001:db8:12::1/64
ip route 192.0.2.0 255.255.255.0 10.0.12.2
ipv6 route 2001:db8:200::/64 2001:db8:12::2
end
show ip route
show ipv6 route

Vendor styles

IOS-style
ip route 192.0.2.0 255.255.255.0 10.0.12.2
ipv6 route 2001:db8:200::/64 2001:db8:12::2
show ip route
Junos-style
set routing-options static route 192.0.2.0/24 next-hop 10.0.12.2
set routing-options rib inet6.0 static route 2001:db8:200::/64 next-hop 2001:db8:12::2
show route protocol static
VyOS-style
set protocols static route 192.0.2.0/24 next-hop 10.0.12.2
set protocols static route6 2001:db8:200::/64 next-hop 2001:db8:12::2
show ip route

Full TCP congestion behaviour, kernel socket APIs, hardware ECMP hashing, fragment reassembly corner cases, and vendor CEF adjacency internals are not modelled.