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 Ievietošanas TCP / IP Maršruts uz Windows maršrutēšanas tabula

The Routing table dictates where all packets go when they leave your system. Maršrutēšanas tabula nosaka, ja visas paketes iet, kad tie atstāj jūsu sistē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. Vairumā vidēs, visas paketes, kas atstāj jūsu sistēma tiks nosūtītas vairāk nekā uz Jūsu maršrutētāja vai rumbā, un no turienes, lai internetu.

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. Dažos gadījumos Jums var būt pārbaudes tīkls konfigurēts dublēt citā vidē, vai arī jums var konfigurēt sarežģītāki tīkla topoloģiju, kas pieprasa izmantot papildu maršrutiem. Adding routes to your machine is a useful testing tool for some of these situations. Pievienojot maršruti uz jūsu mašīna ir noderīgs testēšanas rīku dažām no šīm situācijām.

Syntax: Sintaksi:

route ADD xxx.xxx.xxx.xxx MASK xxx.xxx.xxx.xxx  xxx.xxx.xxx.xxx maršruts ADD xxx.xxx.xxx.xxx MASK xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx

Means: Nozīmē:

route ADD “network” MASK “subnet mask”  “gateway ip” maršruts ADD "tīkls" maska "apakštīkla maska" "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: Piemēram, ja tu būtu 192.168.1.0 tīklā, un jums bija vārti uz 192.168.1.12 konfigurēts, lai piekļūtu 10.10.10.0/24 tīklu, jūs izmantotu maršruta pievienot paziņojumu, piemēram, šādi:

route ADD 10.10.10.0 MASK 255.255.255.0 192.168.1.12 maršruts 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. Jūsu maršrutēšanas tabula tagad vajadzētu atspoguļot šīs izmaiņas, un visi satiksmes 10.10.10.x diapazons tagad tiks nosūtīti pa to vārti mašīnu.

The route add change will only stick across reboots if you add it with the -p flag, as in the following: Maršruts pievienot mainīt tikai stick pāri reboots, ja jūs pievienojat to ar-p karogu, kā tas ir šādi:

route -p ADD 10.10.10.0 MASK 255.255.255.0 192.168.1.12 maršruts-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: Šis pants tika sākotnēji rakstīts uz 09/13/06 tagged with: Networking Networking , , Windows Logi

Daily Email Updates Daily Email Updates

You can get our how-to articles in your inbox each day for free. Jūs varat saņemt mūsu how-to rakstus savā pastkastītē katru dienu par brīvu. Just enter your name and email below: Vienkārši ievadiet jūsu vārdu un e-pasta zemāk:


Name: Vārds:
Email: E-pasts:

Comments (4) Komentāri (4)

  1. wan wan

    I've a few question and Need help. Esmu pāris jautājumu, un ir vajadzīga palīdzība.
    1) Where is right place to put that network route statments on suse 9 1) Kur ir īstā vieta likt, ka tīkla maršruta statments gada 9 suse
    2) How to make auto route scripts so that, i don't need to up manually this routing on suse9. 2) Kā veikt auto ceļu skripti tā, ka man nav nepieciešams pat manuāli šo maršruts suse9.

  2. Graham Allen Graham Allen

    Nice intro into adding static routes. Nice intro vērā papildinot statiskā maršrutēšana.
    Do you have any other articles on TCP/IP? Vai jums ir kādi citi izstrādājumi uz 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. Ja tā nav, man ir izstrādātu dokumentu, kas izskaidro TCP / IP maršrutizācijas un es būtu laimīgs uz e-pastu jums pēc jūsu vietnē. I had to create this a while ago for training in my company. Man bija izveidot šo atpakaļ, bet par mācībām manā uzņēmumā.

  3. Drowles Drowles

    I had to put the -p at the end in order to get the registry updated. Man bija likt-p pie beigām, lai saņemtu reģistrācijas atjaunošana.
    All the help docs that I found show it at the beginning ?*&%?? Visi palīdzēt docs, ka es atklāju, liecina, ka pie sākuma ?*&%??
    route ADD 10.10.10.0 MASK 255.255.255.0 192.168.1.12 -p maršruts ADD 10.10.10.0 MASK 255.255.255.0 192.168.1.12-p

  4. camil7 camil7

    Thanks for the hint. Paldies par atgādinājumu. Saved the day for a windows newbie Saglabātie dienā logi Newbie :)

    By the way: removing routes (eg in case of typos) works as well as: By veids: novērst ceļi (piemēram, ja typos) darbi, kā arī:

    route delete “network” maršruts izdzēst "tīkls"

    eg to remove the route for 10.10.10.0 one types in piemēram, lai novērstu maršrutu 10.10.10.0 vienu veidiem

    route delete 10.10.10.0 maršruts izdzēst 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, un "maršruts palīdzība" pat dod palīdzība, piemēram, "ceļš print", lai parādītu maršrutēšanas tabulu (faktiski pats izejas kā "netstat-nr")


Leave a Comment Leave Comment




Leave your Atstājiet savu friendly draudzīgs comment here. komentārus šeit.

If you have a computer help question, Ja Jums ir dators palīdzēt jautājumu, click here to leave it on the forums click here to atstāt uz forumu instead. vietā.

Note: Your comment may not show up immediately on the site. Piezīme: Jūsu komentārs var neparādīties pat tieši uz vietas.

Our Friends Our Friends
Getting Started Getting Started


About How-To Geek Par How-To Geek
What Is That Process? Kas ir šis process?
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.