Skip to main content

4.3.1: Persistent Routes

To store the entry in the registry and prevent removal on reboot a persistent route can be created.

For example: ROUTE ADD -p 10.0.0.0 MASK 255.0.0.0 192.168.10.4

This screen shot of the Route Print command shows the addition of a persistent route at the bottom of the routing table

The persistent route is now displayed at the bottom of the routing table. The following registry sub-key will be updated:

HKEY_LOACAL_MACHNE\System\CurrentControlSet\services\TCPIP\Paramteters\PersistentRoutes

The ROUTE DELETE command can be used to remove a route.

For example: ROUTE DELETE 10.0.0.0

 

Default Route

A default route is useful when connecting to the Internet where not every remote network is known and can be used to reduce the size of the local routing table. When configured a default route can be used to route all packets whose destination address is not listed in the local routing table,

A default route has an IP Address of 0.0.0.0 and a Mask of 0.0.0.0

For example: ROUTE ADD 0.0.0.0 MASK 0.0.0.0 192.168.10.4 would create a default route where 192.168.10.4 is the default gateway