Digital Your Life

Icon

share today for better future

Adding a TCP/IP route to the Windows Routing Table

The Routing table dictates where all packets go when they leave your system. On most environments, all packets that leave your system will be forwarded over to your router or hub, and from there out to the internet.

In some circumstances, you may have a testing network configured to duplicate another environment, or you may be configuring a more complex network topology that requires the use of additional routes. Adding routes to your machine is a useful testing tool for some of these situations.

Syntax

ROUTE ADD “network” MASK “subnet mask” “gateway”

Example

ROUTE ADD 192.168.88.0 MASK 255.255.255.0 192.168.7.130

Syntax above will route any IP trafic from network 192.168.88.0/24 to gateway 192.168.7.130. So if computer try to connect IP 192.168.88.67, the traffic will forward to gateway 192.168.7.130.

The route add change will only stick across reboots if you add it with the -p flag, as in the following:

ROUTE -p ADD 192.168.88.0 MASK 255.255.255.0 192.168.7.130

Category: Webmaster

Tagged: , , , ,

Bookmark and Share

Related articles:

Top incoming search term for this post

windows routing,- windows route,- routing table,- iproute windows,-

Leave a Reply

Translator

English flagItalian flagKorean flagChinese (Simplified) flagChinese (Traditional) flagPortuguese flagGerman flagFrench flagSpanish flag
Japanese flagArabic flagRussian flagGreek flagDutch flagBulgarian flagCzech flagCroatian flagDanish flag
Finnish flagHindi flagPolish flagRomanian flagSwedish flagNorwegian flagCatalan flagFilipino flagHebrew flag
Indonesian flagLatvian flagLithuanian flagSerbian flagSlovak flagSlovenian flagUkrainian flagVietnamese flagAlbanian flag
Estonian flagGalician flagMaltese flagThai flagTurkish flagHungarian flag   
By N2H