Subscribe to How-To Geek Підписатись на How-To Geek

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 Route Add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx MASK

Means: Засоби:

route ADD “network” MASK “subnet mask”  “gateway ip” Route Add "Мережа" маска "Маска мережі" "шлюз 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 Маршрут 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. Ваша таблиця маршрутизації повинна тепер відобразити цю зміну, і весь трафік в діапазоні 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 Email Щоденні оновлення

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 Маршрут ADD 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 Збережені в день для новачка Windows :)

    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 ")


Leave a Comment Залишити коментар




Leave your Залиш свій friendly дружній comment here. коментарі.

If you have a computer help question, Якщо у вас є комп'ютер допоможе питання, click here to leave it on the forums Натисніть тут, щоб залишити його на форумах instead. замість.

Note: Your comment may not show up immediately on the site. Примітка: Ваш коментар може не з'явитися відразу на місці.

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. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. Всі права захищені.