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 Dodajanje TCP / IP Pot do Windows Routing Table

The Routing table dictates where all packets go when they leave your system. Routing tabela narekuje, kjer gredo vse pakete, ko zapustijo vaš sistem. 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 večini okolij, vse pakete, da zapustijo vaš sistem bo posredoval več kot v vaš usmerjevalnik ali pest, in od tam jasno v 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 nekaterih primerih boste morda testiranje omrežja nastavljena podvajati drugo okolje, ali ste lahko konfigurirate bolj zapleten topologija omrežja, ki zahteva uporabo dodatnih poti. Adding routes to your machine is a useful testing tool for some of these situations. Dodajanje poti v vaš stroj je uporabno orodje, testiranje za nekatere od teh situacij.

Syntax: Sintaksa:

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

Means: Sredstva:

route ADD “network” MASK “subnet mask”  “gateway ip” route ADD "omrežje" maska "masko podomrežja" "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: Na primer, če ste bili v 192.168.1.0 omrežju, in si imel prehod na 192.168.1.12 konfiguriran za dostop do omrežja 10.10.10.0/24, bi ga uporabljate route add izjavo takole:

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. Vaš usmerjevalno tabelo je treba zdaj odražati to spremembo, in ves promet na območju 10.10.10.x bo zdaj lahko pošljejo preko prehoda za stroj.

The route add change will only stick across reboots if you add it with the -p flag, as in the following: Route add sprememba bo le palico čez odmevajoč, če dodate z zastavo-p, kot v naslednje:

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: Ta članek je bil prvotno napisan na 09/13/06 Tagged with: Networking Networking , , Windows Windows

Daily Email Updates Dnevni Email Updates

You can get our how-to articles in your inbox each day for free. Lahko dobite našo kako do člankov v vašo mapo »Prejeto vsak dan brezplačno. Just enter your name and email below: Preprosto vpišite vaše ime in e-pošto spodaj:


Name: Ime:
Email: E-pošta:

Comments (4) Komentarji (4)

  1. wan WAN

    I've a few question and Need help. Sem malo vprašanje in Rabite pomoč.
    1) Where is right place to put that network route statments on suse 9 1) Če je pravi kraj za izvajanje tega statments poti omrežje suse 9
    2) How to make auto route scripts so that, i don't need to up manually this routing on suse9. 2) Kako narediti scenarij avto poti, tako da, jaz ne potrebujejo, da se to ročno usmerjanje na suse9.

  2. Graham Allen Graham Allen

    Nice intro into adding static routes. Nice intro v dodajanju statične poti.
    Do you have any other articles on TCP/IP? Ali imate kakšne druge članke 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. Če ne, imam podroben dokument, ki pojasnjuje, TCP / IP usmerjanje in jaz bi bil vesel, da boste po e-pošti na vaši strani. I had to create this a while ago for training in my company. Sem moral ustvariti to nekaj časa nazaj za usposabljanje v mojem podjetju.

  3. Drowles Drowles

    I had to put the -p at the end in order to get the registry updated. Moral sem dal-p na koncu, da bi dobili posodobitev registra.
    All the help docs that I found show it at the beginning ?*&%?? Vse pomoč docs, da sem našel kažejo, da na začetku ?*&%??
    route ADD 10.10.10.0 MASK 255.255.255.0 192.168.1.12 -p route ADD 10.10.10.0 maska 255.255.255.0 192.168.1.12-p

  4. camil7 camil7

    Thanks for the hint. Hvala za namig. Saved the day for a windows newbie Shranjeni dan za okna newbie :)

    By the way: removing routes (eg in case of typos) works as well as: Mimogrede: odstranitev poti (npr. v primeru tipkarske napake), dela kot tudi:

    route delete “network” route izbrisati "omrežje"

    eg to remove the route for 10.10.10.0 one types in na primer odstraniti pot za 10.10.10.0 ene vrste v

    route delete 10.10.10.0 route brisanje 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, in "pomagala na poti", tudi nudi pomoč, na primer "route print" pokazati poti tabelo (v bistvu isto kot izhod "netstat-nr")


Leave a Comment Pustite komentar




Leave your Pustite friendly prijazen comment here. comment here.

If you have a computer help question, Če imate računalnik pomagati vprašanje, click here to leave it on the forums kliknite tukaj, da ga pustijo na forumih instead. namesto.

Note: Your comment may not show up immediately on the site. Opomba: Tvoj komentar morda ne pokažejo takoj na mestu.

Our Friends Naši prijatelji
Getting Started Getting Started


About How-To Geek O Kako naj Geek
What Is That Process? Kaj je to 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.