OSPF full Configuration

Source: Internet
Author: User

 

 

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131227/0400254U3-0.png "/>

In this experiment, OSPF can be configured between regions in the OSPF region, and OSPF can be published in rip. In OSPF, rip is first published according to the physical device that is connected.) There are not many explanations about ip Address Configuration. OSPF Simple configuration: Enable router rip on R1 and declare Routerconfig) # router ripRouterconfig-router) # net 10.0.0.0 enable both router rip and OSPF: Routerconfig on R2) # router ripRouterconfig-router) # net 10.0.0.0 Routerconfig) # router ospf 11 is the number of processes run by OSPF. You can specify it as needed) Routerconfig-router) # net route 0.0.0 0.20.255.255 area 0 0.20.255.255 is the reverse subnet mask area 0 is the specified region number) Enable router ospf on R3: Router (config) # router ospf 1 Router (config-router) # net route 0.0.0 0.20.255.255 ar 0 Router (config-router) # net 30.0.0.0 0.20.255.255 ar 1 the two directly connected routes are also declared on R4: Router (config) # router ospf 1 Router (config-router) # net 30.0.0.0 0.20.255.255 ar 1 the route table on router 1-4 is R1: C 10.0.0.0/8 is directly connected, ethernet0/0 R2: C route 0.0.0/8 is directly connected, Ethernet0/1C 10.0.0.0/8 is directly connected, Ethernet0/0O IA 30.0.0.0/8 [110/20] via Route 0.0.2, 00:03:40, ethernet0/1 R3: C 255.0.0.0/8 is directly connected, Ethernet0/0C 30.0.0.0/8 is directly connected, Ethernet0/1 R4: o ia 255.0.0.0/8 [110/20] via 30.0.0.1, 00:02:51, Ethernet0/0C 30.0.0.0/8 is directly connected, Ethernet0/0, these route tables start with O are learned through ospf OSPF Route redistributionIn this case, all routers in the ospf self-made system can communicate with each other R2 R3 R4) but it cannot communicate with the routers running rip outside the self-made system. Therefore, the self-made system edge router in R2ASBR is required) the specific process of publishing on: Step 1: publish ospf Routerconfig in rip) # router rip Router (config-router) # redistribute ospf 1 metric 2 1 is the process number 2 is the specified number of rip hops) so that on R1, you can use rip to learn the Show ip route on the ospf protocol on R2: R route 0.0.0/8 [120/2] via 10.0.0.2, 00:00:10, Ethernet0/0C 10.0.0.0/8 is directly connected, Ethernet0/0R 30.0.0.0/8 [120/2] via 10.0.0.2, 00:00:10, step 2: deploy rip: Router (config) # router OS 1 Router (config-router) # redistribute rip subnets metric 10 subnets in ospf, 10 is the cost value in ospf. You can specify this value by yourself.) On R3, you will learn the information in the rip route. Show ip route: C route 0.0.0/8 is directly connected, ethernet0/0O E2 10.0.0.0/8 [110/10] via Route 0.0.1, 00:02:07, Ethernet0/0C 30.0.0.0/8 is directly connected, ethernet0/1 here E2 refers to the distribution type distributed to ospf. By default, E2 does not calculate the internal cost) you can use Metric-rype 1 to specify the type as E1. In this way, you can re-distribute rip in OSPF and re-distribute OSPF in rip. Static routes, default routes, and directly connected routes are usually released. publish "go to router ospf 1 Router (config-router) on ASBR) # redistribute static subnets directly connected Router (config-router) # redistribute connected subnets so that the default route entry starting with O E2 is published on R3: Router (config) # router OS 1 Router (config-router) # default-information originate: entries starting with O * IA are displayed on R3. Peripheral Area && Complete peripheral area:After the release is complete, only rip is published here. On R4, the route table is displayed:

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131227/0400251495-1.png "/>

However, the vro in the region where R4 is located must communicate with the vro outside the self-made system through R3, so that R4 does not need to know the information outside the self-made system and does not need to receive announcements from ASBR, you only need to receive internal notifications from the self-made system, which meets the requirements of the peripheral area. Configuration of the peripheral area: On R4, the Router (config) # router OS 1 Router (config-router) # area 1 stub 1 is the region ID of R4) must be on R3 at the same time: router (config) # router OS 1 Router (config-router) # area 1 stub because the interfaces connected by R3 and R4 must have the same summary type) in this way, the route table on R4 will reduce the number of connections between the region where R4 is located and other regions. If it must pass through R3, it is not necessary to receive announcements from other regions on R4, you can also reduce the number of Route tables in the Router (config) # router OS 1 Router (config-router) # area 1 stub at the same time on R3: Router (config) # router OS 1 Router (config-router) # area 1 stub no-summary at the same time on R3: Router (config) # router OS 1 Router (config-router) # area 1 stub no-summary view the route table on R4:

650) this. width = 650; "onclick = 'window. open (" http://blog.51cto.com/viewpic.php? Refimg = "+ this. src) 'border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131227/0400255408-2.png "/>

This article is from the "Everything For Tomorrow" blog, please be sure to keep this source http://caogao123.blog.51cto.com/1997359/372969

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.