Static routes are a good option
for defining routes without having to resort to dynamic routing protocols. You can
Figure 11-20. Creating another new IPNAT interface
378 Microsoft Windows Server 2008 Administration
apply metrics to each of the routes you create to define its relative cost. Routes can be created
from the RRAS management console interface or from the command line. Adding,
viewing, and modifying the routing table from the command prompt involves the use of
the route add command. For example, to add a route to the 172.16.0.0 network with a
subnet mask of 255.255.0.0 through the gateway with the IP address 192.168.10.254 and
a metric of 1, you would use the following command:
Route add 176.16.0.0 255.255.0.0 192.168.10.254 1 16
The last parameter of this command (16) refers to the number representing the network
interface with which you want this route associated. On my server, my first local
area network connection has an interface number of 16. The question is, of course, how
Figure 11-21. Configuring external network interface for NAT
379 Chapter 11: Routing and Remote Access
do you know what the interface number is in the first place? All you have to do is run
the following command:
Route print
This commands outputs quite a bit of information, such as the interfaces that are on
your server, along with any routes that have been defined for IPv4 and IPv6.
Pages:
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416