Windows Route Routing Table Command
Display and modify entries in the local IP routing table.
grammar
route [-f] [-p] [Command [Destination] [mask Netmask] [Gateway] [metric Metric]] [if Interface]]
parameter
-f
Clear the routing table for all entries that are not the primary route (routes with net mask 255.255.255.255), loopback network route (routes with target 127.0.0.0, net mask 255.255.255.0), or multicast route (routes with target 224.0.0.0, net mask 240.0.0.0). If it is used in conjunction with one of the commands (such as add, change, or delete), the table is cleared before running the command.
-p
When used with the add command, the specified route is added to the registry and the IP routing table is initialized when the TCP/IP protocol is started. By default, added routes are not saved when the TCP/IP protocol is started. When used with the print command, a permanent route list is displayed. All other commands ignore this parameter. The location where the permanent route is stored in the registry is HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\PersistentRoutes.
Command
Specifies the command to run. The following table lists valid commands. Command Purpose
add Add route
Change Change existing routes
delete delete route
print print route Destination
Specifies the routed network destination address. The destination address can be an IP network address (where the host address bit of the network address is set to 0), for the host route is the IP address, and for the default route is 0.0.0.0.
mask subnetmask
Specifies the network mask (also known as the subnet mask) associated with the network destination address. The subnet mask can be an appropriate subnet mask for the IP network address, 255.255.255.255 for the host route and 0.0.0.0 for the default route. If ignored, use subnet mask 255.255.255.255.255. When defining routing, due to the relationship between the target address and the subnet mask, the target address cannot be more detailed than its corresponding subnet mask. In other words, if the bit of the subnet mask is 0, the corresponding bit in the target address cannot be set to 1.
Gateway
Specifies the previous or next hop IP address exceeding the achievable address set defined by the network target and subnet mask. For locally connected subnet routing, the gateway address is the IP address assigned to the interface of the connection subnet. For remote routes that need to be available through one or more routers, the gateway address is a directly accessible IP address assigned to adjacent routers.
metric Metric
Specifies the integer value of the required number of hops for the route (range 1 ~ 9999), which is used to select the route that best matches the destination address in the forwarding packet among multiple routes in the routing table. The selected route has the least number of hops. The number of hops can reflect the number of hops, the speed of the path, the reliability of the path, the path throughput, and the management properties.
if Interface
Specifies the interface index of the interface that the target can reach. Use the route print command to display a list of interfaces and their corresponding interface indexes. For interface indexes, you can use decimal or hexadecimal values. For hexadecimal values, add 0x to the hexadecimal number. When the if parameter is ignored, the interface is determined by the gateway address.
/?
Show help in the command prompt.
Comments
The larger value of a column in the routing table is caused by allowing TCP/IP to automatically determine the number of hops routed in the routing table based on the IP address, subnet mask and default gateway configuration of each LAN interface. The default automatic interface hop count determines the speed of each interface and adjusts the number of routing hops for each interface, so the route created by the fastest interface has the lowest number of hop count. To delete the large hop, disable the automatic determination of the interface hop in the advanced properties of the TCP/IP protocol for each LAN connection.
If the appropriate entry exists in the local network file in the systemroot\System32\Drivers\Etc folder, the name can be used for Destination. As long as the name can be broken down into IP addresses through the "Domain Name System" (DNS) query, it can be used for Gateway, and DNS query uses localhost files and NetBIOS name resolution stored in the systemroot\System32\Drivers\Etc folder.
If it is a print or delete command, the Gateway parameter can be ignored and wildcards are used to represent the target and gateway. The value of Destination can be a wildcard specified by the asterisk (*). If the specified target contains an asterisk (*) or a question mark (?), it is regarded as a wildcard that prints or deletes only the matching target route. An asterisk represents any character sequence, and a question mark represents any character. For example, 10.*.1, 192.168.*, 127.* and *224* are all effective uses of asterisk wildcards.
A combination of invalid target and subnet mask (net mask) values is used, and the "Route:bad gateway address netmask" error message will be displayed. This error occurs when one or more bits in the target are set to 1 and the corresponding bit in the subnet mask is set to 0. This situation can be checked by binary notation for the target and subnet mask. The subnet mask represented in binary includes two parts: a series of 1s representing the target network address part and a series of 0s representing the target host address part. Check the target to determine if some bits are set to 1 in the host address part of the target (defined by the subnet mask).
Only the route commands for Windows NT 4.0, Windows 2000, Windows Millennium Edition, and Windows XP support the -p parameter. This parameter is not supported by the route command for Windows 95 or Windows 98.
This command is only available if the Internet Protocol (TCP/IP) protocol is installed as a component of the network adapter attribute in a network connection.
example
To display the full content of the IP routing table, type:
route print
To display routes starting with 10. in the IP routing table, type:
route print 10.*
To add a default route with a default gateway address of 192.168.12.1, type:
route add 0.0.0.0 mask 0.0.0.0 192.168.12.1
To add a route with the target of 10.41.0.0, the subnet mask is 255.255.0.0, and the next hop address is 10.27.0.1, type:
route add 10.41.0.0 mask 255.255.0.0 10.27.0.1
To add a permanent route with a target of 10.41.0.0, subnet mask of 255.255.0.0, and next hop address of 10.27.0.1, type:
route -p add 10.41.0.0 mask 255.255.0.0 10.27.0.1
To add a route with the target of 10.41.0.0, the subnet mask is 255.255.0.0, the next hop address is 10.27.0.1, and the number of hops is 7, type:
route add 10.41.0.0 mask 255.255.0.0 10.27.0.1 metric 7
To add a route with the target of 10.41.0.0, the subnet mask is 255.255.0.0, the next hop address is 10.27.0.1, and the interface index is 0x3, type:
route add 10.41.0.0 mask 255.255.0.0 10.27.0.1 if 0x3
To delete a route with a target of 10.41.0.0 and a subnet mask of 255.255.0.0, type:
route delete 10.41.0.0 mask 255.255.0.0
To delete all routes starting with 10. in the IP routing table, type:
route delete 10.*
To change the next hop address of the route with a target of 10.41.0.0 and a subnet mask of 255.255.0.0 from 10.27.0.1 to 10.27.0.25, type:
route change 10.41.0.0 mask 255.255.0.0 10.27.0.25
route command
routing ip add/delete/set/show interface Add, delete, configure, or display general IP routing settings on the specified interface.
routing ip add/delete/set/show filter Add, delete, configure, or display IP packet filters on the specified interface.
routing ip add/delete/show boundary Add, delete, or display multicast boundary settings on the specified interface.
routing ip add/set ipiptunnel Add or configure the IP interface in the IP.
routing ip add/delete/set/show rtmroute Add, configure, or display unsustained routing table manager routes.
routing ip add/delete/set/show persistentroute Add, delete, configure, or display persistentroute.
routing ip add/delete/set/show preferenceforprotocol Add, delete, configure, or display priority of routing protocols.
routing ip add/delete/set/show scope Add, delete, or display multicast scope.
routing ip set/show loglevel configures or displays global IP record levels.
routing ip show helper Displays all Netsh utility sub-environments of the IP.
routing ip show protocol Displays all running IP routing protocols.
routing ip show mfe displays multicast forwarding items.
routing ip show mfestats Show multicast forwarding items statistics.
routing ip show boundarystats Display IP multicast boundary.
routing ip show rtmdestinations Displays the targets in the routing table manager routing table.
routing ip show rtmroutes Display routes in the routing table manager routing table.
routing ip nat set/show global Configure or display global Network Address Translation (NAT) settings.
routing ip nat add/delete/set/show interface Add, delete, configure, or display NAT settings for the specified interface.
routing ip nat add/delete addressrange Add or delete an address range from the NAT interface public address pool.
routing ip nat add/delete addressmapping Add or delete NAT address map.
routing ip nat add/delete portmapping Add or delete NAT portmapping.
routing ip autodhcp set/show global configures or displays global DHCP allocator parameters.
routing ip autodhcp set/show interface Configures or displays the DHCP allocator settings for the specified interface.
routing ip autodhcp add/delete exclusion Add or delete an exclusion range from the DHCP allocator address range.
routing ip dnsproxy set/show global configures or displays global DNS proxy parameters.
routing ip dnsproxy set/show interface Configures or displays DNS proxy parameters for the specified interface.
routing ip igmp set/show global Configure or display IGMP global settings.
routing ip igmp add/delete/set/show interface Add, delete, configure, or display IGMP on the specified interface.
routing ip igmp add/delete staticgroup Add or delete static multicast group for the specified interface.
routing ip igmp show grouptable Displays the IGMP host group table.
routing ip igmp show ifstats Displays IGMP statistics for each interface.
routing ip igmp show iftable Displays the IGMP host group for each interface.
routing ip igmp show proxygrouptable Displays the IGMP group table of the IGMP proxy interface.
routing ip igmp show rasgrouptable Displays the group table of the Internet interface used by the remote access server.
routing ip ospf set/show global configure or display global OSPF settings.
routing ip ospf add/delete/set/show interface Add, delete, configure, or display OSPF on the specified interface.
routing ip ospf add/delete/set/show area Add, delete, configure, or display OSPF areas.
routing ip ospf add/delete/show range Add, delete, configure, or display ranges on the specified OSPF area.
routing ip ospf add/delete/set/show virtif Add, delete, configure, or display the OSPF virtual interface.
routing ip ospf add/delete/show neighbor Add, delete, configure, or display OSPF neighbor.
routing ip ospf add/delete/show protofilter Add, delete, configure, or display routing information sources for OSPF external routes.
routing ip ospf add/delete/show routefilter Add, delete, configure, or display route filtering for OSPF external routes.
routing ip ospf show areasts Display OSPF area statistics.
routing ip ospf show lsdb Displays OSPF link status database.
routing ip ospf show virtifstats Display OSPF virtual link statistics.
routing ip relay set global Configure the global settings of the DHCP Relay Agent.
routing ip relay add/delete/set interface Add, delete, or configure the DHCP Relay Agent settings on the specified interface.
routing ip relay add/delete dhcpserver Add or delete the IP address of the DHCP server from the DHCP server address list.
routing ip relay show ifbinding Displays the IP address binding of the interface.
routing ip relay show ifconfig Displays the DHCP Relay Agent configuration for each interface.
routing ip relay show ifstats Displays DHCP statistics for each interface.
routing ip rip set/show global configures the RIP global settings of the IP.
routing ip rip add/delete/set/show interface Add or configure the RIP settings for the IP on the specified interface.
routing ip rip add/delete peerfilter Add or delete RIP peer filter.
routing ip rip add/delete acceptfilter Add or delete RIP routing filters from the accepted route list.
routing ip rip add/delete announcementfilter Add or delete RIP routing filters from the published routing list.
routing ip rip add/delete/show neighbor Add or delete RIP neighbor.
routing ip rip set/show flags Configure IP RIP advanced settings on the specified interface.
routing ip rip show globalstats Display global RIP parameters.
routing ip rip show ifbinding Displays the IP address binding of the interface.
routing ip rip show ifstats Displays RIP statistics for each interface.
IPX netsh routing command
routing ipx add/set staticroute Add or configure static IPX routing in the IPX routing table.
routing ipx add/set staticservice Add or configure static SAP services in the SAP service table.
routing ipx add/set filter Add or configure IPX packet filter on the specified interface.
routing ipx add/set interface Enable IPX routing on the requested dial-up interface, or configure IPX settings on the specified interface.
routing ipx set global Configure global IPX routing settings.
routing ipx rip add/set filter Add and configure RIP routing filter.
routing ipx rip set global Configure the RIP settings for global IPX.
routing ipx rip set interface Configure the RIP settings for IPX on the specified interface.
routing ipx sap add/set filter Add or configure SAP service filter.
routing ipx sap set global Configure SAP settings for global IPX.
routing ipx sap set interface Configure the SAP settings for IPX on the specified interface.
routing ipx netbios add nbname Adds a static NETBIOS name to the IPX NetBIOS name table.
routing ipx netbios set interface Configure IPX-based NetBIOS settings on the specified interface.
route English instructions help
Manipulates network routing tables.
ROUTE [-f] [-p] [command [destination]
[MASK netmask] [gateway] [METRIC metric] [IF interface]
-f Clears the routing tables of all gateway entries. If this is
used in conjunction with one of the commands, the tables are
cleared prior to running the command.
-p When used with the ADD command, makes a route persistent across
boots of the system. By default, routes are not preserved
when the system is restarted. Ignored for all other commands,
which always affect the appropriate persistent routes. This
option is not supported in Windows 95.
command One of these:
PRINT Prints a route
ADD Adds a route
DELETE Deletes a route
CHANGE Modifies an existing route
destination Specifies the host.
MASK Specifies that the next parameter is the 'netmask' value.
netmask Specifies a subnet mask value for this route entry.
If not specified, it defaults to 255.255.255.255.
gateway Specifies gateway.
interface the interface number for the specified route.
METRIC specifies the metric, ie. cost for the destination.
All symbolic names used for destination are looked up in the network database
file NETWORKS. The symbolic names for gateway are looked up in the host name
database file HOSTS.
If the command is PRINT or DELETE. Destination or gateway can be a wildcard,
(wildcard is specified as a star '*'), or the gateway argument may be omitted.
If Dest contains a * or ?, it is treated as a shell pattern, and only
matching destination routes are printed. The '*' matches any string,
and '?' matches any one char. Examples: 157.*.1, 157.*, 127.*, *224*.
The PRINT command will show both IPv4 and IPv6 routes, but the ADD, DELETE,
and CHANGE commands work only for IPv4 routes. For IPv6 routes, use
the 'interface ipv6' context in .
Diagnostic Notes:
Invalid MASK generates an error, that is when (DEST & MASK) != DEST.
Example> route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1 IF 1
The route addition failed: The specified mask parameter is invalid.
(Destination & Mask) != Destination.
Examples:
> route PRINT
> route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2
destination^ ^mask ^gateway metric^ ^
Interface^
If IF is not given, it tries to find the best interface for a given
gateway.
> route PRINT
> route PRINT 157* .... Only prints those matching 157*
> route CHANGE 157.0.0.0 MASK 255.0.0.0 157.55.80.5 METRIC 2 IF 2
CHANGE is used to modify gateway and/or metric only.
> route PRINT
> route DELETE 157.0.0.0
> route PRINT
Display and modify entries in the local IP routing table.
grammar
route [-f] [-p] [Command [Destination] [mask Netmask] [Gateway] [metric Metric]] [if Interface]]
parameter
-f
Clear the routing table for all entries that are not the primary route (routes with net mask 255.255.255.255), loopback network route (routes with target 127.0.0.0, net mask 255.255.255.0), or multicast route (routes with target 224.0.0.0, net mask 240.0.0.0). If it is used in conjunction with one of the commands (such as add, change, or delete), the table is cleared before running the command.
-p
When used with the add command, the specified route is added to the registry and the IP routing table is initialized when the TCP/IP protocol is started. By default, added routes are not saved when the TCP/IP protocol is started. When used with the print command, a permanent route list is displayed. All other commands ignore this parameter. The location where the permanent route is stored in the registry is HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\PersistentRoutes.
Command
Specifies the command to run. The following table lists valid commands. Command Purpose
add Add route
Change Change existing routes
delete delete route
print print route Destination
Specifies the routed network destination address. The destination address can be an IP network address (where the host address bit of the network address is set to 0), for the host route is the IP address, and for the default route is 0.0.0.0.
mask subnetmask
Specifies the network mask (also known as the subnet mask) associated with the network destination address. The subnet mask can be an appropriate subnet mask for the IP network address, 255.255.255.255 for the host route and 0.0.0.0 for the default route. If ignored, use subnet mask 255.255.255.255.255. When defining routing, due to the relationship between the target address and the subnet mask, the target address cannot be more detailed than its corresponding subnet mask. In other words, if the bit of the subnet mask is 0, the corresponding bit in the target address cannot be set to 1.
Gateway
Specifies the previous or next hop IP address exceeding the achievable address set defined by the network target and subnet mask. For locally connected subnet routing, the gateway address is the IP address assigned to the interface of the connection subnet. For remote routes that need to be available through one or more routers, the gateway address is a directly accessible IP address assigned to adjacent routers.
metric Metric
Specifies the integer value of the required number of hops for the route (range 1 ~ 9999), which is used to select the route that best matches the destination address in the forwarding packet among multiple routes in the routing table. The selected route has the least number of hops. The number of hops can reflect the number of hops, the speed of the path, the reliability of the path, the path throughput, and the management properties.
if Interface
Specifies the interface index of the interface that the target can reach. Use the route print command to display a list of interfaces and their corresponding interface indexes. For interface indexes, you can use decimal or hexadecimal values. For hexadecimal values, add 0x to the hexadecimal number. When the if parameter is ignored, the interface is determined by the gateway address.
/?
Show help in the command prompt.
Comments
The larger value of a column in the routing table is caused by allowing TCP/IP to automatically determine the number of hops routed in the routing table based on the IP address, subnet mask and default gateway configuration of each LAN interface. The default automatic interface hop count determines the speed of each interface and adjusts the number of routing hops for each interface, so the route created by the fastest interface has the lowest number of hop count. To delete the large hop, disable the automatic determination of the interface hop in the advanced properties of the TCP/IP protocol for each LAN connection.
If the appropriate entry exists in the local network file in the systemroot\System32\Drivers\Etc folder, the name can be used for Destination. As long as the name can be broken down into IP addresses through the "Domain Name System" (DNS) query, it can be used for Gateway, and DNS query uses localhost files and NetBIOS name resolution stored in the systemroot\System32\Drivers\Etc folder.
If it is a print or delete command, the Gateway parameter can be ignored and wildcards are used to represent the target and gateway. The value of Destination can be a wildcard specified by the asterisk (*). If the specified target contains an asterisk (*) or a question mark (?), it is regarded as a wildcard that prints or deletes only the matching target route. An asterisk represents any character sequence, and a question mark represents any character. For example, 10.*.1, 192.168.*, 127.* and *224* are all effective uses of asterisk wildcards.
A combination of invalid target and subnet mask (net mask) values is used, and the "Route:bad gateway address netmask" error message will be displayed. This error occurs when one or more bits in the target are set to 1 and the corresponding bit in the subnet mask is set to 0. This situation can be checked by binary notation for the target and subnet mask. The subnet mask represented in binary includes two parts: a series of 1s representing the target network address part and a series of 0s representing the target host address part. Check the target to determine if some bits are set to 1 in the host address part of the target (defined by the subnet mask).
Only the route commands for Windows NT 4.0, Windows 2000, Windows Millennium Edition, and Windows XP support the -p parameter. This parameter is not supported by the route command for Windows 95 or Windows 98.
This command is only available if the Internet Protocol (TCP/IP) protocol is installed as a component of the network adapter attribute in a network connection.
example
To display the full content of the IP routing table, type:
route print
To display routes starting with 10. in the IP routing table, type:
route print 10.*
To add a default route with a default gateway address of 192.168.12.1, type:
route add 0.0.0.0 mask 0.0.0.0 192.168.12.1
To add a route with the target of 10.41.0.0, the subnet mask is 255.255.0.0, and the next hop address is 10.27.0.1, type:
route add 10.41.0.0 mask 255.255.0.0 10.27.0.1
To add a permanent route with a target of 10.41.0.0, subnet mask of 255.255.0.0, and next hop address of 10.27.0.1, type:
route -p add 10.41.0.0 mask 255.255.0.0 10.27.0.1
To add a route with the target of 10.41.0.0, the subnet mask is 255.255.0.0, the next hop address is 10.27.0.1, and the number of hops is 7, type:
route add 10.41.0.0 mask 255.255.0.0 10.27.0.1 metric 7
To add a route with the target of 10.41.0.0, the subnet mask is 255.255.0.0, the next hop address is 10.27.0.1, and the interface index is 0x3, type:
route add 10.41.0.0 mask 255.255.0.0 10.27.0.1 if 0x3
To delete a route with a target of 10.41.0.0 and a subnet mask of 255.255.0.0, type:
route delete 10.41.0.0 mask 255.255.0.0
To delete all routes starting with 10. in the IP routing table, type:
route delete 10.*
To change the next hop address of the route with a target of 10.41.0.0 and a subnet mask of 255.255.0.0 from 10.27.0.1 to 10.27.0.25, type:
route change 10.41.0.0 mask 255.255.0.0 10.27.0.25
route command
routing ip add/delete/set/show interface Add, delete, configure, or display general IP routing settings on the specified interface.
routing ip add/delete/set/show filter Add, delete, configure, or display IP packet filters on the specified interface.
routing ip add/delete/show boundary Add, delete, or display multicast boundary settings on the specified interface.
routing ip add/set ipiptunnel Add or configure the IP interface in the IP.
routing ip add/delete/set/show rtmroute Add, configure, or display unsustained routing table manager routes.
routing ip add/delete/set/show persistentroute Add, delete, configure, or display persistentroute.
routing ip add/delete/set/show preferenceforprotocol Add, delete, configure, or display priority of routing protocols.
routing ip add/delete/set/show scope Add, delete, or display multicast scope.
routing ip set/show loglevel configures or displays global IP record levels.
routing ip show helper Displays all Netsh utility sub-environments of the IP.
routing ip show protocol Displays all running IP routing protocols.
routing ip show mfe displays multicast forwarding items.
routing ip show mfestats Show multicast forwarding items statistics.
routing ip show boundarystats Display IP multicast boundary.
routing ip show rtmdestinations Displays the targets in the routing table manager routing table.
routing ip show rtmroutes Display routes in the routing table manager routing table.
routing ip nat set/show global Configure or display global Network Address Translation (NAT) settings.
routing ip nat add/delete/set/show interface Add, delete, configure, or display NAT settings for the specified interface.
routing ip nat add/delete addressrange Add or delete an address range from the NAT interface public address pool.
routing ip nat add/delete addressmapping Add or delete NAT address map.
routing ip nat add/delete portmapping Add or delete NAT portmapping.
routing ip autodhcp set/show global configures or displays global DHCP allocator parameters.
routing ip autodhcp set/show interface Configures or displays the DHCP allocator settings for the specified interface.
routing ip autodhcp add/delete exclusion Add or delete an exclusion range from the DHCP allocator address range.
routing ip dnsproxy set/show global configures or displays global DNS proxy parameters.
routing ip dnsproxy set/show interface Configures or displays DNS proxy parameters for the specified interface.
routing ip igmp set/show global Configure or display IGMP global settings.
routing ip igmp add/delete/set/show interface Add, delete, configure, or display IGMP on the specified interface.
routing ip igmp add/delete staticgroup Add or delete static multicast group for the specified interface.
routing ip igmp show grouptable Displays the IGMP host group table.
routing ip igmp show ifstats Displays IGMP statistics for each interface.
routing ip igmp show iftable Displays the IGMP host group for each interface.
routing ip igmp show proxygrouptable Displays the IGMP group table of the IGMP proxy interface.
routing ip igmp show rasgrouptable Displays the group table of the Internet interface used by the remote access server.
routing ip ospf set/show global configure or display global OSPF settings.
routing ip ospf add/delete/set/show interface Add, delete, configure, or display OSPF on the specified interface.
routing ip ospf add/delete/set/show area Add, delete, configure, or display OSPF areas.
routing ip ospf add/delete/show range Add, delete, configure, or display ranges on the specified OSPF area.
routing ip ospf add/delete/set/show virtif Add, delete, configure, or display the OSPF virtual interface.
routing ip ospf add/delete/show neighbor Add, delete, configure, or display OSPF neighbor.
routing ip ospf add/delete/show protofilter Add, delete, configure, or display routing information sources for OSPF external routes.
routing ip ospf add/delete/show routefilter Add, delete, configure, or display route filtering for OSPF external routes.
routing ip ospf show areasts Display OSPF area statistics.
routing ip ospf show lsdb Displays OSPF link status database.
routing ip ospf show virtifstats Display OSPF virtual link statistics.
routing ip relay set global Configure the global settings of the DHCP Relay Agent.
routing ip relay add/delete/set interface Add, delete, or configure the DHCP Relay Agent settings on the specified interface.
routing ip relay add/delete dhcpserver Add or delete the IP address of the DHCP server from the DHCP server address list.
routing ip relay show ifbinding Displays the IP address binding of the interface.
routing ip relay show ifconfig Displays the DHCP Relay Agent configuration for each interface.
routing ip relay show ifstats Displays DHCP statistics for each interface.
routing ip rip set/show global configures the RIP global settings of the IP.
routing ip rip add/delete/set/show interface Add or configure the RIP settings for the IP on the specified interface.
routing ip rip add/delete peerfilter Add or delete RIP peer filter.
routing ip rip add/delete acceptfilter Add or delete RIP routing filters from the accepted route list.
routing ip rip add/delete announcementfilter Add or delete RIP routing filters from the published routing list.
routing ip rip add/delete/show neighbor Add or delete RIP neighbor.
routing ip rip set/show flags Configure IP RIP advanced settings on the specified interface.
routing ip rip show globalstats Display global RIP parameters.
routing ip rip show ifbinding Displays the IP address binding of the interface.
routing ip rip show ifstats Displays RIP statistics for each interface.
IPX netsh routing command
routing ipx add/set staticroute Add or configure static IPX routing in the IPX routing table.
routing ipx add/set staticservice Add or configure static SAP services in the SAP service table.
routing ipx add/set filter Add or configure IPX packet filter on the specified interface.
routing ipx add/set interface Enable IPX routing on the requested dial-up interface, or configure IPX settings on the specified interface.
routing ipx set global Configure global IPX routing settings.
routing ipx rip add/set filter Add and configure RIP routing filter.
routing ipx rip set global Configure the RIP settings for global IPX.
routing ipx rip set interface Configure the RIP settings for IPX on the specified interface.
routing ipx sap add/set filter Add or configure SAP service filter.
routing ipx sap set global Configure SAP settings for global IPX.
routing ipx sap set interface Configure the SAP settings for IPX on the specified interface.
routing ipx netbios add nbname Adds a static NETBIOS name to the IPX NetBIOS name table.
routing ipx netbios set interface Configure IPX-based NetBIOS settings on the specified interface.
route English instructions help
Manipulates network routing tables.
ROUTE [-f] [-p] [command [destination]
[MASK netmask] [gateway] [METRIC metric] [IF interface]
-f Clears the routing tables of all gateway entries. If this is
used in conjunction with one of the commands, the tables are
cleared prior to running the command.
-p When used with the ADD command, makes a route persistent across
boots of the system. By default, routes are not preserved
when the system is restarted. Ignored for all other commands,
which always affect the appropriate persistent routes. This
option is not supported in Windows 95.
command One of these:
PRINT Prints a route
ADD Adds a route
DELETE Deletes a route
CHANGE Modifies an existing route
destination Specifies the host.
MASK Specifies that the next parameter is the 'netmask' value.
netmask Specifies a subnet mask value for this route entry.
If not specified, it defaults to 255.255.255.255.
gateway Specifies gateway.
interface the interface number for the specified route.
METRIC specifies the metric, ie. cost for the destination.
All symbolic names used for destination are looked up in the network database
file NETWORKS. The symbolic names for gateway are looked up in the host name
database file HOSTS.
If the command is PRINT or DELETE. Destination or gateway can be a wildcard,
(wildcard is specified as a star '*'), or the gateway argument may be omitted.
If Dest contains a * or ?, it is treated as a shell pattern, and only
matching destination routes are printed. The '*' matches any string,
and '?' matches any one char. Examples: 157.*.1, 157.*, 127.*, *224*.
The PRINT command will show both IPv4 and IPv6 routes, but the ADD, DELETE,
and CHANGE commands work only for IPv4 routes. For IPv6 routes, use
the 'interface ipv6' context in .
Diagnostic Notes:
Invalid MASK generates an error, that is when (DEST & MASK) != DEST.
Example> route ADD 157.0.0.0 MASK 155.0.0.0 157.55.80.1 IF 1
The route addition failed: The specified mask parameter is invalid.
(Destination & Mask) != Destination.
Examples:
> route PRINT
> route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2
destination^ ^mask ^gateway metric^ ^
Interface^
If IF is not given, it tries to find the best interface for a given
gateway.
> route PRINT
> route PRINT 157* .... Only prints those matching 157*
> route CHANGE 157.0.0.0 MASK 255.0.0.0 157.55.80.5 METRIC 2 IF 2
CHANGE is used to modify gateway and/or metric only.
> route PRINT
> route DELETE 157.0.0.0
> route PRINT