/ / แสดงตารางเส้นทางใน Windows หรือ Ubuntu

แสดงตารางเส้นทางใน Windows หรือ Ubuntu

จากพรอมต์คำสั่งหรือหน้าต่างเทอร์มินัลให้เรียกใช้คำสั่งนี้:

netstat -rn

คุณควรเห็นผลลัพธ์ที่คล้ายกับสิ่งนี้:

Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U         0 0          0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG        0 0          0 eth0