Subscribe to How-To Geek Mag-subscribe sa Paano-Upang 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 Pagdaragdag ng TCP / IP ruta sa Windows Routing Table

The Routing table dictates where all packets go when they leave your system. Ang Routing mesa dictates na kung saan ang lahat ng packet pumunta kapag umalis sila sa iyong 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. Sa karamihan sa mga kapaligiran, ang lahat ng packet na umalis sa inyong sistema ay ipadadala sa iyong router o masa, at mula doon out sa 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. Sa ilang mga kalagayan, maaaring mayroon kang isang pagsubok sa network isinaayos sa dobleng ibang kapaligiran, o ikaw ay maaaring maging pag-configure ng isang mas komplikadong network topology na nangangailangan ng paggamit ng mga karagdagang mga ruta. Adding routes to your machine is a useful testing tool for some of these situations. Pagdaragdag ng mga ruta sa iyong machine ay isang kapaki-pakinabang na kasangkapan para sa pagsubok ng ilan sa mga sitwasyon.

Syntax: Syntax:

route ADD xxx.xxx.xxx.xxx MASK xxx.xxx.xxx.xxx  xxx.xxx.xxx.xxx ruta ADD xxx.xxx.xxx.xxx mask xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx

Means: Ibig Sabihin:

route ADD “network” MASK “subnet mask”  “gateway ip” ruta ADD "network" 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: Halimbawa, kung kayo ay sa 192.168.1.0 network, at ikaw ay isang gateway sa 192.168.1.12 isinaayos upang ma-access ang 10.10.10.0/24 network, nais mong gamitin ang isang ruta magdagdag ng pahayag na katulad nito:

route ADD 10.10.10.0 MASK 255.255.255.0 192.168.1.12 ruta 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. Ang iyong routing table ay dapat sumasalamin sa ngayon na ang mga pagbabago, at ang lahat ng trapiko sa 10.10.10.x hanay ay ngayon ay nagpadala ng mahigit sa makina ng gateway.

The route add change will only stick across reboots if you add it with the -p flag, as in the following: Ang ruta magdagdag ng pagbabago ay tanging stick sa buong reboots kung idagdag mo ito sa-flag p, tulad ng sa mga sumusunod:

route -p ADD 10.10.10.0 MASK 255.255.255.0 192.168.1.12 ruta-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: Ang artikulong ito ay orihinal na isinulat sa 09/13/06 Tagged with: Networking Networking , , Windows Windows

Daily Email Updates Araw-araw na Updates Email

You can get our how-to articles in your inbox each day for free. Maaari kang makakuha ng aming kung-paano na mga artikulo sa iyong inbox sa bawat araw para sa libre. Just enter your name and email below: Ilagay lamang ang inyong pangalan at email sa ibaba:


Name: Pangalan:
Email: Email:

Comments (4) Comments (4)

  1. wan maputla

    I've a few question and Need help. Na ako ng ilang mga katanungan at Kailangan mo ng tulong.
    1) Where is right place to put that network route statments on suse 9 1) Saan ang tamang lugar upang ilagay na statments network ng ruta sa suse 9
    2) How to make auto route scripts so that, i don't need to up manually this routing on suse9. 2) Paano gumawa ng script auto ruta sa gayon, hindi ko kailangan sa up ng mano-mano ang routing sa suse9.

  2. Graham Allen Graham Allen

    Nice intro into adding static routes. Nice Intro sa pagdagdag ng static na mga ruta.
    Do you have any other articles on TCP/IP? Mayroon ba kayong anumang iba pang mga artikulo sa 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. Kung hindi, mayroon akong isang detalyadong dokumento na nagpapaliwanag ng TCP / IP routing at Gusto ko ay magiging masaya na email sa iyo upang i-post sa iyong site. I had to create this a while ago for training in my company. Ako ay gumawa ito ng isang habang nakaraan para sa pagsasanay sa aking kumpanya.

  3. Drowles Drowles

    I had to put the -p at the end in order to get the registry updated. Ako had sa ilagay ang-p sa wakas upang makuha ang registry-update.
    All the help docs that I found show it at the beginning ?*&%?? Lahat ng tulong na ang docs ko natagpuan ipakita ito sa ?*&%?? simula
    route ADD 10.10.10.0 MASK 255.255.255.0 192.168.1.12 -p ruta ADD 10.10.10.0 mask 255.255.255.0 192.168.1.12-p

  4. camil7 camil7

    Thanks for the hint. Salamat para sa iparamdam. Saved the day for a windows newbie Naka-save na ang araw para sa isang Newbie bintana :)

    By the way: removing routes (eg in case of typos) works as well as: Sa pamamagitan ng ang paraan: pagtanggal ng mga ruta (halimbawa sa kaso ng mga pagkakamali sa pag) gumagana pati na rin ang:

    route delete “network” ruta tanggalin ang "network"

    eg to remove the route for 10.10.10.0 one types in halimbawa, upang alisin ang ruta para sa 10.10.10.0 isa sa mga uri ng

    route delete 10.10.10.0 ruta burahin 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, at "ruta ng tulong" kahit na nagbibigay ng tulong, eg "ruta print" upang ipakita ang routing table (tunay na ang parehong output ng "netstat-nr")


Our Friends Ang aming mga Friends
Getting Started Pagsisimula


About How-To Geek Tungkol sa Paano-Upang Geek
What Is That Process? Ano ba ang Proseso Iyon?
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.