• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8.6. IP Routing > Scripting Router Configuration

Scripting Router Configuration

NETSH is a command-line utility that can be used to script the configuration of a Windows 2000 router. To create a script of the current configuration pipe it to a text file using the netsh dump>filename command line. You can then edit the textfile as needed. The script can then be reapplied using the command netsh –f filename. For more information on writing a script file see the helpfile associated with RRAS.

Static routes can also be scripted from the command line by using the route command. For example, route add 192.168.20.0 mask 255.255.255.0 192.168.40.1 would add a route to the 192.168.20.0 network through the 192.168.40.1 interface. Adding these commands to a command file that runs at startup would rebuild a static routing table each time the computer starts up


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint