Static route management distance

Source: Internet
Author: User

Tutorial Background: "The Management Distance of IPV4 static routes pointing to the next hop address is 1, and the Management Distance of static routes pointing to the outbound interface is 0. if there are two static routes pointing to the same target network, one pointing to the next hop address and the other pointing to the outbound interface, then the next route-the route with a low Management Distance value-is selected"


The experiment below is to verify whether this sentence is correct. The experiment topology is as follows:


650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/0512435433-0.jpg "title =" 112.jpg" draggable = "true" has_check_key_word = "true" style = "float: none;"/>

Now write two static routes on R1:

R1 (config) # ip route 1.1.1.0 255.255.0 12.1.1.2

R1 (config) # ip route 1.1.1.0 255.255.255.0 fa0/1

View the route table and the result is inconsistent with that in the book.

1.0.0.0/24 is subnetted, 1 subnets

S 1.1.1.0 [1/0] via 12.1.1.2

Is directly connected, FastEthernet0/1

Shouldn't I select the next hop as the egress route at the moment as stated in the book?

Then Ping it. If the next hop is selected as the egress route, the proxy ARP cannot be enabled in the Ethernet environment ), but the result is load balancing.

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/05124355F-1.jpg "title =" 113.jpg" draggable = "true" has_check_key_word = "true"/>



650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/0512435541-2.jpg "style =" float: none; "title =" 114.jpg" draggable = "true" has_check_key_word = "true"/>

Packet Capture graph of fa0/1 in R1

It shows that fa0/1 has taken 3 packets, and then all of them are lost. Fa0/0 has successfully taken 2 packets on the link! The server Load balancer is running. It should be a ping failure!

Finally, we can draw a conclusion: static route configurations, whether associated with an interface, will also be associated with the next hop, and the Management Distance is 1 on Cisco IOS! Wrong in the book...



This article from "do not: lazy, quick success" blog, please be sure to keep this source http://3824597.blog.51cto.com/3814597/1288755

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.