עבור לתוכן

static route הגדרה ב- Windows

Featured Replies

פורסם

יש לי תחנה  XP שיש לה שני כרטיסי רשת (כל כרטיס עם כתובות שונות).

על מנת לגרום לתחנה זו לצאת לשרת טרמינל עלי להגדיר עליה static route

ע"י הפקודה:

route add 10.0.0.1 mask 255.255.0.0 10.0.0.120 10.0.0.2

הבעיה פה שאחרי אתחול המחשב מאבד את ההגדרה הזאת.

יש למישהו רעיון אך ניתן להכניס את זה בסקריפט או דרך אחרת תתקבל בברכה. 

פורסם
  • מחבר

איפה להוסיף את זה ? בתחילת השורה או בסופה.

לשמור את זה כ-Bat ולהכניס ב- Startup ?

פורסם
C:\Users\multicore>route /?

Manipulates network routing tables.

ROUTE [-f] [-p] [-4|-6] command [destination]
                  [MASK netmask]  [gateway] [METRIC metric]  [IF interface]

  -f           Clears the routing tables of all gateway entries.  If this is
               used in conjunction with one of the commands, the tables are
               cleared prior to running the command.

  -p           When used with the ADD command, makes a route persistent across
               boots of the system. By default, routes are not preserved
               when the system is restarted. Ignored for all other commands,
               which always affect the appropriate persistent routes. This
               option is not supported in Windows 95.

צריך להריץ רק פעם אחת. בגלל זה זה persistent.

הניתוב נשמר ב registry.

פורסם
  • מחבר

תודה :)

 

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים