OSPF of Cisco

Source: Internet
Author: User

The OSPF network architecture is as follows:

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M02/96/55/wKioL1kf9hWT1CDjAACc6DPwYog009.jpg-wh_500x0-wm_ 3-wmp_4-s_2151784316.jpg "title=" 2017-05-20_154854.jpg "width=" 563 "height=" $ "border=" 0 "hspace=" 0 "vspace=" 0 " Style= "width:563px;height:220px;" alt= "Wkiol1kf9hwt1cdjaacc6dpwyog009.jpg-wh_50"/>

Configuration of the R1:

R1 (config) #router OSPF 100

R1 (config-router) #router-id 1.1.1.1

R1 (config-router) #network 10.1.1.0 0.0.0.3 area 0

R1 (config-router) #network 10.1.1.4 0.0.0.3 Area 1


Configuration of the R2:

R2 (config) #router OSPF 100

R2 (config-router) #router-id 2.2.2.2

R2 (config-router) #network 10.1.1.8 0.0.0.3 area 0

R2 (config-router) #network 10.1.1.12 0.0.0.3 Area 1


Configuration of the R3:

R3 (config) #router OSPF 100

R3 (config-router) #router-id 3.3.3.3

R3 (config-router) #network 10.1.1.0 0.0.0.3 area 0

R3 (config-router) #network 10.1.1.8 0.0.0.3 area 0

R3 (config-router) #network 192.168.1.0 0.0.0.255 area 0


Configuration of the R4:

R4 (config) #router OSPF 100

R4 (config-router) #router-id 4.4.4.4

R4 (config-router) #network 10.1.1.4 0.0.0.3 Area 1

R4 (config-router) #network 10.1.1.12 0.0.0.3 Area 1

R4 (config-router) #network 172.16.1.0 0.0.0.255 Area 1


Displays routing protocol information for the router:

R1#sh IP Protocols

Routing Protocol is "OSPF 100"

Outgoing update filter list for all interfaces are not set

Incoming Update filter list for all interfaces are not set

Router ID 1.1.1.1

It is a area border router

Number of areas in this router is 2. 2 Normal 0 stub 0 Nssa

Maximum Path:4

Routing for Networks:

10.1.1.0 0.0.0.3 Area 0

10.1.1.4 0.0.0.3 Area 1

Reference Bandwidth Unit is Mbps

Routing Information Sources:

Gateway Distance Last Update

4.4.4.4 110 00:14:48

2.2.2.2 110 00:14:48

3.3.3.3 110 00:17:19

Distance: (default is 110)


To view the routing table:

R1#sh IP route

CODES:C-connected, s-static, R-rip, M-mobile, B-BGP

D-EIGRP, Ex-eigrp External, O-OSPF, IA-OSPF Inter area

N1-OSPF NSSA External Type 1, N2-OSPF NSSA external type 2

E1-OSPF external Type 1, E2-OSPF external type 2

I-is-is, Su-is-is Summary, L1-is-is level-1, L2-is-is level-2

Ia-is-is Inter area, *-candidate default, U-per-user static route

O-ODR, P-periodic downloaded static route


Gateway of last resort are not set


172.16.0.0/32 is subnetted, 1 subnets

O 172.16.1.1 [110/2] via 10.1.1.6, 00:03:55, fastethernet1/0

10.0.0.0/30 is subnetted, 4 subnets

O 10.1.1.8 [110/2] via 10.1.1.1, 00:06:26, fastethernet0/0

O 10.1.1.12 [110/2] via 10.1.1.6, 00:03:55, fastethernet1/0

C 10.1.1.0 is directly connected, fastethernet0/0

C 10.1.1.4 is directly connected, fastethernet1/0

192.168.1.0/32 is subnetted, 1 subnets

O 192.168.1.1 [110/2] via 10.1.1.1, 00:06:26, fastethernet0/0


only OSPF-related routing information is displayed:

R1#sh IP route OSPF

172.16.0.0/32 is subnetted, 1 subnets

O 172.16.1.1 [110/2] via 10.1.1.6, 00:17:27, fastethernet1/0

10.0.0.0/30 is subnetted, 4 subnets

O 10.1.1.8 [110/2] via 10.1.1.1, 00:19:58, fastethernet0/0

O 10.1.1.12 [110/2] via 10.1.1.6, 00:17:27, fastethernet1/0

