OSPF BASIC Configuration

Source: Internet
Author: User

"Experiment Name"

OSPF single area basic configuration.

"Experimental Purpose"

Master the OSPF single area configured on the router.

"Background description"

Suppose the campus network is connected to the campus network egress router via 1 three-layer switches, the router and the other 1 outside the campus

Router connection, now do the appropriate configuration, to achieve campus network internal host and campus network external host communication.

This experiment takes two routers and 1 three-layer switches as an example. The S3550 are divided into VLAN10 and VLAN50,

Where VLAN10 is used to connect ra,vlan50 for connecting to the campus network host.

"Demand Analysis"

It is necessary to configure the OSPF routing protocol on routers and switches, so that the network can be interconnected, so as to realize the sharing of information and

Passed.

"Experimental Topology"

Fig. 8-1 Experimental topological diagram

"Experimental Equipment"

Three-layer Switch 1 units

Router 2 units

Crossover line or straight wire 3 strips

"Pre-knowledge"

Router basic configuration knowledge, OSPF

"Experimental principle"

OSPF (Open Shortest Path first, open Shortest Path Priority) protocol, is currently the most widely used network

One of the broad routing protocols. belong to the internal Gateway routing protocol, can adapt to various scales of network environment, is a typical chain

The road State (link-state) protocol.

The OSPF routing protocol spreads the link state information of the device to the whole network, so that each device in the net synchronizes a

A database (LSDB) with a full network link state, then the router uses an SPF algorithm that takes its own root and calculates the

The shortest path to other networks, eventually forming the entire network by information.

OSPF belongs to the class-free routing protocol, which supports VLSM (variable eldest subnet mask). OSPF is done in the form of multicast

The notification of the link state.

In the large model network environment, OSPF supports the division of the region, and the network is rationally planned. When dividing a region, you must

AREA0 (backbone area) must exist. Other areas and backbone areas are directly connected or connected by virtual links.

"Experimental Steps"

First step: Configure IP addresses on routers and layer three switches

Switch#configure Terminal

Switch (config) #hostname S3750

S3750 (config) #vlan 10

S3750 (Config-vlan) #exit

S3750 (config) #vlan 50

S3750 (Config-vlan) #exit

S3750 (config) #interface F0/1

S3750 (config-if) #switchport Access VLAN 10

S3750 (config-if) #exit

S3750 (config) #interface F0/2

S3750 (config-if) #switchport Access VLAN 50

S3750 (config-if) #exit

S3750 (config) #interface VLAN 10

S3750 (config-if) #ip address 172.16.1.2 255.255.255.0

S3750 (config-if) #no shutdown

S3750 (config-if) #exit

S3750 (config) #interface VLAN 50

S3750 (config-if) #ip address 172.16.5.1 255.255.255.0

S3750 (config-if) #no shutdown

S3750 (config-if) #exit

RouterA (config) # interface fastethernet 0/1

RouterA (config-if) # IP address 172.16.1.1 255.255.255.0

RouterA (config-if) # no shutdown

RouterA (config-if) #exit

RouterA (config) # interface fastethernet 0/0

RouterA (config-if) # IP address 172.16.2.1 255.255.255.0

Routerb (config-if) # no shutdown

Routerb (config) # interface fastethernet 0/1

Routerb (config-if) # IP address 172.16.3.1 255.255.255.0

Routerb (config-if) # no shutdown

Routerb (config-if) #exit

Routerb (config) # interface fastethernet 0/0

Routerb (config-if) # IP address 172.16.2.2 255.255.255.0

Routerb (config-if) # no shutdown

Step Two: Configure the OSPF routing protocol

S3750 (config) #router OSPF

S3750 (config-router) #network 172.16.5.0 0.0.0.255 area 0

S3750 (config-router) #network 172.16.1.0 0.0.0.255 area 0

S3750 (Config-router) #end

RouterA (config) # router OSPF

RouterA (config-router) #network 172.16.1.0 0.0.0.255 area 0

RouterA (config-router) #network 172.16.2.0 0.0.0.255 area 0

RouterA (Config-router) #end

Routerb (config) #router OSPF

Routerb (config-router) #network 172.16.2.0 0.0.0.255 area 0

