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 הוספת TCP / IP כביש של Windows טבלת ניתוב

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 xxx.xxx.xxx.xxx MASK xxx.xxx.xxx.xxx  xxx.xxx.xxx.xxx תוואי הוסף MASK xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx

Means: האמצעים:

route ADD “network” MASK “subnet mask”  “gateway ip” תוואי ADD "רשת" MASK "מסיכת רשת משנה" "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: לדוגמה, אם היית ברשת 192.168.1.0, והיה לך שער על 192.168.1.12 מוגדר לגשת לרשת 10.10.10.0/24, עליך להשתמש בנתיב להוסיף אמירה כמו זו:

route ADD 10.10.10.0 MASK 255.255.255.0 192.168.1.12 תוואי הוסף 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. טבלת הניתוב שלך צריך לשקף את השינוי עכשיו, וכל תנועה בטווח 10.10.10.x כעת להישלח אל מכונת השער.

The route add change will only stick across reboots if you add it with the -p flag, as in the following: התוואי להוסיף לשנות רק מקל על אתחול מחדש אם תוסיף את זה עם הדגל-p, כמו הבאים:

route -p ADD 10.10.10.0 MASK 255.255.255.0 192.168.1.12 המסלול 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: מאמר זה נכתב במקור ב 09/13/06 עם שתייגת: Networking רשת , , Windows Windows

Daily Email Updates שערי עדכונים בדוא"ל

You can get our how-to articles in your inbox each day for free. אתה יכול לקבל כמה שלנו למאמרים לתיבת הדואר שלך בכל יום בחינם. Just enter your name and email below: פשוט להזין את שם ואת הדוא"ל שלך להלן:


Name: שם:
Email: דואר אלקטרוני:

Comments (4) תגובות (4)

  1. wan WAN

    I've a few question and Need help. יש לי שאלה כמה צריך עזרה.
    1) Where is right place to put that network route statments on suse 9 1) איפה המקום הנכון לשים את זה ברשת statments התוואי על SUSE 9
    2) How to make auto route scripts so that, i don't need to up manually this routing on suse9. 2) איך לעשות סקריפטים תוואי אוטומטי כך, אני לא צריך את זה באופן ידני על ניתוב suse9.

  2. Graham Allen גרהם אלן

    Nice intro into adding static routes. פתיחה נחמדה אל תוך הוספת נתיבים סטטיים.
    Do you have any other articles on TCP/IP? האם יש לכם מאמרים אחרים על פרוטוקול 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. אם לא, יש לי מסמך מפורט המסביר TCP / IP וניתוב אני ישמח דוא"ל לך לפרסם באתר שלך. I had to create this a while ago for training in my company. הייתי צריך ליצור את זה לפני כמה זמן לאימונים בחברה שלי.

  3. Drowles Drowles

    I had to put the -p at the end in order to get the registry updated. הייתי צריך לשים את p-בסוף כדי לקבל את הרישום המעודכן.
    All the help docs that I found show it at the beginning ?*&%?? כל הרופאים לעזור להראות כי מצאתי את זה ב ?*&%?? ההתחלה
    route ADD 10.10.10.0 MASK 255.255.255.0 192.168.1.12 -p תוואי הוסף 10.10.10.0 MASK 255.255.255.0 192.168.1.12-p

  4. camil7 camil7

    Thanks for the hint. תודה רמז. Saved the day for a windows newbie הציל את היום עבור Newbie חלונות :)

    By the way: removing routes (eg in case of typos) works as well as: דרך אגב: הסרת נתיבים (למשל במקרה של שגיאות כתיב) עובד כמו גם:

    route delete “network” תוואי למחוק "רשת"

    eg to remove the route for 10.10.10.0 one types in לדוגמה, כדי להסיר את תוואי 10.10.10.0 אחד סוגי ב

    route delete 10.10.10.0 תוואי למחוק 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”) אישור "עזרה בדרך" אפילו נותן לעזור, למשל "להדפיס תוואי" כדי להראות את טבלת הניתוב (בעצם את אותו פלט כמו netstat "-Nr")


Our Friends חברים שלנו
Getting Started התחלת העבודה


About How-To Geek אודות How-To Geek
What Is That 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. זכויות יוצרים © 2006-2009 HowToGeek.com. All Rights Reserved. כל הזכויות שמורות.