私のIPアドレスwlan1
はです192.168.1.3
。
$ netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default 192.168.1.1 0.0.0.0 UG 0 0 0 wlan1
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan1
表の2番目の項目は、ターゲットが同じローカルネットワーク上にある場合、wlan1
データグラムがゲートウェイ(*
for Gateway
)に渡されないことを意味しますか?
wlan1
のIPアドレスからデータグラムへのパスは何ですか192.168.1.0/24
?
UG
下はどういう意味ですかFlags
?
ベストアンサー1
そうですね。*
列のエントリは、Gateway
パケットがローカルネットワークに残っていることを意味します。
そのうちの" Flags
"は対応するU
ルートが開始されたことを意味し、""はG
そのルートがゲートウェイに向かうルートであることを意味します。
列に表示される他のオプションは次のとおりFlags
です。
U : This flag signifies that the route is up
G : This flag signifies that the route is to a gateway. If this flag is not present then we can say that the route is to a directly connected destination
H : This flag signifies that the route is to a host which means that the destination is a complete host address. If this flag is not present then it can be assumed that the route is to a network and destination would be a network address.
D : This flag signifies that this route is created by a redirect.
M : This flag signifies that this route is modified by a redirect.