Understanding of static routes and default routes

Source: Internet
Author: User

A static route can be understood as a route to a specific destination, with a specific destination network address

If a specific destination address is not specified, the default route is gone.


The default route, also known as the default route , is a special static route with the destination address and mask configured as full 0 (0.0.0.0 0.0.0.0). When all routes in the routing table fail, the default route is used in order for the message to have a final sending point.



650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/84/5F/wKiom1eO4iGgEoFfAAAppNIN6Co306.jpg-wh_500x0-wm_3 -wmp_4-s_3769624155.jpg "title=" 6159252dd42a2834879ea3115bb5c9ea15cebff4.jpg "alt=" Wkiom1eo4iggeoffaaappnin6co306.jpg-wh_50 "/>


Instruction explanation: IP route 192.168.3.0 255.255.255.0 192.168.2.2

On the hosta, the router sees the packet with the destination segment as 192.168.3.0 and sends the packet to the 192.168.2.2

Note 2:ip Route points to one, if all two are fitted, that means the packet is sent out from the FA0/1, and the other says the packet is sent to this IP (for example, 192.168.2.2). Two repetitions. Generally we set to point to IP.


650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/84/5F/wKiom1eO4qDB8Zf8AABxh4IMv90184.png-wh_500x0-wm_3 -wmp_4-s_3849066706.png "title=" Sogou 20160720103109.png "alt=" Wkiom1eo4qdb8zf8aabxh4imv90184.png-wh_50 "/>

1) Why do I have a default route

Routing to view the routing table and decide how to forward the packet, with static routing configuration, cumbersome and error-prone. If the router has a neighbor who knows how to get to all the destinations, it can give the routing table matching task to it, saving a lot of things.

example, the gateway knows all the routes, and if a router is connected to the gateway, it can configure the default route to forward all packets to the gateway.

2) Why the default route is 0.0.0.0

When the IP address is matched, 0 represents wildcard, and any value can. Therefore, 0.0.0.0 and any destination address matching will succeed, resulting in the effect of the default route requirements.



Understanding of static routes and default routes

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.