Route command usage
Explain the result of the route print command
Network Address netmask gateway address interface Metric
0.0.0.0 0.0.0.0 192.168.0.6 192.168.0.103 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.0.0 255.255.255.0 192.168.0.103 192.168.0.103 1
192.168.0.103 255.255.255.255 127.0.0.1 127.0.0.1 1
192.168.0.255 255.255.255.255 192.168.0.103 192.168.0.103 1
224.0.0.0 224.0.0.0 192.168.0.103 192.168.0.103 1
255.255.255.255 255.255.255.255 192.168.0.103 192.168.0.103 1
Your local IP Address: 192.168.0.103, Gateway 192. 168. 0. 6. The first one is the default route.
Article 2, 127.0.0.0, local loopback
Article 3: subnetsearch address, hello package
Article 4: Search for the local address and loopback.
Article 5 broadcast on this website
Article 6 route from the address 224.0.0.0 to the address on the local machine.
Article 7 full-network broadcast: the local machine issues a broadcast
Explanation from Baidu:
To understand the meaning of the information in these columns, you need to know a little about how the router works. The router works to coordinate the communication between one network and the other. Therefore, a vro contains multiple NICs, each of which is connected to different CIDR blocks.
When a user sends a data packet to a different network segment outside the local machine, the data packet will be sent to the router. The router will decide which network segment the data packet should be forwarded. It does not matter if the router is connected to two or more network segments. The decision-making process is the same, and the decision-making process is based on the route table.
If you want to view the content displayed on the screen after executing the "route print" command, you will find that the route table is divided into five columns. The first column is the destination network address. Lists all the CIDR blocks connected to the vro. The netmask column provides the subnet mask of the network segment, rather than the subnet mask of the network adapter connected to the network segment. This basically allows the router to determine the destination network address class.
The third column is the gateway. Once the vro determines the destination network to which the packet will be forwarded, The vro will view the gateway list. The gateway table tells the router which IP address the packet should be forwarded to achieve the destination network.
The interface column tells the vro which Nic is connected to the appropriate destination network. Technically, the interface column only tells the IP address assigned to the NIC by the router. The network adapter connects the router to the destination network. However, the router is very smart and knows which physical Nic the address is bound.
The last column is the measurement. Measurement itself is a science. However, I will try to explain to you briefly what they do. One of the best ways I have heard of interpreting this is to use the airport vocabulary. Imagine that I need to fly from Garot, North Carolina to Miami, Florida. Because Garot airport is very large, I have many options to go to Miami. I can take a flight from Northwest Airlines. The flight took me to Detroit in Michigan and then flew from Detroit to Miami. I can also fly to Houston on a continental airline flight and then to Miami. Another option is to fly directly to Miami on an American Airline plane. Which line should I choose?
In real life, there are many factors worth considering, such as the plane ticket price and departure time. However, let's assume that everything is the same. If the flights are the same except for the routes, I will select the least stopover flights. It will make me reach the destination at the fastest speed. Due to the small number of stays, there will be fewer opportunities for problems in connection, and problems such as lost luggage will also be reduced.
Routing works in the same way. In many cases, a vro has many ways to send a data packet. In this case, it is meaningful to send data packets in the shortest (or the most reliable) path. This is where measurement plays a role. Windows generally does not view measurement columns unless there are many paths to a destination. If there are multiple paths, Windows will view the measurement column to determine the shortest path. This is a very simple explanation. However, this explanation illustrates the key points.