Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

route

Show or manage routing table

Syntax

route [OPTION]... [COMMAND]

Common Options

-nShow numeric addresses
-eExtended format
addAdd route
delDelete route
-netSpecify target network
gwSpecify gateway

Common Examples

route -n

Show routing table

route add default gw 192.168.1.1

Add default gateway

route del default gw 192.168.1.1

Delete default gateway

route add -net 10.0.0.0/8 gw 192.168.1.1

Add network route

route -ee

Extended format display

Related Tools

More Code & Dev Tools