fir3net
PPS-Firenetbanner-780.5x190-30-03-17

Windows - How to add a route

Go to the Command Prompt via `Start / Run / CMD`. And use the following syntax,

Add a route

route -p add [Destination] MASK [Mask] [Gateway]

Remove a route

route -p delete [Destination] MASK [Mask] [Gateway]

Example

This would add a route to network 10.1.1.0/24 via your gateway address of 192.168.1.100.

route -p ADD 10.1.1.0 MASK 255.255.255.0 192.168.1.100

About the Author

RDonato

R Donato

Rick Donato is the Founder and Chief Editor of Fir3net.com. He currently works as a Principal Network Security Engineer and has a keen interest in automation and the cloud.

You can find Rick on Twitter @f3lix001