9.9 C
New York
Wednesday, April 2, 2025

community – MacOS route command fails to return information for sure IPs ending in .0


Making an attempt to get routes for 10.0.0.0 fails with route: writing to routing socket: not in desk:

$ route -n get 10.0.0.0
route: writing to routing socket: not in desk

but it surely works for 10.0.0.1:

$ route -n get 10.0.0.1
   path to: 10.0.0.1
vacation spot: default
       masks: default
    gateway: 10.201.0.1
  interface: en0
      flags: <UP,GATEWAY,DONE,STATIC,PRCLONING,GLOBAL>
 recvpipe  sendpipe  ssthresh  rtt,msec    rttvar  hopcount      mtu     expire
       0         0         0         0         0         0      1500         0 

route -n get 0.0.0.0 and route -n get 0.0.0.1 each work

100.0.0.0 fails however 100.0.0.1 works

so far as I can inform, there should not be a distinction in how these are handled within the routing desk (each ought to fall below the default route with a subsequent hop of 10.201.0.1 by way of interface en0:

$ netstat -rn
Routing tables

Web:
Vacation spot        Gateway            Flags               Netif Expire
default            10.201.0.1         UGScg                 en0       
10.201/16          hyperlink#15            UCS                   en0      !
10.201.0.1/32      hyperlink#15            UCS                   en0      !
10.201.0.1         0:18:a:79:ee:7e    UHLWIir               en0   1160
10.201.0.242/32    hyperlink#15            UCS                   en0      !
10.201.255.255     ff:ff:ff:ff:ff:ff  UHLWbI                en0      !
127                127.0.0.1          UCS                   lo0       
127.0.0.1          127.0.0.1          UH                    lo0       
169.254            hyperlink#15            UCS                   en0      !
224.0.0/4          hyperlink#15            UmCS                  en0      !
224.0.0.251        1:0:5e:0:0:fb      UHmLWI                en0       
255.255.255.255/32 hyperlink#15            UCS                   en0      !

Working MacOS 14.7.1 (23H222)

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles