How do I show a route table in Linux?

Như Quỳnh

New member
How do I show a route table in Linux?
Answer
To display the kernel routing table, you can use any of the following methods:
  1. route. $ sudo route -n. Kernel IP routing table. Destination Gateway Genmask Flags Metric Ref Use Iface. …
  2. netstat. $ netstat -rn. Kernel IP routing table. …
  3. ip. $ ip route list. 192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.103.
 

Tìm kiếm

Back
Top