Let's take a look at some examples of how to configure static routing using the route command :
Display static routing tables
Displaying static routing tables is quite easy, just use the route print command, see Figure 1 below:
In the route print output, the most important thing you'll see here is the interface list. Windows Server IP interfaces are labeled with the interface number. The interface number in Figure 1 is 16, 14, 1, 15, 20, and 12. These interface numbers are used whenever you add or delete routes in the routing table.
The second important thing in the output of this command is IPv4 Route Table. This table shows us the network destinations, network mask, default gateway, interface, and metric. It tells' Windows Server to know where to route the traffic.
Below it is an IPv6 routing table
Add a static route
So how can we add a static route using the command? The answer is simple, just use the route add command as follows:
route add 1.1.1.0 mask 255.255.255.0 10.0.1.1 if 1
As you can see in Figure 2, the results for our route addition have been confirmed 'OK!'
Figure 2: Using the route add command in Windows 2008
The important thing in the route add command is the network we want to add, its subnet, destination / gateway, and interface for that route.
Delete a static route
Deleting a static route is easier than adding a static route. All we need to do is use the route delete command for the network you want to delete, as shown in Figure 3 below.
Above, you have grasped the basics of configuring static routes using the command. Let's learn more about dynamic configuration.
Dynamic routing in Windows Server 2008 using RIPV2
As in the first part of the article, we talked about the advantages of configuring dynamic routing. So now we will give you the steps to configure RIPv2 in Windows 2008:
Figure 4: Adding the RRAS Role through the Network Policy and Access Services
Once installed, you can configure RRAS from the Server Manager application, but in this tutorial we use the Routing and Remove Access application.
Make sure that you make a configuration of what the Custom Configuration options related to RRAS protocol install. Then choose to install LAN ROUTING , then choose to launch the service.
You can see Network Interfaces controlled by RRAS and specific configurations for IPV4 and IPV6.
Here, you can expand the IPV4 section, go to General , then go to New Routing Protocol.
Next, select RIPV2 as your routing protocol.
Conclude
Windows Server 2008 has a hard static routing option and a highly flexible dynamic routing option - RIPV2. In this article, I have explained how OSPF has been removed from Windows 2008 and what we have personally felt about it. Besides, we also show you why you should use static routing more than routing. Finally, show you how to configure static routing with route commands and dynamic routing by installing RIPV2 in Windows 2008 Routing and Remote Access .