로컬 네트워크 내의 경로는 무엇입니까?

로컬 네트워크 내의 경로는 무엇입니까?

내 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

표의 두 번째 항목은 대상이 와 동일한 로컬 네트워크에 있는 경우 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.

원천:http://www.thegeekstuff.com/2012/05/route-flags/

관련 정보