Route print in Windows

Source: Internet
Author: User

FirstWindows cmdRun the following command:

C: \ Documents ents and Settings \ 1st>Route print

========================================================== ====================================

Interface list

0x1 ................... MS TCPLoopback interface

0x2... 00 0a E4 54 B7 20... RealTek rtl8139 family PCI fastEthernet NIC-

Acket Scheduler Miniport

========================================================== ============================== Active routes:

Network destination netmask Gateway Interface Metric

0.0.0 . 0 0.0.0 . 0 192.168.0.13 192.168.0.3 30

0.0.0 . 0 0.0.0 . 0 192.168.0.1 192.168.0.3 40

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.3 192.168.0.3 30

192.168.0.3 255.255.255.255 127.0.0.1 127.0.0.1 30

192.168.0.255 255.255.255.255 192.168.0.3 192.168.0.3 30

224.0.0.0 240.0.0.0 192.168.0.3 192.168.0.3 30

255.255.255.255 255.255.255.255 192.168.0.3 192.168.0.3 1

Default Gateway: 192.168.0.13

========================================================== ====================================

Persistent routes:

None

In the displayed content column:

Network destination indicates the destination network

Netmask indicates the subnet mask

Gateway address

Interface interface (NIC)

Metric indicates the route priority.

The destination network and mask are full.0Indicates any network. For example:

Network destination netmask Gateway Interface Metric

0.0.0 . 0 0.0.0 . 0 192.168.0.13 192.168.0.3 30

Indicates that IP packets sent from the Internet to any network will be sent to the gateway device 192.168.0.3. This Completely zero route usually refers to a route on the Internet, also knownDefault routeGateway.

Can you notice that there are two default routes:

Network destination netmask Gateway Interface Metric

0.0.0 . 0 0.0.0 . 0 192.168.0.13 192.168.0.3 30

0.0.0 . 0 0.0.0 . 0 192.168.0.1 192.168.0.3 40

The difference between them is that the metric value is different, so what is the use of such a route?

As mentioned above, the metric value indicates the priority of the route. Therefore, theoretically, the two routes canMutual backupIn other words, there are two devices or hosts that can access the Internet in the network segment of the local host 192.168.0.3/24, which are 192.168.0.13 and 192.168.0.1, respectively, assume that the local host automatically switches the gateway to 192.168.0.1 after the device 192.168.0.13 or the host loses power, note that the local host is switched to the gateway only when the power is down at 192.168.0.13 or the local host is isolated from the network. If the gateway is unplugged from the Internet (such as ADSL) the local host does not have any action.

Changing the metric value to equal and whether it can be implementedServer Load balancerWhat about it?

Two 2 m ADSL instances add up to 4 m, which is very attractive to some users.

The answer is theoretically acceptable. Whether most routers can implement Windows 2000 or not. I have not performed any experiments to confirm it. If you are free, you can find an environment to do it. Don't forget to tell me the result!

After reading the above, you may find out why ADSL sometimes fails to get online.

As we all know, after we establish an ADSL connection, there will be at least two local connections in the network link; one is the connection of the physical Nic, and the other is the connection of the ADSL pppoe virtual connection, the route pirnt route table corresponds to two interfaces. Generally, if youIf the gateway address has been set on the physical NicADSLObtain a gateway address after dialing.MetricValue RatioADSLThe obtained GatewayMetricIf the value is highADSLYou cannot access the Internet after you dial the number.Of course, there is another premise that the gateway device referred to by the physical network card does not have the ability to connect to the Internet.

The detailed explanation is as follows:

 

Network destination | netmask | gateway | interface | Metric
0.0.0.0 0.0.0.0 192.168.2.1 192.168.2.6 20
127.0.0.1 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.2.0 255.255.255.0 192.168.2.6 192.168.2.6 20
192.168.2.6 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.2.255 255.255.255.255 192.168.2.6 192.168.2.6 20
224.0.0.0 224.0.0.0 192.168.2.6 192.168.2.6 20
255.255.255.255 255.255.255.255 192.168.2.6 192.168.2.6 1

Active routes: Active route
Destination network segment of network destination
Netmask Subnet Mask
IP address of the next hop router entry of the Gateway
The egress IP address of the router to which the interface reaches the destination.
A router uses interfaces and gateways to define a link to the next vro. Generally, interfaces and gateways are in the same network segment,In special cases, the gateway may not be on the network segment of the current interface. For example, if you configure recursive route finding, the metric hop count and the quality of the route record are usually, if there are multiple route records that reach the same destination, the router will use the route with a small metric value. If both wired and wireless networks are connected, the cable is usually 20, wireless is 30 persistent routes: manually configured static curing route, instant restart will not disappear

Article 1:

Network destination | netmask | gateway | interface | Metric

0.0.0.0 0.0.0.0 192.168.2.1 192.168.2.6 20

Default route: when the destination CIDR block of a data packet is not in your route recordData packets are sent there! The gateway of the default route is determined by the default gateway on your connection.
This route record means that when the destination CIDR block of a packet received is not in my route record, I will send the packet to the address 192.168.2.1 through the interface 192.168.2.6, this address is an interface of the next vro, so that this packet can be delivered to the next vro for processing, and it has nothing to do with me. The line quality of this route record: 20.

Article 2

Network destination | netmask | gateway | interface | Metric

127.0.0.1 255.0.0.0 127.0.0.1 127.0.0.1 1

Local Loop: all the addresses in the network segment 127.0.0.0 point to their own machines. If such data is received, the route quality 1

Article 3

Network destination | netmask | gateway | interface | Metric

192.168.2.0 255.255.255.0 192.168.2.6 192.168.2.6 20

Route record of the direct connection CIDR Block: What to do when the router receives a packet sent to the direct connection CIDR Block? In this case, the interface and gateway of the route record are the same. When I receive a packet whose destination CIDR block is 192.168.2.0, I will send the packet directly through the interface 192.168.2.6 because the port is directly connected to the CIDR Block 192.168.2.0, line quality of this route record 20

Article 4

Network destination | netmask | gateway | interface | Metric

192.168.2.6 255.255.255.255 127.0.0.1 127.0.0.1 20

Local Host Routing: what will happen when the router receives the packet sent to itself. When I receive a packet whose destination CIDR block is 192.168.2.6, I will accept the packet because the packet is sent to myself and the route record's line quality is 20

Article 5

Network destination | netmask | gateway | interface | Metric

192.168.2.255 255.255.255.255 192.168.2.6 192.168.2.6 20

Local broadcast route: What to do when the vro receives the local broadcast sent to the CIDR Block. When I receive a broadcast packet whose destination CIDR block is 192.168.2.255, I will send the data from the 192.168.2.6 interface as a broadcast. The route record's line quality is 20.

Article 6

Network destination | netmask | gateway | interface | Metric

224.0.0.0 224.0.0.0 192.168.2.6 192.168.2.6 20

Multicast Route: What to do when a vro receives a multicast packet.
When I receive a multicast packet, I will send the data from the 192.168.2.6 interface in the multicast situation. The route record's line quality is 20.

Article 7

Network destination | netmask | gateway | interface | Metric

255.255.255.255 255.255.255.255 192.168.2.6 192.168.2.6 1

broadcast route: What to do when the router receives an absolute broadcast. When I receive an absolute broadcast packet, it is sent out through 192.168.2.6.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.