1. Explanation of the windows route table www.2cto.com route print-4 ============================ ========================================================== =====
Interface List
19 ...... 78 dd 08 a4 40 f4 ...... Bluetooth Device (Personal Area Network)
11 .. 00 27 10 5b 26 fc... Intel (R) Centrino (R) Advanced-N 6200 AGN
13... f0 de f1 08 58 f4 ...... Intel (R) 82577LM Gigabit Network Connection
15... 00 50 56 c0 00 01 ...... VMware Virtual Ethernet Adapter for VMnet1
16... 00 50 56 c0 00 08... VMware Virtual Ethernet Adapter for VMnet8
1 ...... Software Loopback Interface 1
23 .. 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
12 .. 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
21 .. 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
17 .. 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #4
20 .. 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #5
22 .. 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #6
========================================================== ======================================== IPv4 Route Table
========================================================== ==========================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.0.1 192.168.1.12 26
10.108.0.0 255.255.0.0 10.108.58.1 10.108.58.18 21
10.108.58.0 255.255.255.0 On-link 10.108.58.18 276
10.108.58.18 255.255.255.255 On-link 10.108.58.18 276
10.108.58.255 255.255.255.255 On-link 10.108.58.18 276
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.20.255 255.255.255.255 On-link 127.0.0.1 306
172.16.0.0 255.255.0.0 10.108.58.1 10.108.58.18 21
192.168.0.0 255.255.252.0 On-link 192.168.1.12 281
192.168.1.12 255.255.255.255 On-link 192.168.1.12 281
192.168.3.255 255.255.255.255 On-link 192.168.1.12 281
192.168.10.0 255.255.255.0 On-link 192.168.10.1 276
192.168.10.1 255.255.255.255 On-link 192.168.10.1 276
192.168.10.255 255.255.255.255 On-link 192.168.10.1 276
192.168.159.0 255.255.255.0 On-link 192.168.159.1 276
192.168.159.1 255.255.255.255 On-link 192.168.159.1 276
192.168.159.255 255.255.255.255 On-link 192.168.159.1 276
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 10.108.58.18 276
224.0.0.0 240.0.0.0 On-link 192.168.159.1 276
224.0.0.0 240.0.0.0 On-link 192.168.10.1 276
224.0.0.0 240.0.0.0 On-link 192.168.1.12 281
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 10.108.58.18 276
255.255.255.255 255.255.255.255 On-link 192.168.159.1 276
255.255.255.255 255.255.255.255 On-link 192.168.10.1 276
255.255.255.255 255.255.255.255 On-link 192.168.1.12 281
========================================================== ==========================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
172.21.10.0 255.255.255.0 172.16.56.190 1
10.108.0.0 255.255.0.0 10.108.58.1 1
172.16.0.0 255.255.0.0 10.108.58.1 1
========================================================== ========================================== Interface List: network card list Active Routes: Active route Network Destination: Destination CIDR Block Netmask: Subnet Mask. The Network address Gateway: Gateway, also known as the next hop router, is defined together with the Destination CIDR block, when sending an IP packet, the gateway defines the next hop server Interface: Interface for sending the packet to a specific network destination address. The Interface defines a specific network destination address, the Network Interface Metric used by the local computer to send data packets: Number of hops. The number of hops is used to indicate the route cost, which usually indicates the number of hops required to reach the target address, the number of hops represents passing through a vro. The lower the number of hops, the lower the routing cost, the higher the priority Persistent Routes: manually configure the static route www.2cto.com 2. windows route command Manipulates network routing tables. ROUTE [-f] [-p] [-4 |-6] 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 guest SS
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.-4 Force using limit 4.-6 Force using limit 6. 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 limit 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 *. Pattern match is only allowed in PRINT command.
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 PRINT-4
> Route PRINT-6
> Route PRINT 157 *... Only prints those matching 157 *> route ADD 157.0.0.0 MASK route 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 ADD 3ffe:/32 3ffe: 1> route CHANGE 157.0.0.0 MASK 0.0.0 157.55.80.5 METRIC 2 IF 2 CHANGE is used to modify gateway and/or metric only.> route DELETE 157.0.0.0
> Route DELETE 3ffe:/32 route print: print the current route table route delete: DELETE a route add: add a route. If the-p option is added, it indicates that a static route is added permanently, and the route change will not expire after restart: change a route. 3. Configure the dual Nic. network Environment: wired: can connect to the company intranet, cannot connect to the Internet wireless: can connect to the Internet, cannot connect to the company intranet default gateway is 192.168.0.1 our goal is to connect to both networks at the same time, and automatically select a route to allow access from both the Intranet and the Internet. Www.2cto.com 2. Configuration: Delete the default settings
Route delete 0.0.0.0
: Internet route, all wireless
Route add 0.0.0.0 mask 0.0.0.0 192.168.0.1-p
: The company's intranet is all in the 10. 108. *. * network segment. Add this route
Route add 10.108.0.0 mask route 255.0.0 10.108.58.1-p is so simple. The result is as follows (there are several other route configurations for other purposes) PING and try