DbAppWeb.com

Menu
  • Home
  • Linux
  • HP-UX
  • macOS
  • Windows
  • Web Servers
  • App Servers
  • Storage

How to view/print routing table in Linux

February 25, 2017 DbAppWeb Admin

You can display the routing table by using the command netstat -rn or route -n in a Linux system. The first column of the routing table shows the destination and the second column of the routing table tells how to reach to the destination.

Linux (RHEL 6.8)

Use the netstat command to print the routing table.

[root@TestServer /]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
10.62.202.0     0.0.0.0         255.255.255.0   U         0 0          0 eth0
10.65.32.0      10.62.202.8     255.255.255.0   UG        0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
0.0.0.0         10.62.202.8     0.0.0.0         UG        0 0          0 eth0

Use the route command to print the routing table.

[root@TestServer /]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.62.202.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
10.65.32.0      10.62.202.8     255.255.255.0   UG    0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
0.0.0.0         10.62.202.8     0.0.0.0         UG    0      0        0 eth0

 

Prev Article
Next Article
Tags:Linux Sys Admin

No Responses

  1. Pingback: How to Get the rpm Packages Update History in RHEL - DbAppWeb.com

Leave a Reply Cancel Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Popular
  • Recent

Categories

  • Android (2)
  • Blogger (16)
  • Domain and Hosting (1)
  • Hardware Issues (7)
  • HP-UX (55)
  • HPE Data Protector (9)
  • IBM Lotus Notes (2)
  • IBM WebSphere Application Server (16)
  • Internet Tips & Tricks (15)
  • iOS (8)
  • JBoss/WildFly Application Server (2)
  • Linux (76)
  • macOS (15)
  • Microsoft Windows (31)
  • News and Updates (11)
  • Oracle Database (5)
  • SSL/TLS (1)
  • Storage Servers (23)
  • Tools/Softwares (1)
  • VMware ESXi (17)
  • Web Servers (14)
  • WordPress (5)

Archives

DbAppWeb.com

Solution of Database, Application and Web Server Problems

About DbAppWeb.com

One Stop Solution for Database Server, Application Server and Web Server Problems.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

DbAppWeb on Social Media

Copyright © 2025 DbAppWeb.com
Terms and Conditions   Theme by MyThemeShop.com