Routing tables are divided into static routes and dynamic routes in two ways, depending on how they are generated.
Static Routing: Routing table entries, which are manually configured by an administrator, are called static routes, are simple to configure, fast to handle, efficient, and reliable, and the disadvantage is that routers cannot change automatically when the network topology changes.
Classification of static routes: Static routes, default routes (default routes), default gateways
Static routing: usually refers to the route that we manually configure on the router to other network segments, and tells the router to go to other non-direct-connected network segment path information.
Default route: Also called the default route. As a special form of static routing, when a router receives a packet that is not in the routing table, the packet is sent all the way to the next hop specified by the default route as a final processing of the unknown address packet.
There are three ways to configure the router to generate a default route:
1,IP route 0.0.0.0 0.0.0.0 0.0.0.0 When the routing function is on, you can configure the default gateway for the router, but it is not automatically passed to the neighbor by the dynamic routing protocol.
2,IP default-gateway In addition to the destination address in the network segment of the packet sent directly to the destination, all other packets will be sent to the gateway processing, the command only in the case of router shutdown routing function (no IP routing) use.
3,IP default-network This command can also achieve the same purpose. The difference is that the IP Default-gateway only works in non-routed mode, and the IP default-network can work in routing mode and be automatically passed to the neighbor by the dynamic routing protocol.
Classification of static routes