ATEN-Chapter 8 basic concepts of OSPF and single-region Configuration

Source: Internet
Author: User

Tool used in the experiment: Xiao fan Simulator
Lab 1:

Router 1. Configure the Loopback interface address on each vro
★☆R1 ☆★
Router>
Router> enable
Router # config terminal
Router (config) # hostname R1-jin
R1-jin (config) # interface loopback 0 ------------ |
R1-jin (config-if) # ip address 1.1.1.1 255.255.255.255 ---- | configure the Loopback interface address (used to select DR and BDR)
R1-jin (config-if) # exit
R1-jin (config) # interface f0/0
R1-jin (config-if) # ip address 192.168.1.1 255.255.255.0
R1-jin (config-if) # no shutdown
R1-jin (config-if) # interface f1/0
R1-jin (config-if) # ip address 192.168.4.1 255.255.255.0
R1-jin (config-if) # no shutdown
R1-jin (config-if) # exit

★☆R2 ☆★
Router>
Router> enable
Router # config terminal
Router (config) # hostname R2-jin
R2-jin (config) # interface loopback 0
R2-jin (config-if) # ip address 2.2.2.2 255.255.255.255
R2-jin (config-if) # exit
R2-jin (config) # interface f1/0
R2-jin (config-if) # ip address 192.168.4.2 255.255.255.0
R2-jin (config-if) # no shutdown
R2-jin (config-if) # interface f0/0
R2-jin (config-if) # ip address 192.168.2.1 255.255.255.0
R2-jin (config-if) # no shutdown
R2-jin (config-if) # interface s2/0
R2-jin (config-if) # clock rate 128000
R2-jin (config-if) # ip address 192.168.5.1 255.255.255.0
R2-jin (config-if) # no shutdown
R2-jin (config-if) # exit

★☆R3 ☆★
Router>
Router> enable
Router # config terminal
Router (config) # hostname R3-jin
R3-jin (config) # interface loopback 0
R3-jin (config-if) # ip address 3.3.3.3 255.255.255.255
R3-jin (config-if) # exit
R3-jin (config) # interface s1/0
R3-jin (config-if) # clock rate 128000
R3-jin (config-if) # ip address 192.168.5.2 255.255.255.0
R3-jin (config-if) # no shutdown
R3-jin (config-if) # interface f0/0
R3-jin (config-if) # ip address 192.168.3.1 255.255.255.0
R3-jin (config-if) # no shutdown
R3-jin (config-if) # exit

2. Start the OSPF process and release the corresponding CIDR Block
★☆R1 ☆★
R1-jin (config )#
R1-jin (config) # router ospf 1 --- start the OSPF Process
R1-jin (config-router) # network 192.168.1.0 0.0.255 area 0 -- | Declaration (first method ):
R1-jin (config-router) # network 192.168.4.0 0.0.255 area 0 -- | all interfaces of network 192.168.1.0 and 4.0 network segment run OSPF
R1-jin (config-router) # end
R1-jin #
R1-jin # show ip route -- view route table
R1-jin # show ip ospf neighbor -- View neighbor list
R1-jin # show ip ospf interface f1/0 -- View OSPF interface Data Structure
R1-jin # show ip protocols -- view the Protocol that the route runs

★☆R2 ☆★
R2-jin (config )#
R2-jin (config) # router ospf 1
R2-jin (config-router) # network 0.0.0.0 255.255.255.255 area 0 -- Declaration (second method): All interfaces run OSPF
R2-jin (config-router) # end
R2-jin #
R2-jin # show ip route
R2-jin # show ip ospf neighbor
R2-jin # show ip ospf database
R2-jin # show ip ospf interface f1/0
R2-jin # show ip ospf interface f0/0
R2-jin # show ip protocols

★☆R3 ☆★
R3-jin (config )#
R3-jin (config) # router ospf 1
R3-jin (config-router) # network 192.168.5.2 0.0.0.0 area 0 -- | Declaration (Third Way ):
R3-jin (config-router) # network 192.168.3.1 0.0.0.0 area 0 -- | specify 192.168.5.2, 3.1 interface to run OSPF
R3-jin (config-router) # end
R3-jin #
R3-jin # show ip route
R3-jin # show ip ospf neighbor
R3-jin # show ip ospf database
R3-jin # show ip ospf interface s1/0
R3-jin # show ip protocols

