The router's routing table, the network management is familiar with, but the Windows routing table, may understand the relatively few people. Today we'll take a look at the Windows routing table.
One, the Windows routing table
1. Use command route print to view routing table information
2. Routing name Interpretation
Interface list: Lists information about NIC lists on the computer
Active Routes: Active routing information
Network Destination: Destination network segment
Netmask: Subnet mask, with destination network segment specified network address range
Gateway: Gateways, also known as Next-hop routers
Interface: interface that defines the network interface that the local computer uses to send packets for a specific network destination address
Metric: The number of hops, which indicates the cost of the route, typically represents the number of hops to reach the destination address, and a hop number represents a router. Lower hop count means lower routing cost, higher priority
Default gateway: Defaults
Persistent Routes: Manually configure static routes
3, the Route table interpretation
First default route
0.0.0.0 0.0.0.0 when the system is destined for a packet that is not in the routing table, the system sends the packet through the 192.168.1.2 interface to 192.168.99.1 (the default gateway).
Second local loop
127.0.0.0 255.0.0.0 When a packet is sent to a 127.0.0.0 network segment, all packets sent to that segment are received by the system.
Routing of the third direct-connected network segment
192.168.1.0/24 when the system sends a packet to a 192.168.1.0/24 network segment, the system sends the packet through the 192.168.1.2 interface.
Fourth Local host route
When the system receives a packet with a destination address of the local network card IP address, the system will accept the packet.
Fifth local broadcast address
When the system needs to send a local broadcast packet of a direct-attached network segment, the system sends the packet from the 192.168.1.2 interface as a broadcast.
Sixth multicast routing
When a multicast packet is received by the system, the packet is sent from the 192.168.1.2 interface as a multicast.
Seventh broadcast routing
When an absolute broadcast packet is received by the system, the packet is sent through the 192.168.1.2 interface.
4. Operation Routing Table command
Route print: Print the current routing table
Route Delete: Delete a route
Route add: Adds a route that, if finally added with the –P option, means that static routes are permanently added and will not expire after reboot
Route change: Changing a route
II. operating Windows Routing table instances
The company has two networks: one is the office network 192.168.2.0/24, the gateway is: 192.168.2.1; One is the business network 192.168.1.0/24 that is used to access the Internet, the gateway is: 192.168.1.1. Now there is a computer using two network cards, a connection to the company's office network, the IP address is 192.168.2.8; The other is connected to the business network with an IP address of 192.168.1.8. This computer is now required to access both the office network and the Business network.
Remove default settings
Route Delete 0.0.0.0
External network routing
Route add 0.0.0.0 Mask 0.0.0.0 192.168.1.1–p
Intranet routing
Route add 192.168.2.0 Mask 255.255.255.0 192.168.2.1-p
Windows routing Table