info > route(8)

ROUTE(8) Linux System Administrator's Manual ROUTE(8)

📋 NAME

route - show / manipulate the IP routing table

🚀 Quick Reference

Use CaseCommandDescription
Show routing tableroute -nDisplay numerical addresses
Add default gatewayroute add default gw gatewayRoute all non-matching traffic via gateway
Add network routeroute add -net 192.168.1.0 netmask 255.255.255.0 dev eth0Route to local network segment
Add host routeroute add -host 10.0.0.1 gw 192.168.1.1Route to a specific host
Delete a routeroute del -net 192.168.1.0 netmask 255.255.255.0Remove a static route
Add reject routeroute add -net 10.0.0.0 netmask 255.0.0.0 rejectBlock traffic to a network

📝 SYNOPSIS

route [-CFvnNee] [-A family |-4|-6]

route  [-v] [-A family |-4|-6] add [-net|-host] target [netmask Nm] [gw Gw] [metric N] [mss M] [window W] [irtt I] [reject] [mod] [dyn] [reinstate] [[dev] If]

route  [-v] [-A family |-4|-6] del [-net|-host] target [gw Gw] [netmask Nm] [metric M] [[dev] If]

route  [-V] [--version] [-h] [--help]

📖 DESCRIPTION

Route manipulates the kernel's IP routing tables. Its primary use is to set up static routes to specific hosts or networks via an interface after it has been configured with the ifconfig(8) program.

When the add or del options are used, route modifies the routing tables. Without these options, route displays the current contents of the routing tables.

⚙️ OPTIONS

💡 EXAMPLES

📊 OUTPUT

The output of the kernel routing table is organized in the following columns:

📁 FILES

🔗 SEE ALSO

📜 HISTORY

Route for Linux was originally written by Fred N. van Kempen, <waltje AT uwalt.org> and then modified by Johannes Stille and Linus Torvalds for pl15. Alan Cox added the mss and window options for Linux 1.1.22. irtt support and merged with netstat from Bernd Eckenfels.

👤 AUTHOR

Currently maintained by Phil Blundell <Philip.Blundell AT pobox.com> and Bernd Eckenfels <net-tools AT lina.de>.

net-tools 2014-02-17 ROUTE(8)

route(8)
📋 NAME 🚀 Quick Reference 📝 SYNOPSIS 📖 DESCRIPTION ⚙️ OPTIONS 💡 EXAMPLES 📊 OUTPUT 📁 FILES 🔗 SEE ALSO 📜 HISTORY 👤 AUTHOR

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-04 20:51 @216.73.216.89
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format

^_top_^