The blog provides Network Security Tips, Tricks, How To/Procedures. Products and areas not limited to Firewalls, Security, Check Point, Cisco, Nokia IPSO, Crossbeam, SecurePlatform, SPLAT, IP Appliance, GAiA, Unix/Linux.

Microsoft Windows - Configuring Routes - IPv4


* Open the Command Prompt window.

Method 1: Click the Start button In the search box, type Command Prompt, and then, in the list of results, click Command Prompt.

Method 2: Click the Start button, launch Run program, and then type cmd and click. This would open Command Prompt program.

* Execute command "route print".

Syntax: 

route print

Example:

Microsoft Windows [Version 5.2.3790]

(C) Copyright 1985-2003 Microsoft Corp.



C:\>route print



IPv4 Route Table

===========================================================================

Interface List

0x1 ........................... MS TCP Loopback interface

0x2 ...00 1e 0b 75 d5 d8 ...... HP NC373i Multifunction Gigabit Server Adapter

0x3 ...00 1e 0b 75 d5 da ...... HP NC373i Multifunction Gigabit Server Adapter #

2

===========================================================================

===========================================================================

Active Routes:

Network Destination        Netmask          Gateway       Interface  Metric

          0.0.0.0          0.0.0.0      10.103.54.1    10.103.54.199      1

      10.43.59.50  255.255.255.255      10.103.54.1    10.103.54.199      1


      10.103.18.0    255.255.255.0     10.161.110.1   10.161.110.200     10

Default Gateway:       10.103.54.1

===========================================================================

Persistent Routes:

  Network Address          Netmask  Gateway Address  Metric

       10.161.6.0    255.255.255.0     10.161.110.1       1

     10.103.108.0    255.255.255.0     10.161.110.1      10

     10.103.130.0    255.255.255.0     10.161.110.1      10
 
C:\>



How To Manually Add IPv4 Routes in Windows


At the Command Prompt, type route -p add command.

 

Syntax:

route -p add [destination] [mask <netmask>] [gateway] [metric <metric>] [if <interface>]

 

Example:

C:\>route add 192.168.2.0 mask 255.255.255.0 10.75.75.1


C:\>



How To Delete IPv4 Routes in Windows


At the Command Prompt, type route delete command.

 

Syntax:

route delete [destination]

 

Example:

C:\>route delete 192.168.2.0


C:\>


Microsoft Windows - Configuring Routes - IPv4 Microsoft Windows - Configuring Routes - IPv4 Reviewed by Admin on 19:54:00 Rating: 5