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 Įrašyta TCP / IP Maršrutas į Windows Routing Table

The Routing table dictates where all packets go when they leave your system. Routing Table diktuoja, kai visi paketai eiti, kai jie išvežami iš jūsų sistemos. 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. Daugeliu aplinka, visi paketai, kurie palieka jūsų sistemos bus siunčiami per jūsų maršrutizatorių arba stebulės, o iš ten iš prie interneto.

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. Esant tam tikroms aplinkybėms, gali būti bandymų tinklo konfigūracija dublikatas kitos aplinkos, ar jums gali būti konfigūravimas sudėtingesnis tinklo topologijos, kad reikia papildomų maršrutų naudojimą. Adding routes to your machine is a useful testing tool for some of these situations. Įrašyta maršrutus į jūsų mašina yra naudingas įrankis testą kai iš šių situacijų.

Syntax: Sintaksė:

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: Reiškia

route ADD “network” MASK “subnet mask”  “gateway ip” route add "tinklas" Mask "subnet mask" 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: Pavyzdžiui, jei buvote 192.168.1.0 tinklą, ir Jūs jau vartais ant 192.168.1.12 sukonfigūruota naudotis 10.10.10.0/24 tinklo, turėtumėte naudoti route add pareiškimą panašus į šį:

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. Jūsų maršrutų lentelėje dabar turėtų atspindėti tai pakeisti, ir visų lankytojų 10.10.10.x diapazonas nuo šiol bus siunčiami į vartus mašina.

The route add change will only stick across reboots if you add it with the -p flag, as in the following: Route add kaita bus tik Stick visoje reboot jei jūs įtraukiate jį kartu su p-vėliava, kaip yra taip:

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: Šis straipsnis buvo parašytas ant 09/13/06 Tagged with: Networking Networking , , Windows Windows

Daily Email Updates Dienos paštas Atnaujinimai

You can get our how-to articles in your inbox each day for free. Galite gauti mūsų kaip prie straipsnių į Jūsų pašto dėžutę kasdien nemokamai. Just enter your name and email below: Tiesiog įveskite vardą ir elektroninio pašto adresą žemiau:


Name: Vardas:
Email: Paštas:

Comments (4) Komentarai (4)

  1. wan WAN

    I've a few question and Need help. Aš keletą klausimą ir reikia pagalbos.
    1) Where is right place to put that network route statments on suse 9 1) Jei yra tinkama vieta įgyvendinti tinklo maršrutu statments "SuSE 9
    2) How to make auto route scripts so that, i don't need to up manually this routing on suse9. 2) Kaip padaryti, kad automatinis maršruto skriptą taip, kad man nereikia rankiniu būdu iki šio suse9 maršrutą.

  2. Graham Allen Graham Allen

    Nice intro into adding static routes. Nice Intro į pridedant statinio maršrutais.
    Do you have any other articles on TCP/IP? Ar turite kokių nors straipsnių apie 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. Jei ne, aš išsamus dokumentas, kuris paaiškina, TCP / IP ir maršruto aš mielai atsiųsime žinutę į jūsų svetainę. I had to create this a while ago for training in my company. Man teko sukurti šį seniai mokymus savo įmonės.

  3. Drowles Drowles

    I had to put the -p at the end in order to get the registry updated. Man teko įdėti-p pabaigoje, siekiant gauti registro atnaujinti.
    All the help docs that I found show it at the beginning ?*&%?? Visi Pagalba dokumentai, kurie pasirodė man parodyti pradžioje ?*&%??
    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. Ačiū už užuominą. Saved the day for a windows newbie Išsaugotos už Windows Naujokas dieną :)

    By the way: removing routes (eg in case of typos) works as well as: By the way: panaikinti maršrutais (pvz., jei rašybos) veikia taip pat:

    route delete “network” route delete "Tinklas"

    eg to remove the route for 10.10.10.0 one types in pvz pašalinti maršrutas 10.10.10.0 viena rūšis

    route delete 10.10.10.0 route ištrinti 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”) Gerai, "maršruto padėti" dar suteikia pagalba, pavyzdžiui, "route print" parodyti Routing Table (faktiškai tą pačią produkciją kaip "netstat-nr")


Leave a Comment Palikite komentarą




Leave your Palikite friendly draugiškas comment here. komentarus.

If you have a computer help question, Jei turite kompiuteryje Pagalba klausimą, click here to leave it on the forums Spauskite čia, jei norite palikti jį dėl forumai instead. vietoj.

Note: Your comment may not show up immediately on the site. Pastaba: Jūsų komentaras gali būti rodomas iš karto svetainėje.

Our Friends Mūsų draugai
Getting Started Paruo


About How-To Geek Apie How-To Geek
What Is That Process? Kas yra šis procesas?
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.