Configure the PC and verify it!
VPCS 1>
VPCS 1> show
VPCS 1> ip 192.168.1.2 192.168.1.1 24
VPCS 1> 2
VPCS 2> ip 192.168.2.2 192.168.2.1 24
VPCS 2> 3
VPCS 3> ip 192.168.3.2 192.168.3.1 24
VPCS 3> show

Name ip/CIDR GATEWAY LPORT RPORT
PC1 192.168.1.2/24 192.168.1.1 10001 11100
PC2 192.168.2.2/24 192.168.2.1 10002 11200
PC3 192.168.3.2/24 192.168.3.1 10003 11300
PC4 0.0.0.0/0 0.0.0.0 10004 30003
PC5 0.0.0.0/0 0.0.0.0 10005 30004
PC6 0.0.0.0/0 0.0.0.0 10006 30005
PC7 0.0.0.0/0 0.0.0.0 10007 30006
Pc80.0.0.0/0 0.0.0.0 10008 30007
PC9 0.0.0.0/0 0.0.0.0 10009 30008


VPCS 3>
VPCS 3> ping 192.168.2.2
192.168.2.2 icmp_seq = 1 timeout
192.168.2.2 icmp_seq = 2 time = 79.000 MS
192.168.2.2 icmp_seq = 3 time = 94.000 MS
192.168.2.2 icmp_seq = 4 time = 94.000 MS
192.168.2.2 icmp_seq = 5 time = 140.000 MS

VPCS 3> ping 192.168.1.2
192.168.1.2 icmp_seq = 1 timeout
192.168.1.2 icmp_seq = 2 time = 125.000 MS
192.168.1.2 icmp_seq = 3 time = 125.000 MS
192.168.1.2 icmp_seq = 4 time = 125.000 MS
192.168.1.2 icmp_seq = 5 time = 141.000 MS

VPCS 3> 1
VPCS 1> ping 192.168.2.2
192.168.2.2 icmp_seq = 1 time = 109.000 MS
192.168.2.2 icmp_seq = 2 time = 94.000 MS
192.168.2.2 icmp_seq = 3 time = 94.000 MS
192.168.2.2 icmp_seq = 4 time = 125.000 MS
192.168.2.2 icmp_seq = 5 time = 94.000 MS

VPCS 1>

OK, the experiment is successfully completed !!!
Lab 2:

