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