Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Adding a TCP/IP Route to the Windows Routing Table Pridanie TCP / IP Cesta k systému Windows Smerovacie tabuľka

The Routing table dictates where all packets go when they leave your system. Smerovacie tabuľka určuje, kde sú všetky pakety idú, keď opustí váš systém. 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. Na väčšine prostredie, všetky pakety, ktoré opúšťa váš systém bude odovzdaná k vášmu routeru alebo hubu, a odtiaľ von na 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. V niektorých prípadoch môže mať testovacej siete nastavený tak, aby duplicitné inom prostredí, alebo budete mať konfiguráciu zložitejšie topológie siete, ktorá vyžaduje použitie ďalších trás. Adding routes to your machine is a useful testing tool for some of these situations. Pridanie cesty do počítača je užitočným nástrojom na testovanie niektoré z týchto situácií.

Syntax: Syntax:

route ADD xxx.xxx.xxx.xxx MASK xxx.xxx.xxx.xxx  xxx.xxx.xxx.xxx route add xxx.xxx.xxx.xxx MASK xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx

Means: Znamená:

route ADD “network” MASK “subnet mask”  “gateway ip” route add "sieť" MASK "Maska podsiete" "gateway ip"

For example, if you were on the 192.168.1.0 network, and you had a gateway on 192.168.1.12 configured to access the 10.10.10.0/24 network, you would use a route add statement like this: Napríklad, ak ste na sieti 192.168.1.0 a ste mali bránu 192.168.1.12 nastaviť tak, aby prístup k sieti 10.10.10.0/24, by ste použili route add výpis ako tento:

route ADD 10.10.10.0 MASK 255.255.255.0 192.168.1.12 route add 10.10.10.0 MASK 255.255.255.0 192.168.1.12

Your routing table should now reflect that change, and all traffic to the 10.10.10.x range will now be sent over to the gateway machine. Váš smerovacie tabuľky by sa teraz mala odrážať túto zmenu, a všetok prevádzku na 10.10.10.x rozsah bude teraz zaslaný k bráne cez počítač.

The route add change will only stick across reboots if you add it with the -p flag, as in the following: Route add zmena bude len držať naprieč reštartuje, ak ju pridáte-p s vlajkou, ako v nasledujúcom:

route -p ADD 10.10.10.0 MASK 255.255.255.0 192.168.1.12 route-p ADD 10.10.10.0 MASK 255.255.255.0 192.168.1.12

This article was originally written on 09/13/06 Tagged with: Tento článok bol pôvodne napísaný na 09/13/06 Tagged s: Networking Networking , , Windows Windows

Daily Email Updates Denný Svářeč

You can get our how-to articles in your inbox each day for free. Môžete si naše jak-na články vo vašej schránky každý deň zadarmo. Just enter your name and email below: Stačí zadať svoje meno a e-mail nižšie:


Name: Meno:
Email: E-mail:

Comments (4) Komentáre (4)

  1. wan wan

    I've a few question and Need help. Mám niekoľko otázok a Need help.
    1) Where is right place to put that network route statments on suse 9 1) Kde je to správne miesto, aby, že statments siete trasy na suse 9
    2) How to make auto route scripts so that, i don't need to up manually this routing on suse9. 2) Ako si skripty auto trasu tak, že ja nemusíte manuálne tohto smerovania na suse9.

  2. Graham Allen Graham Allen

    Nice intro into adding static routes. Nice intro na pridanie statické trasy.
    Do you have any other articles on TCP/IP? Máte nejaké ďalšie články o TCP / IP?
    If not, I have a detailed document that explains TCP/IP and routing I would be happy to email you to post on your site. Ak nie, mám podrobný dokument, ktorý vysvetľuje, TCP / IP a smerovanie Bol by som rád, aby e-mailu môžete písať na svojich stránkach. I had to create this a while ago for training in my company. Musel som sa vytvoriť túto Pred časom pre výcvik v mojej spoločnosti.

  3. Drowles Drowles

    I had to put the -p at the end in order to get the registry updated. Musel som dať-p na konci za účelom získania aktualizovaného registra.
    All the help docs that I found show it at the beginning ?*&%?? Všetky dokumenty pomôže ukázať, že som našiel hneď na začiatku ?*&%??
    route ADD 10.10.10.0 MASK 255.255.255.0 192.168.1.12 -p route add 10.10.10.0 MASK 255.255.255.0 192.168.1.12-p

  4. camil7 camil7

    Thanks for the hint. Vďaka za tip. Saved the day for a windows newbie Uložené deň pre windows newbie :)

    By the way: removing routes (eg in case of typos) works as well as: Mimochodom: zrušenie cesty (napr. v prípade preklepov), funguje rovnako ako:

    route delete “network” trasa zmazať "siete"

    eg to remove the route for 10.10.10.0 one types in napríklad odstrániť trasu 10.10.10.0 jeden typov

    route delete 10.10.10.0 trasa zmazať 10.10.10.0

    Ok, and “route help” even gives help, eg “route print” to show the routing table (actually the same output as “netstat -nr”) Ok, a "cesta pomoci", i poskytuje pomoc, napríklad "route print" ukázať, smerovacie tabuľku (vlastne rovnaký výkon ako "netstat-nr")


Leave a Comment Zanechať komentár




Leave your Zanechajte svoj friendly priateľský comment here. komentár tu.

If you have a computer help question, Ak máte počítač pomôže otázku, click here to leave it on the forums kliknite tu nechať to na fórach instead. miesto.

Note: Your comment may not show up immediately on the site. Poznámka: Váš komentár sa nezobrazia okamžite na mieste.

Our Friends Naši priatelia
Getting Started Začíname


About How-To Geek O tom, ako-To Geek
What Is That Process? Čo je to za proces?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe Dwm.exe
ctfmon.exe ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
wmpnscfg.exe WMPNSCFG.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. All Rights Reserved.