1. Configure the Loopback interface address of each route
R1
Router> enable
Router # config terminal
Router (config) # hostname R1-jin
R1-jin (config) # interface loopback 0
R1-jin (config-if) # ip address 1.1.1.1 255.255.255.255
R1-jin (config-if) # exit
R1-jin (config) # interface f0/0
R1-jin (config-if) # ip address 192.168.1.1 too many then
R1-jin (config-if) # no shutdown
R1-jin (config-if) # interface f1/0
R1-jin (config-if) # ip address 192.168.1.253 255.255.255.252
R1-jin (config-if) # no shutdown
R1-jin (config-if) # exit
R2
Router>
Router> enable
Router # config terminal
Router (config) # hostname R2-jin
R2-jin (config) # interface loopback 0
R2-jin (config-if) # ip address 2.2.2.2 255.255.255.255
R2-jin (config-if) # exit
R2-jin (config )#
R2-jin (config) # interface f1/0
R2-jin (config-if) # ip address 192.168.1.254 255.255.255.252
R2-jin (config-if) # no shutdown
R2-jin (config-if) # interface f0/0
R2-jin (config-if) # ip address 192.168.1.33 too many then
R2-jin (config-if) # no shutdown
R2-jin (config-if) # interface s2/0
R2-jin (config-if) # clock rate 128000
R2-jin (config-if) # ip address 192.168.1.249 255.255.255.252
R2-jin (config-if) # no shutdown
R2-jin (config-if) # exit
R3
Router> enable
Router # config terminal
Router (config) # hostname R3-jin
R3-jin (config) # interface loopback 0
R3-jin (config-if) # ip address 3.3.3.3 255.255.255.255
R3-jin (config-if) # exit
R3-jin (config )#
R3-jin (config) # interface s1/0
R3-jin (config-if) # ip address 192.168.1.250 255.255.255.252
R3-jin (config-if) # clock rate 128000
R3-jin (config-if) # no shutdown
R3-jin (config-if) # interface f0/0
R3-jin (config-if) # ip address 192.168.1.65 255.255.255.255.255.255.255.
R3-jin (config-if) # no shutdown
R3-jin (config-if) # exit
2. Start the OSPF routing process and declare the corresponding CIDR Block
R1
R1-jin (config) # router ospf 1
R1-jin (config-router) # network 192.168.1.252 0.0.0.3 area 0
R1-jin (config-router) # network 192.168.1.0 0.0.31 area 0
R1-jin (config-router) # end
R1-jin #
R1-jin # show ip route
R2
R2-jin (config) # router ospf 1
R2-jin (config-router) # network 0.0.0.0 255.255.255.255 area 0
R2-jin (config-router) # end
R2-jin #
R2-jin # show ip route
R3
R3-jin (config) # router ospf 1
R3-jin (config-router) # network 192.168.1.65 0.0.0.0 area 0
R3-jin (config-router) # network 192.168.1.250 0.0.0.0 area 0
R3-jin (config-router) # end
R3-jin #
R3-jin # show ip route
3. configure PC and verify
VPCS 1>
VPCS 1> show
VPCS 1> ip 192.168.1.2 192.168.1.1 27
VPCS 1> 2
VPCS 2> ip 192.168.1.34 192.168.1.33 27
VPCS 2> 3
VPCS 3> ip 192.168.1.66 192.168.1.65 27
VPCS 3> show
Name ip/CIDR GATEWAY LPORT RPORT
PC1 192.168.1.2/27192.168.1.1 10001 11100
PC2 192.168.1.34/ 27 192.168.1.33 10002 11200
PC3 192.168.1.66/27 192.168.1.65 10003 11300
PC4 0.0.0.0/0 0.0.0.0 10004 30003
PC5 0.0.0.0/0 0.0.0.0 10005 30004
PC6 0.0.0.0/0 0.0.0.0 10006 30005
PC7 0.0.0.0/0 0.0.0.0 10007 30006
Pc80.0.0.0/0 0.0.0.0 10008 30007
PC9 0.0.0.0/0 0.0.0.0 10009 30008
VPCS 3> ping 192.168.1.34
192.168.1.34 icmp_seq = 1 timeout
192.168.1.34 icmp_seq = 2 time = 94.000 MS
192.168.1.34 icmp_seq = 3 time = 93.000 MS
192.168.1.34 icmp_seq = 4 time = 94.000 MS
192.168.1.34 icmp_seq = 5 time = 94.000 MS
VPCS 3> ping 192.168.1.2
192.168.1.2 icmp_seq = 1 timeout
192.168.1.2 icmp_seq = 2 time = 125.000 MS
192.168.1.2 icmp_seq = 3 time = 125.000 MS
192.168.1.2 icmp_seq = 4 time = 125.000 MS
192.168.1.2 icmp_seq = 5 time = 156.000 MS
VPCS 3> 1
VPCS 1> ping 192.168.1.2
192.168.1.2 icmp_seq = 1 time = 0.001 MS
192.168.1.2 icmp_seq = 2 time = 0.001 MS
192.168.1.2 icmp_seq = 3 time = 0.001 MS
192.168.1.2 icmp_seq = 4 time = 0.001 MS
192.168.1.2 icmp_seq = 5 time = 0.001 MS
VPCS 1>
OK !!! The experiment is successfully completed !!!

 
All the tools I use are the "Xiao fan Simulator ".
The operation is the same as that of a real device. Apart from several commands, you can discover them slowly!
Author: ""

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.