linux 라우팅 테이블 확인

숭글·2025년 6월 23일

netstat

$ netstat -nr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
0.0.0.0         ---.--.0.1      0.0.0.0         UG        0 0          0 eth0
---.--.0.0      0.0.0.0         255.255.0.0     U         0 0          0 eth0

ip

$ ip route show
default via ---.--.0.1 dev eth0 
---.--.0.0/16 dev eth0 proto kernel scope link src 172.21.0.3 

route

$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         ---.--.0.1      0.0.0.0         UG    0      0        0 eth0
---.--.0.0      0.0.0.0         255.255.0.0     U     0      0        0 eth0
profile
Hi!😁 I'm Soongle. Welcome to my Velog!!!

0개의 댓글