Making use of the Route command-line device to watch and edit the computer's IP routing table. Route commands and syntax is as follows:
route [-f] [-p] [Command] [Destination] [mask Netmask] [Gateway] [metric Metric]] [if Interface]]
-f remove all the gateway's routing table entry. If this parameter is utilized in combination with a command, the routing table are going to be removed before operating the command.
-p When utilized with all the include command to route long term. This parameter is utilised in conjunction with the include command,
Windows 7 32bit, the system will route in between the persistent boot plan. By default, the method restarts without having reservation route. When used in conjunction with all the print command to display a listing of registered persistent routes.
dismiss all of the other routes are always the order of the corresponding persistent.
Command specify that you wish to operate the command (Add / Change / Delete / Print).
route kind:
You can find 3 routes
one. Host route map from a host on the neighborhood network to other hosts
command format:
route add-host destination_ip local_ip-interface interface
eg:
we want the nearby host interface hme0 (204.12.17.1) and an additional only C class in the adjacent host on the network (204.12.sixteen.100) to add a route in between the
# route add-host 204.twelve.16.a hundred 204.12.17.1-interface hme0
2. network routing of information packets from neighborhood host to allow transmission to other hosts around the neighborhood network on the
to another network to include a immediate route
command format:
route add-net destination_network_ip local_ip-netmask mask
eg:
class if we would like to C net mask inside the local host (204.twelve.17.1) and We noted above to include a route in between the networks (204.12.16.0 network) we are able to utilize the adhering to command:
# route add-net 204.twelve.16.0 204.twelve.17.1-netmask 255.255.255.0
three. default route to transfer the job of acquiring a route to a router. RIP and RDISC daemon can utilize the default route.
command format:
route add default hostname-interface interface
eg: include 1 for the nearby router (204.54.56.1) the default route,
Office 2010 Pro Plus Key, frequently Add a gateway and instantly take impact within the
# route add default 204.54.56.1-interface hme1
Vacation spot specify the route network goals.
mask Netmask relevant to the goals specified in the network using the network mask (also referred to as the subnet mask). If not specified, will use 255.255.255.255
Gateway addresses the definition with the specified network destination and subnet mask set to reach ahead or up coming hop IP deal with.
metric Metric for that route specifies an integer price metric (from 1 to 9999), once the routing table (with all the packet destination address to ahead the top match) to opt for a lot more than one route is often utilised.
if Interface will be the interface to entry the target index specified interface. The information that is sent to the A Interface A, sent to B's use with the interface B. This card arrives bundled with a quantity inside a segment with the IP, with the application of especially successful. For example, you bundle *. two *. 1 and two addresses,
Office Professional Plus, it is easy to specify a host route is to use a *. a hair, a fat one is *. two. Otherwise, by default,
Office 2007 Standard Key, are sent for the very same subnet with an IP hair.
To obtain a list of interfaces and their corresponding interface indexes, use the route print command to the show. You could use decimal or hexadecimal values for the interface index.
/? Displays support in the command prompt.
network database called Networks Hosts file as well as the title from the pc name database files are referenced all
destination or gateway to use the symbol identify. If the command is print or delete, destination and gateway
can also use wildcards,
Office 2010 Home And Business, you may omit the gateway parameters.
instance
To show the whole contents of IP routing table, sort:
route print
To screen 10. Begin the IP routing table routing, kind:
route print ten .*
To add a default gateway deal with of 192.168.12.1 with a default route, kind :
route include 0.0.0.0 mask 0.0.0.0 192.168.12.one