Project

General

Profile

Bug #7302

netstat -rn does not print default routes as numeric

Added by Jorge Schrauwen about 3 years ago. Updated over 1 year ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
cmd - userland programs
Start date:
2016-08-15
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

[root@eris ~]# netstat -rn

Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface
-------------------- -------------------- ----- ----- ---------- ---------
default              192.168.0.1          UG        2         27 net0
default              172.16.30.1          UG        2        141 net1
127.0.0.1            127.0.0.1            UH        2         64 lo0
172.16.20.0          172.16.30.1          UG        1          0 net1
172.16.30.0          172.16.30.192        U         4          0 net1
172.16.40.0          172.16.40.192        U         2          0 net2
192.168.0.0          192.168.0.12         U         3          0 net0

Routing Table: IPv6
  Destination/Mask            Gateway                   Flags Ref   Use    If
--------------------------- --------------------------- ----- --- ------- -----
::1                         ::1                         UH      2       0 lo0
2001:6f8:1480:20::/64       2001:6f8:1480:30::1         UG      1       0 net1
2001:6f8:1480:40::/64       2001:6f8:1480:40::192       U       2       0 net2
2001:6f8:1480:30::/64       2001:6f8:1480:30::192       U       4    3102 net1
fe80::/10                   fe80::222:6ff:fe09:4001     U       3       2 net2
fe80::/10                   fe80::222:6ff:fe09:3001     U       3       2 net1
default                     fe80::215:ff:fe05:d7c3      UG      1       0 net1
default                     fe80::215:ff:fe05:d7c4      UG      1       0 net2

I was expecting to see 0.0.0.0/0 and ::0/0 instead of default when adding -n.


Files

Also available in: Atom PDF