WINDOWS - Route Command: Difference between revisions

From IT-Arts.net
Created page with "Category:Post-It == Route Syntax == <nowiki> route [/f] [/p] [<command> [<destination>] [mask <netmask>] [<gateway>] [metric <metric>]] [if <interface>]]</nowiki> == Route Print == To display the entire contents of the IP routing table, type : <nowiki> C:\> route print</nowiki> To display the routes in the IP routing table that begin with 10, type : <nowiki> C:\> route print 10.*</nowiki> Print IPv4 routing table : <nowiki> C:\> route print -4</nowiki>..."
 
m Text replacement - "Category:Wiki" to "Category:Wiki '''''[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]''''' "
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:Post-It]]
[[Category:Wiki]]
 
'''''[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]'''''
 


== Route Syntax ==
== Route Syntax ==

Latest revision as of 06:51, 17 January 2026


Return to Wiki Index


Route Syntax

route [/f] [/p] [<command> [<destination>] [mask <netmask>] [<gateway>] [metric <metric>]] [if <interface>]]


Route Print

To display the entire contents of the IP routing table, type :

C:\> route print

To display the routes in the IP routing table that begin with 10, type :

C:\> route print 10.*

Print IPv4 routing table :

C:\> route print -4


Route Add

Command Syntax

route add destination_network MASK subnet_mask gateway_ip metric_cost


Add Permanent Route

Add the -p flag :

route -p add 192.168.35.0 MASK 255.255.255.0 192.168.0.2