我今天下午搜尋網路,我從 YAHOO 找到最簡單且有用的解決方法了!
=============================================================
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
"IPEnableRouter"=dword:00000001
; 在每張 NIC 之下都要新增 "IPEnableRouter"=dword:00000001 這個設定值,NIC 才會自動 IP Router.
; [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Adapters]
;
; Resolved Question ? IP Routing table?
; I have 2 LAN, one is 10.0.0.0 which connect to broadband modem and the other is 172.16.0.0 which
; connect to local network. I like to put a PC with windows 2000 server to act as router that route
; Internet request from 172.16.0.0 to 10.0.0.0, what modification should I add to routing table?
;
; Best Answer - Chosen by Voters
; I'm trying to make sure I understand the physical connectivity from your description,
; so you have a broadband modem and your LAN side has a 10.0.0.0 address, and you also
; have another LAN using 172.16.0.0 addressing, and you want to connect these two together.
; There are multiple ways to accomplish this, but if you want to use a Windows 2000 server
; like you said, you can simply install 2 network interface cards in the machine and connect
; each one to your two networks. Then you must enable IP forwarding. Use the registry editor
; regedt32.exe and drill down to HKEY_LOCAL_MACHINE, SYSTEM, CurrentControlSet, Services,
; Tcpip, Parameters and modify the IPEnableRouter key to have a value of 1 instead of 0.
; You may also be able to check an option box to enable IP routing under advanced network and
; TCP/IP properties instead of using the registry editor. The Win2000 "router" machine will
; now know about both networks, and the machines on your 10 and 172.16 networks will point to
; the Win2K server PC as their default gateway. Or (I think this might be what you're after)
; the 172.16 machines point to the Win2K server PC as their default gateway, and the Win2K
; server PC points out to the broadband router as it's default gateway. Depending on your setup,
; you may need to put a static route in the broadband router for the 172.16 net with a next hop
; of the 10 interface on the Win2K server PC.
==========================================================
原文出處轉貼:
http://au.answers.yahoo.com/question/index.php?qid=1006051024871
|