Development Review of Static Routing and Dynamic Routing

Source: Internet
Author: User

There are many applications for dynamic routing and Static Routing. Here we review the development history and future directions of Dynamic and Static Routing. The previous lecture on VPN routing and forwarding focuses on configuring and verifying VRF (VPN route forwarding. In the above circumstances, users must be isolated from a shared device. In that article, I did not define the communication mode between each user outside the shared interface, such as static routing or dynamic routing protocol. This week, I will show you how to configure these communications and ensure that all user routes can be broadcast correctly.

Situation Review

Let's review the situation of small service providers I have introduced in several recent articles. A shared device connects two users (User A and user B) on the edge of A provider network (PE) to provide Internet access. Each user must be isolated, and each user must be able to broadcast to the subnet after their own vro. Last week, I introduced how to set up two VPN routing and forwarding (VRF) instances, and allocated user A and user B to A single interface of each VRF.

Static Routing

Static Routing is a manual method by which a next-hop router "points to" A route prefix (subnet. Traditional static routing is used on small networks using low-power routers. This method saves the power of the processor and eliminates the need to converge such a dynamic mechanism. The following example shows how to add a static route: Router_A (config) # iproute10.1.1.0255.255.255.0192.168.1.1.

This command defines the 10.1.1.0/24 network as the network that can be accessed through the next hop vro of 192.168.1.1. The relationship between router A and the next hop router is not described here. Remember that the next hop can be accessed without a route. If this is correct. But what about VRF? This command adds only one static route in the global route table. To set a static route in VRF, run the following command: Router_A (config) # iproutevrfvrf_a10.1.1.020.255.255.0192.168.1.1 this command will add the same static route to the VRF. To verify the validity of this entry, run the following command: Router_A # showiproutevrfVRF_A. The entered route should be in the VRF routing table and the "S" label representing the static state should be written.

Dynamic Routing

Different from static routing, dynamic routing uses various protocols to automatically publish routing information between "identical" routers. This Protocol includes OSPF and RIP. To set OSPF, run the following commands: Router_A (config) # routerospf1Router_A (config-router) # network192.168.1.00.0.0.3area0.0.0.0. These commands can start OSPF on the router A interface to the minimum. Vroa A's interface is set for the 192.168.1.1 network. The second command places a special interface in Area 0 (OSPF Backbone Network. Any OSPF router with the same network command will form an adjacent space and route information will be published. To verify any learned routes, run the following command: Router_A # showiprouteorRouter_A # showiprouteospf, which is the same as that of static routes. What should we do if we want to expand to the display topology?

This command table will start OSPF in each VRF for all routers and allow route communication to start. The capability vrf-lite Command needs to be used to obtain the exact number of VRF route tables, as discussed in the Internet Protocol draw.ietf-ospf-2547-dnbit-04.txt. This draft is beyond the scope of this 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.