netstat 명령과 함께 –r 옵션을 사용하여 로컬 호스트의 경로 지정 테이블을 표시할 수 있습니다. 이 표는 호스트에 알려진 모든 경로의 상태를 보여줍니다.
% netstat -r예 1-6 netstat 명령으로 경로 지정 테이블 출력 표시
다음 예는 netstat –r 명령의 출력을 보여줍니다.
Routing Table: IPv4 Destination Gateway Flags Ref Use Interface -------------------- -------------------- ----- ----- ------ --------- host15 myhost U 1 31059 net0 10.0.0.14 myhost U 1 0 net0 default distantrouter UG 1 2 net0 localhost localhost UH 42019361 lo0 Routing Table: IPv6 Destination/Mask Gateway Flags Ref Use If --------------------- --------------------------- ----- --- ------ ----- 2002:0a00:3010:2::/64 2002:0a00:3010:2:1b2b:3c4c:5e6e:abcd U 1 0 net0:1 fe80::/10 fe80::1a2b:3c4d:5e6f:12a2 U 1 23 net0 ff00::/8 fe80::1a2b:3c4d:5e6f:12a2 U 1 0 net0 default fe80::1a2b:3c4d:5e6f:12a2 UG 1 0 net0 localhost localhost UH 9 21832 lo0
다음 표는 netstat –r 명령의 출력에 표시되는 정보에 대해 설명합니다.
|