• Increase font size
  • Default font size
  • Decrease font size

How to add a static IP route in windows

  add a static IP route in windows

1.

Open Command Prompt

2.

At the command prompt, type:

route add destination mask subnetmask gateway metric costmetric if interface

where:

destination 

Specifies either an IP address or host name for the network or host.

subnetmask

Specifies a subnet mask to be associated with this route entry. If subnetmask is not specified, 255.255.255.255 is used.

gateway

Specifies either an IP address or host name for the gateway or router to use when forwarding.

costmetric

Assigns an integer cost metric (ranging from 1 through 9,999) to be used in calculating the fastest, most reliable, and/or least expensive routes. If costmetric is not specified, 1 is used.

interface

Specifies the interface to be used for the route that uses the interface number. If an interface is not specified, the interface to be used for the route is determined from the gateway IP address.

 

For example, to add a static route to the 10.0.0.0 network that uses a subnet mask of 255.0.0.0, a gateway of 192.168.0.1, and a cost metric of 2, you type the following at a command prompt:

route add 10.0.0.0 mask 255.0.0.0 192.168.0.1 metric 2 

Tags:


Tags: static route  windows  
 

Add comment


Security code
Refresh

Category

Login Form