router OSPF dynamic routing configuration

Source: Internet
Author: User

Technical principle:

OSPD Open Shortest Path priority protocol. is one of the most widely used routing protocols in the current network. belongs to the internal network routing protocol. Being able to adapt to network environments of all sizes is a typical 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 finally synchronizes a database with the whole network link state, then the router uses the SPF algorithm. The shortest path to the network is calculated as the root, which eventually forms the information of the whole Internet.

Experimental steps:

1. Divide the Vlan10 and Vlan20 on the three-layer switch in this experiment, where VLAN10 is used to connect the host and Vlan20 is used to connect R1.

2. Between the routers through the V35 cable through the serial port connection, the DCE end is connected on the R1, configures its clock frequency 64000.

3. The host and the switch through the direct connection, the host and the router through the intersection line connects.

4. Configure the OSPF routing protocol on the S3560.

5. Configure the OSPF routing protocol on the router R1, R2

6. Set the PC1, PC2 host default gateway to the IP address of the direct-attached network device interface

7. Verify that the PC1, PC2 hosts can pass through each other

Experiment diagram:

S3650 Configuration:

switch>en

Switch>enable

Switch#config T

Enter configuration commands, one perline. End with cntl/z.

Switch (config) #host s3650

s3650 (config) #vlan 10

s3650 (Config-vlan) #name V10

s3650 (Config-vlan) #exit

s3650 (config) #vlan 20

s3650 (Config-vlan) #name V20

s3650 (Config-vlan) #exit

s3650 (config) #int FA0/10

s3650 (config-if) #switchport Access VLAN 10

s3650 (config-if) #exit

s3650 (config) #int fa0/20

s3650 (config-if) #switchport Access VLAN 20

s3650 (config-if) #exit

s3650 (config) #int VLAN 10


%link-5-changed:interface Vlan10, changedstate to Up


%lineproto-5-updown:line protocol Oninterface VLAN10, changed state-to-up

s3650 (config-if) #ip address 192.168.1.1255.255.255.0

s3650 (config-if) #no shut

s3650 (config-if) #exit

s3650 (config) #int VLAN 20

s3650 (config-if) #

%link-5-changed:interface Vlan20, changedstate to Up


s3650 (config-if) #ip address 192.168.3.1255.255.255.0

s3650 (config-if) #no shut

s3650 (config-if) #router OSPF 1

s3650 (config-router) #network 192.168.1.00.0.0.255 area 0

s3650 (config-router) #network 192.168.3.00.0.0.255 area 0

s3650 (Config-router) #exit

s3650 (config) #exit

s3650#

%sys-5-config_i:configured from console Byconsole

R1 Configuration:

router>en

Router#config T

Enter configuration commands, one perline. End with cntl/z.

Router (config) #host R1

R1 (config) #int fa0/0

R1 (config-if) #ip address 192.168.3.2255.255.255.0

R1 (config-if) #no shut


%link-5-changed:interface fastethernet0/0,changed state-to-up


%lineproto-5-updown:line protocol Oninterface fastethernet0/0, changed state-to-up


R1 (config-if) #exit

R1 (config) #int serial2/0

R1 (config-if) #clock rate 64000

R1 (config-if) #ip address 192.168.4.1255.255.255.0

R1 (config-if) #no shut


%link-5-changed:interface serial2/0,changed state-to-down

R1 (config-if) #exit

R1 (config) #router OSPF 1

R1 (config-router) #network 192.168.3.00.0.0.255 area 0

R1 (Config-router) #network

01:10:13:%ospf-5-adjchg:process 1, Nbr192.168.3.1 on fastethernet0/0 from LOADING to full, LOADING done


% incomplete command.

R1 (config-router) #network 192.168.4.00.0.0.255 area 0

R1 (Config-router) #

R2 Configuration:

router>en

Router#config T

Enter configuration commands, one perline. End with cntl/z.

Router (config) #host R2

R2 (config) #int fa0/0

R2 (config-if) #ip address 192.168.2.1255.255.255.0

R2 (config-if) #no shut


%link-5-changed:interface fastethernet0/0,changed state-to-up


%lineproto-5-updown:line protocol Oninterface fastethernet0/0, changed state-to-up


R2 (config-if) #exit

R2 (config) #int serial2/0

R2 (config-if) #ip address 192.168.4.2255.255.255.0

R2 (config-if) #no shut


R2 (config-if) #

%link-5-changed:interface serial2/0,changed state-to-up


R2 (config-if) #exit

R2 (config) #

%lineproto-5-updown:line protocol Oninterface serial2/0, changed state-to-up


R2 (config) #router OSPF 1

R2 (config-router) #network 192.168.2.00.0.0.255 area 0

R2 (config-router) #network 192.168.4.00.0.0.255 area 0

R2 (Config-router) #exit

R2 (config) #

Test:

from PC2 pingpc1. not through

in s3650 on the configuration:

S3650#config T

Enter configuration commands, one perline. End with cntl/z.

s3650 (config) #ip routing

s3650 (config) #exit

s3650#

At this point the test is

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.