Routerb (config-router) #network 172.16.3.0 0.0.0.255 area 0

Routerb (Config-router) #end

"Experimental Results"

Switch configuration

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/8A/27/wKiom1gpL1KAQg7CAAA_ss89jms724.png-wh_500x0-wm_3 -wmp_4-s_322568294.png "style=" Float:none; "title=" L1. PNG "alt=" Wkiom1gpl1kaqg7caaa_ss89jms724.png-wh_50 "/>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/8A/27/wKiom1gpL1Lip52VAAAafLlEqs4702.png-wh_500x0-wm_3 -wmp_4-s_3768144291.png "style=" Float:none; "title=" L2. PNG "alt=" Wkiom1gpl1lip52vaaaaflleqs4702.png-wh_50 "/>

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M02/8A/24/wKioL1gpL1PyEAtXAAA3BXizoZY755.png-wh_500x0-wm_3 -wmp_4-s_3366301178.png "style=" Float:none; "title=" L3. PNG "alt=" Wkiol1gpl1pyeatxaaa3bxizozy755.png-wh_50 "/>

Router configuration

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/8A/27/wKiom1gpL2awxuBqAAAc-AvN2j4032.png-wh_500x0-wm_3 -wmp_4-s_1834081849.png "style=" Float:none; "title=" R3.1.png "alt=" Wkiom1gpl2awxubqaaac-avn2j4032.png-wh_50 "/>

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/8A/24/wKioL1gpL2azpRGEAAAdFtTClNs064.png-wh_500x0-wm_3 -wmp_4-s_1520159222.png "style=" Float:none; "title=" R3.2.png "alt=" Wkiol1gpl2azprgeaaadfttclns064.png-wh_50 "/>

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/8A/27/wKiom1gpL2exTawGAAARmTLhZUw279.png-wh_500x0-wm_3 -wmp_4-s_949142947.png "style=" Float:none; "title=" R3.3.png "alt=" Wkiom1gpl2extawgaaarmtlhzuw279.png-wh_50 "/>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/8A/27/wKiom1gpL2fQR_NfAAAppf-2x3s246.png-wh_500x0-wm_3 -wmp_4-s_3918861095.png "style=" Float:none; "title=" R3.4.png "alt=" Wkiom1gpl2fqr_nfaaappf-2x3s246.png-wh_50 "/>

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/8A/24/wKioL1gpL4WCwa0pAAAQvJWBxhc656.png-wh_500x0-wm_3 -wmp_4-s_2559992250.png "title=" A2.png "alt=" Wkiol1gpl4wcwa0paaaqvjwbxhc656.png-wh_50 "/>

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/8A/24/wKioL1gpL2eiN-kRAAAx59D6shY690.png-wh_500x0-wm_3 -wmp_4-s_4135245765.png "style=" Float:none; "title=" R3.5.png "alt=" Wkiol1gpl2ein-kraaax59d6shy690.png-wh_50 "/>

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/8A/27/wKiom1gpL2ixcjeHAAApYiZLdmM747.png-wh_500x0-wm_3 -wmp_4-s_3909131607.png "style=" Float:none; "title=" R4.1.png "alt=" Wkiom1gpl2ixcjehaaapyizldmm747.png-wh_50 "/>

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/8A/24/wKioL1gpL2ihSHKpAAAalgm21UY018.png-wh_500x0-wm_3 -wmp_4-s_2332950647.png "style=" Float:none; "title=" R4.2.png "alt=" Wkiol1gpl2ihshkpaaaalgm21uy018.png-wh_50 "/>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/8A/27/wKiom1gpL2iz6FDNAAAR4ivxSuk864.png-wh_500x0-wm_3 -wmp_4-s_605167517.png "style=" Float:none; "title=" R4.3.png "alt=" Wkiom1gpl2iz6fdnaaar4ivxsuk864.png-wh_50 "/>

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/8A/24/wKioL1gpL2igJynMAAAqRLLs9PA680.png-wh_500x0-wm_3 -wmp_4-s_4009914776.png "style=" Float:none; "title=" R4.4.png "alt=" Wkiol1gpl2igjynmaaaqrlls9pa680.png-wh_50 "/>


This article from "Green People Cloud Prisoner" blog, declined reprint!

OSPF BASIC Configuration

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.