Translated message

A translation of this page exists in English.

"route" コマンドがゲートウェイ IP アドレスではなく、"gateway" または "_gateway" 文字列を出力する理由は?

Solution Unverified - Updated -

Issue

  • route コマンドがゲートウェイ IP アドレスではなく、gateway または _gateway (RHEL8、9 の場合) 文字列を出力するのはなぜですか?
  • 実際の出力:
# /sbin/route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         gateway         0.0.0.0         UG    0      0        0 em1
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 em1
  • 想定される出力:
# /sbin/route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.0.0.1        0.0.0.0         UG    0      0        0 em1
10.0.0.0        0.0.0.0         255.255.255.0   U     0      0        0 em1

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • net-tools パッケージの route コマンド

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content