Router Configuration & lt; 10 & gt;

Source: Internet
Author: User
Tags crypt

Configure OSPF single region

Target:


Purpose:

Configure the OSPF single-region experiment to implement simple OSPF configuration.

Background description:

In the topology, there are three routers with five CIDR blocks and classless subnets.

Requirement Analysis:

In this topology, the OSPF routing protocol is used to learn route information, and a single region is used. All routers are in Area 0.

Tutorial principle:

Enable the osfp process on the vro and transmit all routing information through the OSFP routing protocol.

Experiment topology:

650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131227/051643M55-0.png "title =" 001.png"/>


Step:

Step 1: configure the IP address on the vro

RA # config t

RA (config) # interface FastEthernet 0/0

RA (config-if) # ip address 192.168.20.1 255.255.255.252

RA (config) # interface Loopback 0

RA (config-if) # ip address 192.168.30.9 255.255.255.255.248

RB # config t

RB (config) # interface FastEthernet 0/0

RB (config-if) # ip address 192.168.20.2 255.255.255.252

RB (config) # interface FastEthernet 0/1

RB (config-if) # ip address 192.168.10.1 too many then

RC # config t

RC (config) # interface FastEthernet 0/0

RC (config-if) # ip address 192.168.10.2 too many then

RC (config) # interface Loopback 0

RC (config-if) # ip address 192.168.10.33 255.255.255.240

RC (config) # interface Loopback 1

RC (config-if) # ip address 192.168.10.65 255.255.255.192

Step 2: Configure OSPF

RA (config) # router ospf 10

RA (config-router) # network 192.168.30.8 0.0.0.7 area 0

RA (config-router) # network 192.168.20.0 0.0.3 area 0

RB (config) # router ospf 10

RB (config-router) # network 192.168.10.0 0.0.31 area 0

RB (config-router) # network 192.168.20.0 0.0.3 area 0

RC (config) # router ospf 10

RC (config-router) # network 192.168.10.0 0.0.31 area 0

RC (config-router) # network 192.168.10.32 0.0.0.15 area 0

RC (config-router) # network 192.168.10.64 0.0.0.63 area 0

Step 3: Verify and Test

RA # show ip interface brief

Interface IP-Address (Pri) OK? Status

FastEthernet 0/0 192.168.20.1/30 YES UP

FastEthernet 0/1 no address YES DOWN

Loopback 0 192.168.30.9/29 YES UP

RB # show ip interface brief

Interface IP-Address (Pri) OK? Status

FastEthernet 0/0 192.168.20.2/30 YES UP

FastEthernet 0/1 192.168.10.1/27 YES UP

RC # show ip interface brief

Interface IP-Address (Pri) OK? Status

FastEthernet 0/0 192.168.10.2/27 YES UP

FastEthernet 0/1 no address YES DOWN

Loopback 0 192.168.10.33/28 YES UP

Loopback 1 192.168.10.65/26 YES UP

Run the show ip route and sh ip ospf neighbor commands to verify the configuration.

RA # sh ip route

Codes: C-connected, S-static, R-rip B-BGP

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, L1-IS level-1, L2-IS level-2, ia-IS inter area

*-Candidate default

Gateway of last resort is no set

O 192.168.10.0/27 [110/2] via 192.168.20.2, 00:01:32, FastEthernet 0/0

C 192.168.30.8/29 is directly connected, Loopback 0

C 192.168.30.9/32 is local host.

O 192.168.10.33/32 [110/2] via 192.168.20.2, 00:01:32, FastEthernet 0/0

O 192.168.10.65/32 [110/2] via 192.168.20.2, 00:01:32, FastEthernet 0/0

C 192.168.20.0/30 is directly connected, FastEthernet 0/0

C 192.168.20.1/32 is local host.

RB # show ip route

Codes: C-connected, S-static, R-rip B-BGP

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, L1-IS level-1, L2-IS level-2, ia-IS inter area

*-Candidate default

Gateway of last resort is no set

C 192.168.10.0/27 is directly connected, FastEthernet 0/1

C 192.168.10.1/32 is local host.

O 192.168.10.33/32 [110/1] via 192.168.10.2, 00:02:25, FastEthernet 0/1

O 192.168.10.65/32 [110/1] via 192.168.10.2, 00:02:14, FastEthernet 0/1

C 192.168.20.0/30 is directly connected, FastEthernet 0/0

C 192.168.20.2/32 is local host.

O 192.168.30.9/32 [110/1] via 192.168.20.1, 00:05:16, FastEthernet 0/0

RC # show ip route

Codes: C-connected, S-static, R-rip B-BGP

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, L1-IS level-1, L2-IS level-2, ia-IS inter area

*-Candidate default

