Back to commands

Connections

Intermediate

netstat -nr

Displays the system's routing table and network gateway information.

Explanation

netstat -nr displays your computer's routing table without resolving hostnames. It helps you identify the default gateway, local network routes, and how traffic is being routed across your network. This command is useful when troubleshooting internet connectivity, gateway issues, or incorrect routing.

Syntax

netstat -nr

Example

Destination        Gateway            Flags
default            192.168.0.1        UGScg
192.168.0/24       link#12            UCS