192.168.1.0/32 is subnetted, 1 subnets

O 192.168.1.1 [110/2] via 10.1.1.1, 00:19:58, fastethernet0/0


Verify that the network is unblocked:

r3#ping 172.16.1.1 Source 192.168.1.1


Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds:

Packet sent with a source address of 192.168.1.1

!!!!!

Success rate is percent (5/5), round-trip Min/avg/max = 52/66/76 ms


To view adjacency relationships:

R1#sh IP OSPF Neighbor


Neighbor ID Pri State Dead time Address Interface

3.3.3.3 1 full/bdr 00:00:34 10.1.1.1 fastethernet0/0

4.4.4.4 1 full/bdr 00:00:32 10.1.1.6 fastethernet1/0


R3#sh IP OSPF Neighbor


Neighbor ID Pri State Dead time Address Interface

2.2.2.2 1 full/dr 00:00:33 10.1.1.10 fastethernet1/0

1.1.1.1 1 full/dr 00:00:35 10.1.1.2 fastethernet0/0


To see if the interface joins the correct zone:

R1#SH IP OSPF interface

Fastethernet0/0 is up, line protocol are up

Internet Address 10.1.1.2/30, area 0

Process ID, Router ID 1.1.1.1, Network Type broadcast, cost:1

Transmit Delay is 1 sec, State Dr., Priority 1

Designated Router (ID) 1.1.1.1, Interface address 10.1.1.2

Backup designated Router (ID) 3.3.3.3, Interface address 10.1.1.1

Timer intervals configured, Hello ten, Dead, Wait, retransmit 5

Oob-resync Timeout 40

Hello due in 00:00:07

Supports link-local Signaling (LLS)

Index 1/1, flood queue Length 0

Next 0x0 (0)/0x0 (0)

Last flood scan length was 0, maximum is 1

Last flood scan time was 0 msec, maximum is 4 msec

Neighbor count is 1, adjacent Neighbor count is 1

Adjacent with neighbor 3.3.3.3 (Backup designated Router)

Suppress Hello for 0 neighbor (s)

Fastethernet1/0 is up, line protocol are up

Internet Address 10.1.1.5/30, area 1

Process ID, Router ID 1.1.1.1, Network Type broadcast, cost:1

Transmit Delay is 1 sec, State Dr., Priority 1

Designated Router (ID) 1.1.1.1, Interface address 10.1.1.5

Backup designated Router (ID) 4.4.4.4, Interface address 10.1.1.6

Timer intervals configured, Hello ten, Dead, Wait, retransmit 5

Oob-resync Timeout 40

Hello due in 00:00:06

Supports link-local Signaling (LLS)

Index, flood queue Length 0

Next 0x0 (0)/0x0 (0)

Last flood scan length was 0, maximum is 1

Last flood scan time was 0 msec, maximum is 0 msec

Neighbor count is 1, adjacent Neighbor count is 1

Adjacent with neighbor 4.4.4.4 (Backup designated Router)

Suppress Hello for 0 neighbor (s)


To view the OSPF database:

R1#SH IP OSPF Database


OSPF Router with ID (1.1.1.1) (Process ID 100)


Router Link States (area 0)


Link ID ADV Router age seq# Checksum Link count

1.1.1.1 1.1.1.1 1390 0x80000003 0x00ad5e 1

2.2.2.2 2.2.2.2 1373 0x80000003 0x0022d1 1

3.3.3.3 3.3.3.3 1367 0x80000005 0x00083c 3


Net Link States (area 0)


Link ID ADV Router age seq# Checksum

10.1.1.2 1.1.1.1 1390 0x80000001 0x007aa0

10.1.1.10 2.2.2.2 1374 0x80000001 0x002edc


Summary Net Link States (area 0)


Link ID ADV Router age seq# Checksum

10.1.1.4 1.1.1.1 1749 0x80000001 0x00a189

10.1.1.4 2.2.2.2 1218 0x80000001 0x008d98

10.1.1.12 1.1.1.1 1225 0x80000001 0x005bc6

10.1.1.12 2.2.2.2 1507 0x80000001 0x0033eb



This article from "10,000 years too long, seize" blog, please be sure to keep this source http://zengwj1949.blog.51cto.com/10747365/1927782

OSPF for Cisco

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.