Gateway of last resort is no set

C 192.168.10.0/27 is directly connected, FastEthernet 0/0

C 192.168.10.2/32 is local host.

C 192.168.10.32/28 is directly connected, Loopback 0

C 192.168.10.33/32 is local host.

C 192.168.10.64/26 is directly connected, Loopback 1

C 192.168.10.65/32 is local host.

O 192.168.20.0/30 [110/2] via 192.168.10.1, 00:01:23, FastEthernet 0/0

O 192.168.30.9/32 [110/2] via 192.168.10.1, 00:01:23, FastEthernet 0/0

RB # show ip ospf neighbor

OSPF process 1:

Neighbor ID Pri State Dead Time Address Interface

192.168.10.65 1 Full/BDR 00:00:38 192.168.10.2 FastEthernet 0/1

192.168.30.9 1 Full/DR 00:00:33 192.168.20.1 FastEthernet 0/0

RB # show ip ospf neighbor detail

Neighbor 192.168.10.65, interface address 192.168.10.2

In the area 0.0.0.0 via interface FastEthernet 0/1

Neighbor priority is 1, State is Full, 5 state changes

DR is 192.168.10.1, BDR is 192.168.10.2

Options is 0x42 (* | O |-| E | -)

Dead timer due in 00:00:37

Neighbor is up for 00:04:33

Database Summary List 0

Link State Request List 0

Link State Retransmission List 0

Crypt Sequence Number is 0

Thread Inactivity Timer on

Thread Database Description Retransmission off

Thread Link State Request Retransmission off

Thread Link State Update Retransmission off

Neighbor 192.168.30.9, interface address 192.168.20.1

In the area 0.0.0.0 via interface FastEthernet 0/0

Neighbor priority is 1, State is Full, 6 state changes

DR is 192.168.20.1, BDR is 192.168.20.2

Options is 0x42 (* | O |-| E | -)

Dead timer due in 00:00:30

Neighbor is up for 00:07:50

Database Summary List 0

Link State Request List 0

Link State Retransmission List 0

Crypt Sequence Number is 0

Thread Inactivity Timer on

Thread Database Description Retransmission off

Thread Link State Request Retransmission off

Thread Link State Update Retransmission off

Remarks]

Before doing this experiment, pay attention to the subnet mask conversion.

Reference Configuration]

RA # show running-config

Building configuration...

Current configuration: 587 bytes

!

Version RGNOS 10.1.00 (4), Release (18443) (Tue Jul 17 20:50:30 CST 2007-ubu1server)

Hostname RA

!

Interface FastEthernet 0/0

Ip address 192.168.20.1 255.255.255.252

Duplex auto

Speed auto

!

Interface FastEthernet 0/1

Duplex auto

Speed auto

!

Interface Loopback 0

Ip address 192.168.30.9 255.255.255.255.248

!

Router ospf 1

Network 192.168.20.0 0.0.0.3 area 0

Network 192.168.30.8 0.0.0.7 area 0

!

Line con 0

Line aux 0

Line vty 0 4

Login

!

End

RB # show running-config

Building configuration...

Current configuration: 563 bytes

!

Version RGNOS 10.1.00 (4), Release (18443) (Tue Jul 17 20:50:30 CST 2007-ubu1server)

Hostname RB

!

Interface FastEthernet 0/0

Ip address 192.168.20.2 255.255.255.252

Duplex auto

Speed auto

!

Interface FastEthernet 0/1

Ip address 192.168.10.1 too large

Duplex auto

Speed auto

!

Router ospf 1

Network 192.168.10.0 0.0.31 area 0

Network 192.168.20.0 0.0.0.3 area 0

!

Line con 0

Line aux 0

Line vty 0 4

Login

!

End

RC # show running-config

Building configuration...

Current configuration: 699 bytes

!

Version RGNOS 10.1.00 (4), Release (18443) (Tue Jul 17 20:50:30 CST 2007-ubu1server)

Hostname RC

!

Interface FastEthernet 0/0

Ip address 192.168.10.2 255.255.255.255.255.255.255.

Duplex auto

Speed auto

!

Interface FastEthernet 0/1

Duplex auto

Speed auto

!

Interface Loopback 0

Ip address 192.168.10.33 255.255.255.255.240

!

Interface Loopback 1

Ip address 192.168.10.65 255.255.255.192

!

Router ospf 1

Network 192.168.10.0 0.0.31 area 0

Network 192.168.10.32 0.0.0.15 area 0

Network 192.168.10.64 0.0.63 area 0

!

Line con 0

Line aux 0

Line vty 0 4

Login

!

End


This article is from the "Security_net" blog, please be sure to keep this http://yxh1157686920.blog.51cto.com/7743046/1287877

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.