How to Use Win2000 Server to configure routes (figure)

Source: Internet
Author: User

Speaking of routers, hardware routers are familiar to everyone. The most typical is Cisco Series routers. Software routers are emerging products, such as tiny software's WinRoute Pro software router and vicomsoft's Internet gateway software router. These routing software work on the Windows operating systems we are familiar with, so that the PC can also achieve functions similar to the hardware router. Windows 2000 Server integrates powerful software routers. In this article, the author will start with the simplest Static Routing and analyze it through examples, so that readers can understand how to use Windows 2000 Server to configure routing.

In this instance, there are two different CIDR blocks: work1 for the Working Group and 10.0.0.2 for the IP address ~ 10.0.0.5, subnet mask: 255.0.0.0, Network Segment 2: work2, IP address allocated as 192.168.0.2 ~ 192.168.0.5. The subnet mask is 255.255.255.0. The computers in the two network segments use the Windows 98 operating system and the network structure is a peering network. To achieve mutual communication between the two network segments, IP packets must be forwarded through the router. We use a high-performance computer (Pentium 3 866 processor, 256 M memory, install Windows 7200 server as a software router between two network segments. (1)

The first step is to understand that a router is a storage and forwarding device between different network segments, it must have multiple network interfaces. That is to say, it must install multiple network adapters, in order to serve as a "bridge" between multiple network segments. In addition, the vro works in the TCP/IP network environment, and each network adapter must be bound with its own independent IP address.

To connect two network segments in this instance, you must install two network adapters on Windows 2000 Server, this time we used two TF-3239 t x 100 m NICs (using RealTek 8139 chip, PCI slot, RJ 45 single port ). when installing Windows 2000 Server, pay attention to the following points: 1. This computer with Windows 2000 Server is an independent server and does not need to be upgraded to a domain controller. When determining which workgroup it belongs to, it can be work1 or work2.2. when installing the network protocol, the TCP/IP protocol should be installed at least. 2. the RealTek 8139 Nic is an out-of-the-box Nic. When the system finds two NICs, install their drivers separately, until "Control Panel" -- "system" -- "hardware" -- "Device Manager" -- "Nic", there is no yellow exclamation mark, the device status is "working normally. If the network adapter is not working properly due to hardware conflicts, the vro cannot play a role. 3. bind an IP address to each network card, and act as the network interface of work1 and bind 10.0.0.1. (The Industrial Standard is to assign the first IP address of the network to the router interface .) The procedure is as follows: "Control Panel" -- "network and dial-up connection" -- "Local Connection", select "properties" -- "Internet Protocol (TCP/IP )", select "properties", select "Use the following IP Address", enter 10.0.0.1, The subnet mask is 255.0.0.0, the default gateway is "10.0.0.1", and click "OK ". use another Nic as the network interface of work2 and bind it to 192.168.0.1 (note: "Local Connection" corresponds to the first Nic, and "local connection 2" corresponds to the second Nic, so do not confuse it) the method is the same as above. You can click "advanced" in the "Internet Protocol (TCP/IP)" -- "properties" dialog box to check the nic ip Address binding status. (2 ).

Step 2: Start the route. There are two ways to start the routing service. One is to select "networking" on the "configure Server" tab displayed at startup ", click "Route" under the "networking" drop-down menu, and click "start"-"program"-"Management Tools"-"Routing and Remote Access ", open the Routing and Remote Access Manager, and you will see the Server icon named after this computer. Select this server, right-click it, and select "configure and enable Routing and Remote Access". (3) The "route and Remote Access Server Installation Wizard" appears ", follow the prompts to proceed step by step. Select "network router" in "public settings", and then select the Routing Protocol. The Protocol box should at least ensure that there is a TCP/IP, select it, and then click "request dial-up connection". When "Do You Want To request dial-up access to the remote network?" appears? ", Because we configure a local static route, select "no" and click "finish". The routing service is installed.

After starting the routing service, we can see that the subitem "internal", "loopback", "Local Connection", and "local connection 2" statuses are "enabled ", the connection status is "connected", where "Local Connection" and "device name" of "local connection 2" Are Our NIC models, these two interfaces can be used to connect two CIDR blocks in the LAN. In the "General" sub-item of "IP Route Selection", the subnet and traffic statistics of the two interfaces are given respectively.

In the Windows 98 System of Two CIDR blocks and other computers, select "Control Panel"> "network"> "TCP/IP-nic type" (RealTek 8139 in this example ), click "properties" and find the "Gateway" tab. the gateway to be added for the first CIDR block is 10.0.0.1 and the gateway to be added for the first CIDR block is 192.168.0.1. (4)

At this time, the router has initially played a role and can be used to connect to 10.0.0.2 ~ 10.0.0.5, and 192.168.0.2 ~ 192.168.0.5 two different network segments. We must conduct tests. The specific method is to select a computer in the first CIDR block to send data packets to any computer in the second CIDR Block and track the data packets forwarded by the router. On the computer 10.0.0.2, type tracert to 192.168.0.2 under "MS-DOS mode". The result is as follows:

Tracing Route to 192.168.0.2
Over a maximum over 5 of 30 hops:
0 10.0.0.2
1 10.0.0.1
2 192.168.0.1
3 192.168.0.2
Trace complete

The data packet successfully passes through two network interfaces and arrives at the destination. Then, Ping checks are used between the two machines to receive a response, proving that the two machines can transmit data to each other and connect the two network segments.

In fact, we can get how to use four NICs to connect to three computers. In many cases, we want to connect three computers with twisted pair wires, but we do not want to buy a hub. To save costs, we can buy another Nic and set a computer as a router, the other two computers configure IP addresses of different network segments and connect them through routers. In this way, although the peer network is inconvenient for online games, files can still be uploaded to each other and shared with the Internet. More importantly, you can build a Fast Ethernet network of more than 100 m, which cannot be achieved through thin cable interconnection.

Step 3: Configure static routes. If two routers are used to connect to three CIDR blocks (5), you must inform the first vro of the third cidr Block and the first CIDR Block of the third vro. This is Static Routing. The configuration method is as follows.

In the routing manager of the first vro, find "static route" in "IP Route Selection" and click the mouse

Right-click, open the "Static Routing" add dialog box, find the network interface of 10.0.0.1 (in this example, it is "Local Connection", and type the network number of the third network segment, enter 172.16.0.0 in the target (Note: This is the network number, not the Host IP address, so the last bit is 0). The network mask is 255.255.0.0.

The gateway is 172.16.0.1 (6). Similarly, you need to find the network interface of 172.16.0.1 in the third vro and add the "destination" as 10.0.0.0, the network mask is 255.0.0.0, And the gateway is a static route of 10.0.0.1. The method is the same as above.

It can be seen that the administrator needs to plan the network path and manually update the route table for Static Routing. Therefore, Static Routing is not applicable to large networks and only plays a role in small-scale LAN.

Finally, if the network type is client/server network, the router must be added to the domain so that the administrator can perform unified management through the domain controller.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.